#pragma GCC pop_options

Bug #1534360 reported by Liviu Ionescu on 2016-01-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
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
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.

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

Liviu Ionescu (ilg) wrote :

ok, thank you.

Liviu

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

Other bug subscribers

Remote bug watches

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