[Bug c/59884] New: Unexpected warning pragma GCC target
joey.ye at arm dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 20 03:07:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884
Bug ID: 59884
Summary: Unexpected warning pragma GCC target
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: joey.ye at arm dot com
Affected target: arm. (x86/x86_64 passes)
Affected version: trunk 20140109, 4.8, 4.7
~/cases/pragma $ cat p.c
#pragma GCC push_options
#pragma GCC optimize("O2")
int foo(int a){
return a+1;
}
#pragma GCC pop_options
~/cases/pragma $ arm-none-eabi-gcc p.c -c
p.c:6:9: warning: #pragma GCC target is not supported for this machine
[-Wpragmas]
#pragma GCC pop_options
More information about the Gcc-bugs
mailing list