OSDN Git Service

PR c++/4872
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2002 19:32:51 +0000 (19:32 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2002 19:32:51 +0000 (19:32 +0000)
commit69f4b398a1046da567f70ea3075b7d8d399051be
treead77fd5a8517b02ca6dc9e00f1c365c442c92888
parent33d31608efaff0bcd06e6ee67a70fc46bbebf974
    PR c++/4872
        * decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        * cp-tree.h (struct cp_language_function): Add returns_abnormally.
        (current_function_returns_abnormally): New macro.
        * call.c (build_call): Set it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49407 138bc75d-0d04-0410-961f-82ee72b054a4
26 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/g++.dg/abi/empty4.C
gcc/testsuite/g++.dg/other/const2.C
gcc/testsuite/g++.dg/other/deprecated.C
gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C
gcc/testsuite/g++.old-deja/g++.jason/byval2.C
gcc/testsuite/g++.old-deja/g++.law/operators17.C
gcc/testsuite/g++.old-deja/g++.mike/eh50.C
gcc/testsuite/g++.old-deja/g++.mike/eh51.C
gcc/testsuite/g++.old-deja/g++.mike/net20.C
gcc/testsuite/g++.old-deja/g++.mike/net40.C
gcc/testsuite/g++.old-deja/g++.mike/net45.C
gcc/testsuite/g++.old-deja/g++.mike/p10511.C
gcc/testsuite/g++.old-deja/g++.mike/p11012.C
gcc/testsuite/g++.old-deja/g++.mike/p7325.C
gcc/testsuite/g++.old-deja/g++.other/crash25.C
gcc/testsuite/g++.old-deja/g++.other/for1.C
gcc/testsuite/g++.old-deja/g++.other/init12.C
gcc/testsuite/g++.old-deja/g++.other/new.C
gcc/testsuite/g++.old-deja/g++.other/new4.C
gcc/testsuite/g++.old-deja/g++.other/rtti1.C
gcc/testsuite/g++.old-deja/g++.pt/spec1.C