[Bug lto/47578] New: [lto]: handle TS_OPTIMIZE in stream reader/writer
aldot at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 1 18:58:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47578
Summary: [lto]: handle TS_OPTIMIZE in stream reader/writer
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: aldot@gcc.gnu.org
Created attachment 23202
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23202
remove 2 sorry()
echo 'int __attribute__ ((optimize("Os"))) foo(int inp){return inp&42;}' |
gcc-4.6-HEAD -xc -c -o pity.o -flto - ; echo $?
<stdin>:1:1: sorry, unimplemented: gimple bytecode streams do not support the
optimization attribute
1
With attached patch:
$ echo 'int __attribute__ ((optimize("Os"))) foo(int inp){return inp&42;}' |
i686-oe-linux-uclibc-gcc -xc -c -o os.o -flto - ; echo $?
0
More information about the Gcc-bugs
mailing list