public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined
@ 2005-01-23  5:07 zack at gcc dot gnu dot org
  2005-01-23  5:08 ` [Bug c++/19583] " zack at gcc dot gnu dot org
                   ` (22 more replies)
  0 siblings, 23 replies; 27+ messages in thread
From: zack at gcc dot gnu dot org @ 2005-01-23  5:07 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

$ /scratch/zack/i/gcc-vanilla/bin/g++ -v
Using built-in specs.
Configured with: /home/zack/src/gcc/HEAD/vanilla/configure
--prefix=/scratch/zack/i/gcc-vanilla --disable-checking --enable-languages=c,c++
--disable-multilib
Thread model: posix
gcc version 4.0.0 20050122 (experimental)

$ /scratch/zack/i/gcc-vanilla/bin/g++ -S -O2 -W -Wall testcase.cc
testcase.cc: In function ‘void finalize()’:
testcase.cc:29: warning: control may reach end of non-void function ‘bool
N::operator!=(N) const’ being inlined

I will attach the testcase.

-- 
           Summary: Incorrect diagnostic: control may reach end of non-void
                    function '...' being inlined
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zack at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug c++/19583] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
@ 2005-01-23  5:08 ` zack at gcc dot gnu dot org
  2005-01-23  5:11 ` zack at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: zack at gcc dot gnu dot org @ 2005-01-23  5:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2005-01-23 05:08 -------
Created an attachment (id=8039)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8039&action=view)
test case


-- 


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


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

* [Bug c++/19583] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
  2005-01-23  5:08 ` [Bug c++/19583] " zack at gcc dot gnu dot org
@ 2005-01-23  5:11 ` zack at gcc dot gnu dot org
  2005-01-23  5:21 ` [Bug c++/19583] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: zack at gcc dot gnu dot org @ 2005-01-23  5:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2005-01-23 05:11 -------
Created an attachment (id=8040)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8040&action=view)
shorter test case


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #8039 is|0                           |1
           obsolete|                            |


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


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

* [Bug c++/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
  2005-01-23  5:08 ` [Bug c++/19583] " zack at gcc dot gnu dot org
  2005-01-23  5:11 ` zack at gcc dot gnu dot org
@ 2005-01-23  5:21 ` pinskia at gcc dot gnu dot org
  2005-01-23  5:22 ` pinskia at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23  5:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 05:21 -------
Here is the simplified testcase:
static inline bool f() throw()
{
  return 0;
}
bool ff()
{
  return f();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-23 05:21:08
               date|                            |
            Summary|Incorrect diagnostic:       |[4.0 Regression] Incorrect
                   |control may reach end of    |diagnostic: control may
                   |non-void function '...'     |reach end of non-void
                   |being inlined               |function '...' being inlined
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-01-23  5:21 ` [Bug c++/19583] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-23  5:22 ` pinskia at gcc dot gnu dot org
  2005-01-23  5:49 ` pinskia at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23  5:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 05:22 -------
I think the problem is that we don't look passed eh_spec_block trees.

-- 


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


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

