toplev.c (rest_of_compilation): Don't compile if we've had errors.
* toplev.c (rest_of_compilation): Don't compile if we've had errors. * g++.old-deja/g++.brendan/crash52.C: Remove return warning marker. * g++.old-deja/g++.jason/report.C: Likewise. From-SVN: r51464
This commit is contained in:
parent
6b62ba9246
commit
38676fa4a9
|
@ -1,3 +1,7 @@
|
|||
2002-03-27 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* toplev.c (rest_of_compilation): Don't compile if we've had errors.
|
||||
|
||||
2002-03-27 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2002-03-27 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* g++.old-deja/g++.brendan/crash52.C: Remove return warning marker.
|
||||
* g++.old-deja/g++.jason/report.C: Likewise.
|
||||
|
||||
2002-03-27 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* g++.dg/init/new1.C: Fix size_t.
|
||||
|
|
|
@ -10,5 +10,4 @@ public:
|
|||
|
||||
A &f(A &a) {// ERROR - new decl.*
|
||||
std::cout << "Blah\n";
|
||||
} // ERROR - non-void function
|
||||
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ bar2 baz (X::Y y)
|
|||
bar2 wa [5];
|
||||
wa[0] = baz(f);
|
||||
undef2 (1); // ERROR - implicit declaration
|
||||
} // ERROR - non-void
|
||||
}
|
||||
|
||||
int ninny ()
|
||||
{
|
||||
|
@ -70,4 +70,4 @@ int ninny ()
|
|||
int darg (char X::*p)
|
||||
{
|
||||
undef3 (1); // ERROR - implicit declaration
|
||||
} // ERROR - non-void
|
||||
}
|
||||
|
|
|
@ -2541,8 +2541,11 @@ rest_of_compilation (decl)
|
|||
rtx_equal_function_value_matters = 0;
|
||||
purge_hard_subreg_sets (get_insns ());
|
||||
|
||||
/* Don't return yet if -Wreturn-type; we need to do cleanup_cfg. */
|
||||
if ((rtl_dump_and_exit || flag_syntax_only) && !warn_return_type)
|
||||
/* Early return if there were errors. We can run afoul of our
|
||||
consistency checks, and there's not really much point in fixing them.
|
||||
Don't return yet if -Wreturn-type; we need to do cleanup_cfg. */
|
||||
if (((rtl_dump_and_exit || flag_syntax_only) && !warn_return_type)
|
||||
|| errorcount || sorrycount)
|
||||
goto exit_rest_of_compilation;
|
||||
|
||||
/* We may have potential sibling or tail recursion sites. Select one
|
||||
|
|
Loading…
Reference in New Issue