ps3dev / ps3toolchain

A script to autobuild an open source toolchain for the PS3.
BSD 2-Clause "Simplified" License
280 stars 92 forks source link

error: PIC register clobbered by 'r2' in 'asm' asm volatile #86

Closed crystalct closed 4 years ago

crystalct commented 4 years ago

With gcc 7.2 all projects that useasm volatile can't be compiled any more.

Is there a work around?

zeldin commented 4 years ago

From the issue title it sounds like some very specific asm volatile is causing the issue. Why does the code clobber r2? Does it need to be PIC?

crystalct commented 4 years ago

It seems a bad idea to use PIC register clobbered... and starting from gcc 7 it's not permiited any more....