#pragma GCC pop_options

Bug #1534360 reported by Liviu Ionescu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Confirmed
Undecided
Unassigned

Bug Description

Attempts to use 'pop_options' result in

../src/main.cpp:78:9: warning: #pragma GCC target is not supported for this machine [-Wpragmas]
 #pragma GCC pop_options

Is this intentional for ARM, or it is a bug?

The 'push_options' is ok, but without pop, I need to move this sequence at the end of the file.

#pragma GCC push_options
#pragma GCC optimize("-O0")
...

#pragma GCC pop_options

Changed in gcc-arm-embedded:
status: New → Confirmed
Revision history for this message
Joey Ye (jinyun-ye) wrote :

Duplicated as this GCC bugzila:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884

Now that target_attribute has been enabled in trunk, this issue might solvable now.

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

Hi Liviu,

I can confirm this happens on the 5.2 release. It was fixed on trunk with the following patch:
https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01261.html which was committed in r228794.

Ill look into backporting it to gcc-5.

Best Regards,
Andre

Revision history for this message
Liviu Ionescu (ilg) wrote :

ok, thank you.

Liviu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.