This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/45340] __builtin_expect and -Os generates stupid code



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-08-23 19:12 -------
        jne     .L6
        jmp     .L7
.L8:
#APP
# 18 "t.c" 1
        #mem
# 0 "" 2
#NO_APP
.L6:


--- CUT ---

I added #mem inside the inline-asm which is empty and got the above code. 
Which means that the inline-asm is adding an empty statement and GCC assumes
that all inline-asm contain at least something interesting.  There is nothing
the compiler can do really.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45340


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]