This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48110] New: __attribute__ ((optimize(...))) version of -Ofast
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 10:30:17 +0000
- Subject: [Bug middle-end/48110] New: __attribute__ ((optimize(...))) version of -Ofast
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48110
Summary: __attribute__ ((optimize(...))) version of -Ofast
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vincenzo.innocente@cern.ch
gcc 4.6 introduces a new global optimization switch -Ofast.
Independently of what actually it is composed of, it seems not supported by
__attribute__ ((optimize(...)))
for instance
__attribute__ ((optimize("fast-math"))) works
__attribute__ ((optimize("3"))) works
while
__attribute__ ((optimize("fast")))
produces
error: unrecognized command line option '-ffast'
is this a bug or shall I use a different syntax?