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: unassig...@gcc.gnu.org
        ReportedBy: al...@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

Reply via email to