Commit 461fc4de by Richard Henderson Committed by Richard Henderson

Remove flag_new_exceptions.

From-SVN: r40908
parent 662795a8
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
* combine.c (distribute_notes) [REG_EH_REGION]: If non-call * combine.c (distribute_notes) [REG_EH_REGION]: If non-call
exceptions, put the note on the trapping instruction. exceptions, put the note on the trapping instruction.
* flags.h (flag_new_exceptions): Remove.
* toplev.c: Don't set it.
* final.c: Don't check it.
* except.c: Provide stub definition.
2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in: Don't check for bcopy. * configure.in: Don't check for bcopy.
......
...@@ -409,6 +409,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -409,6 +409,13 @@ Boston, MA 02111-1307, USA. */
#include "ggc.h" #include "ggc.h"
#include "tm_p.h" #include "tm_p.h"
/* ??? Temporary hack before this entire file is replaced. */
#ifdef IA64_UNWIND_INFO
#define flag_new_exceptions 0
#else
#define flag_new_exceptions 1
#endif
/* One to enable asynchronous exception support. */ /* One to enable asynchronous exception support. */
int flag_non_call_exceptions = 0; int flag_non_call_exceptions = 0;
......
...@@ -2129,8 +2129,6 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -2129,8 +2129,6 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
if (! USING_SJLJ_EXCEPTIONS) if (! USING_SJLJ_EXCEPTIONS)
{ {
ASM_OUTPUT_INTERNAL_LABEL (file, "LEHB", NOTE_EH_HANDLER (insn)); ASM_OUTPUT_INTERNAL_LABEL (file, "LEHB", NOTE_EH_HANDLER (insn));
if (! flag_new_exceptions)
add_eh_table_entry (NOTE_EH_HANDLER (insn));
#ifdef ASM_OUTPUT_EH_REGION_BEG #ifdef ASM_OUTPUT_EH_REGION_BEG
ASM_OUTPUT_EH_REGION_BEG (file, NOTE_EH_HANDLER (insn)); ASM_OUTPUT_EH_REGION_BEG (file, NOTE_EH_HANDLER (insn));
#endif #endif
...@@ -2141,8 +2139,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -2141,8 +2139,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
if (! USING_SJLJ_EXCEPTIONS) if (! USING_SJLJ_EXCEPTIONS)
{ {
ASM_OUTPUT_INTERNAL_LABEL (file, "LEHE", NOTE_EH_HANDLER (insn)); ASM_OUTPUT_INTERNAL_LABEL (file, "LEHE", NOTE_EH_HANDLER (insn));
if (flag_new_exceptions) add_eh_table_entry (NOTE_EH_HANDLER (insn));
add_eh_table_entry (NOTE_EH_HANDLER (insn));
#ifdef ASM_OUTPUT_EH_REGION_END #ifdef ASM_OUTPUT_EH_REGION_END
ASM_OUTPUT_EH_REGION_END (file, NOTE_EH_HANDLER (insn)); ASM_OUTPUT_EH_REGION_END (file, NOTE_EH_HANDLER (insn));
#endif #endif
......
...@@ -453,11 +453,6 @@ extern int flag_pic; ...@@ -453,11 +453,6 @@ extern int flag_pic;
extern int flag_exceptions; extern int flag_exceptions;
/* Nonzero means use the new model for exception handling. Replaces
-DNEW_EH_MODEL as a compile option. */
extern int flag_new_exceptions;
/* Nonzero means generate frame unwind info table when supported */ /* Nonzero means generate frame unwind info table when supported */
extern int flag_unwind_tables; extern int flag_unwind_tables;
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
* expr.c, parse.h: Use USING_SJLJ_EXCEPTIONS instead of * expr.c, parse.h: Use USING_SJLJ_EXCEPTIONS instead of
exceptions_via_longjmp. exceptions_via_longjmp.
* lang.c (flag_new_exceptions): Don't declare it.
(java_init_options): Or set it.
2001-03-27 Richard Henderson <rth@redhat.com> 2001-03-27 Richard Henderson <rth@redhat.com>
* decl.c (end_java_method): Rename asynchronous_exceptions to * decl.c (end_java_method): Rename asynchronous_exceptions to
......
...@@ -152,7 +152,6 @@ int flag_force_classes_archive_check; ...@@ -152,7 +152,6 @@ int flag_force_classes_archive_check;
/* From gcc/flags.h, and indicates if exceptions are turned on or not. */ /* From gcc/flags.h, and indicates if exceptions are turned on or not. */
extern int flag_new_exceptions;
extern int flag_exceptions; extern int flag_exceptions;
/* Table of language-dependent -f options. /* Table of language-dependent -f options.
...@@ -704,7 +703,6 @@ void lang_init_source (level) ...@@ -704,7 +703,6 @@ void lang_init_source (level)
static void static void
java_init_options () java_init_options ()
{ {
flag_new_exceptions = 1;
flag_bounds_check = 1; flag_bounds_check = 1;
} }
......
...@@ -723,11 +723,6 @@ int flag_pic; ...@@ -723,11 +723,6 @@ int flag_pic;
int flag_exceptions; int flag_exceptions;
/* Nonzero means use the new model for exception handling. Replaces
-DNEW_EH_MODEL as a compile option. */
int flag_new_exceptions = 1;
/* Nonzero means generate frame unwind info table when supported. */ /* Nonzero means generate frame unwind info table when supported. */
int flag_unwind_tables = 0; int flag_unwind_tables = 0;
...@@ -1077,8 +1072,6 @@ lang_independent_options f_options[] = ...@@ -1077,8 +1072,6 @@ lang_independent_options f_options[] =
{"PIC", &flag_pic, 2, ""}, {"PIC", &flag_pic, 2, ""},
{"exceptions", &flag_exceptions, 1, {"exceptions", &flag_exceptions, 1,
"Enable exception handling" }, "Enable exception handling" },
{"new-exceptions", &flag_new_exceptions, 1,
"Use the new model for exception handling" },
{"unwind-tables", &flag_unwind_tables, 1, {"unwind-tables", &flag_unwind_tables, 1,
"Just generate unwind tables for exception handling" }, "Just generate unwind tables for exception handling" },
{"non-call-exceptions", &flag_non_call_exceptions, 1, {"non-call-exceptions", &flag_non_call_exceptions, 1,
...@@ -4875,14 +4868,6 @@ toplev_main (argc, argv) ...@@ -4875,14 +4868,6 @@ toplev_main (argc, argv)
OVERRIDE_OPTIONS; OVERRIDE_OPTIONS;
#endif #endif
/* Since each function gets its own handler data, we can't support the
new model currently, since it depend on a specific rethrow label
which is declared at the front of the table, and we can only
have one such symbol in a file. */
#ifdef IA64_UNWIND_INFO
flag_new_exceptions = 0;
#endif
/* Set up the align_*_log variables, defaulting them to 1 if they /* Set up the align_*_log variables, defaulting them to 1 if they
were still unset. */ were still unset. */
if (align_loops <= 0) align_loops = 1; if (align_loops <= 0) align_loops = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment