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 middle-end/13127] [tree-ssa] Inlining causes spurious "might be used uninitialized" warnings


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-11-20 16:26 -------
With little variations you can get all sorts of funny behavior:

==================================
int foo () {} 
int main () { return foo(); }
==================================
leads to

x.cc: In function `int foo()':
x.cc:1: warning: control reaches end of non-void function

which looks OK to me. However, with

==================================
int foo () {} 
int main () { return foo(); }
==================================

I get

x.cc: In function `int foo()':
x.cc:1: warning: no return statement in function returning non-void
x.cc: In function `int main()':
x.cc:2: warning: '<anonymous>' might be used uninitialized in this function


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-20 16:26:36
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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