* [Bug c++/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-01-23  5:22 ` pinskia at gcc dot gnu dot org
@ 2005-01-23  5:49 ` pinskia at gcc dot gnu dot org
  2005-01-23  6:05 ` pinskia at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23  5:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 05:48 -------
The problem is not related eh_spec_block as we are gimple at this point.

-- 


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


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

* [Bug c++/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-01-23  5:49 ` pinskia at gcc dot gnu dot org
@ 2005-01-23  6:05 ` pinskia at gcc dot gnu dot org
  2005-01-23  6:14 ` [Bug middle-end/19583] " pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23  6:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 06:05 -------
The problem is that block_may_fallthru does not handle try_catch_expr and eh_filter_expr.

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-01-23  6:05 ` pinskia at gcc dot gnu dot org
@ 2005-01-23  6:14 ` pinskia at gcc dot gnu dot org
  2005-01-23 15:45 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23  6:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 06:14 -------
Mine. I am testing a patch right now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
          Component|c++                         |middle-end


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-01-23  6:14 ` [Bug middle-end/19583] " pinskia at gcc dot gnu dot org
@ 2005-01-23 15:45 ` pinskia at gcc dot gnu dot org
  2005-01-23 16:22 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 15:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 15:45 -------
(In reply to comment #7)
> Mine. I am testing a patch right now.

Hmm, I get a bootstrap failure with the patch:
/Users/pinskia/src/local3/gcc/libstdc++-v3/libsupc++/eh_alloc.cc: In function 'void __cxxabiv1::
__cxa_free_exception(void*)':
/Users/pinskia/src/local3/gcc/libstdc++-v3/libsupc++/eh_alloc.cc:157: error: Fallthru to exit from bb 
12

/Users/pinskia/src/local3/gcc/libstdc++-v3/libsupc++/eh_alloc.cc:157: internal compiler error: 
verify_flow_info failed


-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-01-23 15:45 ` pinskia at gcc dot gnu dot org
@ 2005-01-23 16:22 ` pinskia at gcc dot gnu dot org
  2005-01-23 16:46 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 16:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 16:22 -------
(In reply to comment #8)
> (In reply to comment #7)
> > Mine. I am testing a patch right now.
> 
> Hmm, I get a bootstrap failure with the patch:
And here is the reduced testcase for that failure:
void f(void);
void g(void) throw()
{
  f();
}

I have to rethink this,  maybe we should skip those trees before passing to block_may_fallthru.

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-01-23 16:22 ` pinskia at gcc dot gnu dot org
@ 2005-01-23 16:46 ` pinskia at gcc dot gnu dot org
  2005-01-23 22:22 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 16:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 16:46 -------
(In reply to comment #9)
> I have to rethink this,  maybe we should skip those trees before passing to block_may_fallthru.

Yes that fixes it (I will submit the patch after lunch).

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-01-23 16:46 ` pinskia at gcc dot gnu dot org
@ 2005-01-23 22:22 ` pinskia at gcc dot gnu dot org
  2005-01-24  0:35 ` hp at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 22:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 22:22 -------
All this code will go away for 4.1 anyways which is good (and we will not have false postives any more).

Anyways patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01675.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-01-23 22:22 ` pinskia at gcc dot gnu dot org
@ 2005-01-24  0:35 ` hp at gcc dot gnu dot org
  2005-01-24 12:28 ` andre dot maute at gmx dot de
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-01-24  0:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-01-24 00:34 -------
*** Bug 19573 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu dot org


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-01-24  0:35 ` hp at gcc dot gnu dot org
@ 2005-01-24 12:28 ` andre dot maute at gmx dot de
  2005-01-24 12:30 ` andre dot maute at gmx dot de
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: andre dot maute at gmx dot de @ 2005-01-24 12:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andre dot maute at gmx dot de  2005-01-24 12:27 -------
with the following the problem also does occur 
 
---------- O3Wall.cc ------- 
#include <cmath> 
 
double test( double x ) { 
        return fabs(x); 
} 
---------- O3Wall.cc ------- 
 
> g++-4.0-20050123 O3Wall.cc -O3 -Wall -c 
O3Wall.cc: In function 'double test(double)': 
O3Wall.cc:4: warning: control may reach end of non-void function 'double 
fabs(double)' being inlined 
 
> g++-4.0-20050123 -v 
Using built-in specs. 
Configured with: ../gcc-4.0-20050123/configure --prefix=/opt/gcc-4.0-20050123 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --disable-nls 
--program-suffix=-4.0-20050123 --disable-checking --with-arch=pentium3 
Thread model: posix 
gcc version 4.0.0 20050123 (experimental) 
 

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2005-01-24 12:28 ` andre dot maute at gmx dot de
@ 2005-01-24 12:30 ` andre dot maute at gmx dot de
  2005-01-25 21:18 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: andre dot maute at gmx dot de @ 2005-01-24 12:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andre dot maute at gmx dot de  2005-01-24 12:30 -------
oh sorry, i did not read the bug history :-( 
regards andre 

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2005-01-24 12:30 ` andre dot maute at gmx dot de
@ 2005-01-25 21:18 ` pinskia at gcc dot gnu dot org
  2005-01-26  1:20 ` andre dot maute at gmx dot de
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-25 21:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-25 21:17 -------
*** Bug 19631 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin at mpa-garching dot
                   |                            |mpg dot de


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2005-01-25 21:18 ` pinskia at gcc dot gnu dot org
@ 2005-01-26  1:20 ` andre dot maute at gmx dot de
  2005-01-27  2:47 ` ian at airs dot com
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: andre dot maute at gmx dot de @ 2005-01-26  1:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andre dot maute at gmx dot de  2005-01-26 01:20 -------
(In reply to comment #11) 
> Anyways patch here: 
<http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01675.html>. 
 
the patch (used with gcc-4.0-20050123) doesn't fix the following code 
 
---------- O3Wall-2.cc -------  
#include <stack> 
int main() { 
        int x = 3; int* ptr = &x; 
        std::stack<int*> s; 
        s.push(ptr); 
        s.pop(); 
        return 0; 
} 
---------- O3Wall-2.cc -------  
 
> g++-4.0-20050123-1 -O3 -Wall O3Wall-2.cc 
/opt/gcc-4.0-20050123-1/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_deque.h: 
In destructor 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = int*, 
_Alloc = std::allocator<int*>]': 
/opt/gcc-4.0-20050123-1/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_deque.h:411: 
warning: control may reach end of non-void function 'typename 
_Alloc::rebind<_Tp*>::other std::_Deque_base<_Tp, 
_Alloc>::_M_get_map_allocator() const [with _Tp = int*, _Alloc = 
std::allocator<int*>]' being inlined 
/opt/gcc-4.0-20050123-1/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/deque.tcc: 
In member function 'void std::deque<_Tp, _Alloc>::_M_reallocate_map(size_t, 
bool) [with _Tp = int*, _Alloc = std::allocator<int*>]': 
/opt/gcc-4.0-20050123-1/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/deque.tcc:750: 
warning: control may reach end of non-void function '_Tp** 
std::_Deque_base<_Tp, _Alloc>::_M_allocate_map(size_t) [with _Tp = int*, 
_Alloc = std::allocator<int*>]' being inlined 
 
> g++-4.0-20050123-1 -v 
Using built-in specs. 
Configured with: ../gcc-4.0-20050123/configure 
--prefix=/opt/gcc-4.0-20050123-1 --enable-shared --enable-languages=c,c++ 
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu 
--disable-nls --program-suffix=-4.0-20050123-1 --disable-checking 
--with-arch=pentium3 
Thread model: posix 
gcc version 4.0.0 20050123 (experimental) 
 

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2005-01-26  1:20 ` andre dot maute at gmx dot de
@ 2005-01-27  2:47 ` ian at airs dot com
  2005-01-27 14:37 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: ian at airs dot com @ 2005-01-27  2:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-01-27 02:47 -------
Another patch here:
    http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01964.html


-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2005-01-27  2:47 ` ian at airs dot com
@ 2005-01-27 14:37 ` cvs-commit at gcc dot gnu dot org
  2005-01-27 14:41 ` ian at airs dot com
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-27 14:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-27 14:36 -------
Subject: Bug 19583

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ian@gcc.gnu.org	2005-01-27 14:36:22

Modified files:
	gcc            : ChangeLog gimple-low.c tree-inline.c 

Log message:
	PR middle-end/19583
	* gimple-low.c (try_catch_may_fallthru): New static function.
	(block_may_fallthru): Handle TRY_CATCH_EXPR.
	* tree-inline.c (expand_call_inline): Don't warn about reaching
	the end of a non-void function being inlined if the function uses
	a return slot.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7305&r2=2.7306
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.19&r2=2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&r1=1.169&r2=1.170



-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2005-01-27 14:37 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-27 14:41 ` ian at airs dot com
  2005-01-28 17:33 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: ian at airs dot com @ 2005-01-27 14:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-01-27 14:38 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (18 preceding siblings ...)
  2005-01-27 14:41 ` ian at airs dot com
@ 2005-01-28 17:33 ` cvs-commit at gcc dot gnu dot org
  2005-01-29 19:10 ` larsbj at gullik dot net
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-28 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-28 17:33 -------
Subject: Bug 19583

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ian@gcc.gnu.org	2005-01-28 17:32:58

Modified files:
	gcc            : ChangeLog gimple-low.c 

Log message:
	PR middle-end/16558
	PR middle-end/19583
	* gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
	through if both operands fall through.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7319&r2=2.7320
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.20&r2=2.21



-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (19 preceding siblings ...)
  2005-01-28 17:33 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-29 19:10 ` larsbj at gullik dot net
  2005-01-29 19:23 ` pinskia at gcc dot gnu dot org
  2005-02-09  7:02 ` snyder at fnal dot gov
  22 siblings, 0 replies; 27+ messages in thread
From: larsbj at gullik dot net @ 2005-01-29 19:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From larsbj at gullik dot net  2005-01-29 19:09 -------
This does not seem to be fixed so reopening.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larsbj at gullik dot net


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (20 preceding siblings ...)
  2005-01-29 19:10 ` larsbj at gullik dot net
@ 2005-01-29 19:23 ` pinskia at gcc dot gnu dot org
  2005-02-09  7:02 ` snyder at fnal dot gov
  22 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-29 19:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-29 19:23 -------
(In reply to comment #23)
> This does not seem to be fixed so reopening.
I opened another PR because it is related but not fully the same problem.  (PR 19699).

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
  2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
                   ` (21 preceding siblings ...)
  2005-01-29 19:23 ` pinskia at gcc dot gnu dot org
@ 2005-02-09  7:02 ` snyder at fnal dot gov
  22 siblings, 0 replies; 27+ messages in thread
From: snyder at fnal dot gov @ 2005-02-09  7:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From snyder at fnal dot gov  2005-02-08 20:18 -------
(In reply to comment #24)
> (In reply to comment #23)
> > This does not seem to be fixed so reopening.
> I opened another PR because it is related but not fully the same problem.  (PR
19699).

We still (as of CVS from Feb 8) get the warning if the throw-specifier is
not empty.

This example still gives the warning with -Wall -O1:

struct E{};

inline int bar() throw(E)
{
  return 0;
}

void foo ()
{
  bar();
}

-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
       [not found] <20050123050702.19583.zack@codesourcery.com>
  2005-02-09  9:45 ` ian at airs dot com
  2005-02-10  1:05 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-10  1:06 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-10  1:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-09 21:40 -------
Subject: Bug 19583

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ian@gcc.gnu.org	2005-02-09 21:40:36

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/warn: Wreturn-type-3.C 

Log message:
	PR middle-end/19583
	* g++.dg/warn/Wreturn-type-3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5008&r2=1.5009
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wreturn-type-3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
       [not found] <20050123050702.19583.zack@codesourcery.com>
  2005-02-09  9:45 ` ian at airs dot com
@ 2005-02-10  1:05 ` cvs-commit at gcc dot gnu dot org
  2005-02-10  1:06 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 27+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-10  1:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-09 21:40 -------
Subject: Bug 19583

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ian@gcc.gnu.org	2005-02-09 21:40:01

Modified files:
	gcc            : ChangeLog gimple-low.c 

Log message:
	PR middle-end/19583
	* gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
	just check whether EH_FILTER_FAILURE falls through.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7424&r2=2.7425
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.21&r2=2.22



-- 


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


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

* [Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined
       [not found] <20050123050702.19583.zack@codesourcery.com>
@ 2005-02-09  9:45 ` ian at airs dot com
  2005-02-10  1:05 ` cvs-commit at gcc dot gnu dot org
  2005-02-10  1:06 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 27+ messages in thread
From: ian at airs dot com @ 2005-02-09  9:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-02-09 03:52 -------
New patch: http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00342.html

-- 


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


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

end of thread, other threads:[~2005-02-09 21:40 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23  5:07 [Bug c++/19583] New: Incorrect diagnostic: control may reach end of non-void function '...' being inlined zack at gcc dot gnu dot org
2005-01-23  5:08 ` [Bug c++/19583] " zack at gcc dot gnu dot org
2005-01-23  5:11 ` zack at gcc dot gnu dot org
2005-01-23  5:21 ` [Bug c++/19583] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-23  5:22 ` pinskia at gcc dot gnu dot org
2005-01-23  5:49 ` pinskia at gcc dot gnu dot org
2005-01-23  6:05 ` pinskia at gcc dot gnu dot org
2005-01-23  6:14 ` [Bug middle-end/19583] " pinskia at gcc dot gnu dot org
2005-01-23 15:45 ` pinskia at gcc dot gnu dot org
2005-01-23 16:22 ` pinskia at gcc dot gnu dot org
2005-01-23 16:46 ` pinskia at gcc dot gnu dot org
2005-01-23 22:22 ` pinskia at gcc dot gnu dot org
2005-01-24  0:35 ` hp at gcc dot gnu dot org
2005-01-24 12:28 ` andre dot maute at gmx dot de
2005-01-24 12:30 ` andre dot maute at gmx dot de
2005-01-25 21:18 ` pinskia at gcc dot gnu dot org
2005-01-26  1:20 ` andre dot maute at gmx dot de
2005-01-27  2:47 ` ian at airs dot com
2005-01-27 14:37 ` cvs-commit at gcc dot gnu dot org
2005-01-27 14:41 ` ian at airs dot com
2005-01-28 17:33 ` cvs-commit at gcc dot gnu dot org
2005-01-29 19:10 ` larsbj at gullik dot net
2005-01-29 19:23 ` pinskia at gcc dot gnu dot org
2005-02-09  7:02 ` snyder at fnal dot gov
     [not found] <20050123050702.19583.zack@codesourcery.com>
2005-02-09  9:45 ` ian at airs dot com
2005-02-10  1:05 ` cvs-commit at gcc dot gnu dot org
2005-02-10  1:06 ` cvs-commit 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).