public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/45497]  New: bogus warning at -O0 (control reaches end of non-void function).
@ 2010-09-02 11:38 pluto at agmk dot net
  2010-09-02 11:38 ` [Bug other/45497] " pluto at agmk dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pluto at agmk dot net @ 2010-09-02 11:38 UTC (permalink / raw)
  To: gcc-bugs

% LANG=C g++ 0.ii -Wall -Werror -c
cc1plus: warnings being treated as errors
0.ii: In member function 'int excp::AgentWrap::send(const std::string&, const
std::string&, int, bool, int)':
0.ii:71622:3: error: control reaches end of non-void function


-- 
           Summary: bogus warning at -O0 (control reaches end of non-void
                    function).
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: x86_64-gnu-linux
  GCC host triplet: x86_64-gnu-linux
GCC target triplet: x86_64-gnu-linux


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/45497] bogus warning at -O0 (control reaches end of non-void function).
  2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
@ 2010-09-02 11:38 ` pluto at agmk dot net
  2010-09-02 13:09 ` [Bug middle-end/45497] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pluto at agmk dot net @ 2010-09-02 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2010-09-02 11:38 -------
Created an attachment (id=21659)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21659&action=view)
testcase


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/45497] [4.5/4.6 Regression] bogus warning at -O0 (control reaches end of non-void function).
  2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
  2010-09-02 11:38 ` [Bug other/45497] " pluto at agmk dot net
@ 2010-09-02 13:09 ` rguenth at gcc dot gnu dot org
  2010-09-02 16:23 ` [Bug middle-end/45497] [4.3/4.4/4.5/4.6 " pluto at agmk dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-02 13:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-02 13:08 -------
Confirmed.  This is EH lowering.

<bb 49>:
  finally_tmp.226 = 0;
  std::auto_ptr<YAMI::Message>::~auto_ptr (&msg);
  switch (finally_tmp.226) <default: <L60>, case 1: <L61>>

...

<L61>:
  return;

<L60>:
  return D.122655;

but the first return w/o value is introduced during GIMPLE lowering.

  std::auto_ptr<YAMI::Message>::auto_ptr (&msg, 0B);
  try
    {
...
    }
  finally
    {
      std::auto_ptr<YAMI::Message>::~auto_ptr (&msg);
    }
  goto <D.122659>;
...
  goto <D.122673>;
  <D.122659>:
  return;
  <D.122673>:
  return D.122655;


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|other                       |middle-end
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-02 13:08:56
               date|                            |
            Summary|bogus warning at -O0        |[4.5/4.6 Regression] bogus
                   |(control reaches end of non-|warning at -O0 (control
                   |void function).             |reaches end of non-void
                   |                            |function).
   Target Milestone|---                         |4.5.2


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/45497] [4.3/4.4/4.5/4.6 Regression] bogus warning at -O0 (control reaches end of non-void function).
  2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
  2010-09-02 11:38 ` [Bug other/45497] " pluto at agmk dot net
  2010-09-02 13:09 ` [Bug middle-end/45497] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-09-02 16:23 ` pluto at agmk dot net
  2010-09-03  4:51 ` pinskia at gcc dot gnu dot org
  2010-09-03  4:53 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pluto at agmk dot net @ 2010-09-02 16:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2010-09-02 16:22 -------
i thins this is really a duplicate of t2.cpp testcase from PR36254.

*** This bug has been marked as a duplicate of 36254 ***


-- 

pluto at agmk dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.4.0 4.5.2                 |4.3.6 4.4.0 4.5.2
      Known to work|4.3.5                       |
         Resolution|                            |DUPLICATE
            Summary|[4.4/4.5/4.6 Regression]    |[4.3/4.4/4.5/4.6 Regression]
                   |bogus warning at -O0        |bogus warning at -O0
                   |(control reaches end of non-|(control reaches end of non-
                   |void function).             |void function).


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/45497] [4.3/4.4/4.5/4.6 Regression] bogus warning at -O0 (control reaches end of non-void function).
  2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2010-09-02 16:23 ` [Bug middle-end/45497] [4.3/4.4/4.5/4.6 " pluto at agmk dot net
@ 2010-09-03  4:51 ` pinskia at gcc dot gnu dot org
  2010-09-03  4:53 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-09-03  4:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-09-03 04:51 -------
Reopening as that bug was marked as being fixed in 4.4.0 but this is not.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/45497] [4.3/4.4/4.5/4.6 Regression] bogus warning at -O0 (control reaches end of non-void function).
  2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2010-09-03  4:51 ` pinskia at gcc dot gnu dot org
@ 2010-09-03  4:53 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-09-03  4:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2010-09-03 04:53 -------
Not to mention t2.cpp is really a dup of bug 20681.  And yes this is a dup of
that bug as this is a switch that is causing issue.

*** This bug has been marked as a duplicate of 20681 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-03  4:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 11:38 [Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function) pluto at agmk dot net
2010-09-02 11:38 ` [Bug other/45497] " pluto at agmk dot net
2010-09-02 13:09 ` [Bug middle-end/45497] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-09-02 16:23 ` [Bug middle-end/45497] [4.3/4.4/4.5/4.6 " pluto at agmk dot net
2010-09-03  4:51 ` pinskia at gcc dot gnu dot org
2010-09-03  4:53 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).