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 c/30502] compiler inlines slightly invalid function without warning



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-18 18:00 -------
I think you mean the following options:
-O2 -Wall -Winline
and with 4.0.0 and above I get:
t.c:9: warning: control may reach end of non-void function
'compute_tables_error_code' being inlined
or:
t.c: In function 'compute_tables_error_code':
t.c:19: warning: control reaches end of non-void function

PS this is not really invalid code, just undefined code.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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