OSDN Git Service

* config/avr/avr.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2001 04:11:54 +0000 (04:11 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2001 04:11:54 +0000 (04:11 +0000)
Call abort instead of fatal.
(TRAMPOLINE_TEMPLATE): Call internal_error instead of fatal.
* config/dsp16xx/dsp16xx.h (FUNCTION_PROFILER): Likewise.
(FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Likewise.
(TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Likewise.
(ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
* config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39448 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/avr/avr.h
gcc/config/dsp16xx/dsp16xx.h
gcc/config/rs6000/rs6000.h

index 29a6953..ec03704 100644 (file)
@@ -8,6 +8,15 @@
 
 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * config/avr/avr.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
+       Call abort instead of fatal.
+       (TRAMPOLINE_TEMPLATE): Call internal_error instead of fatal.
+       * config/dsp16xx/dsp16xx.h (FUNCTION_PROFILER): Likewise.
+       (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Likewise.
+       (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Likewise.
+       (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
+       * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Likewise.
+
        * diagnostic.h (set_internal_error_function): Renamed.
        * toplev.h (internal_error): Renamed from fatal.
        (pfatal_with_name): Deleted.
index 773f8b3..34566b6 100644 (file)
@@ -1,6 +1,5 @@
 /* Definitions of target machine for GNU compiler,
    for ATMEL AVR at90s8515, ATmega103/103L, ATmega603/603L microcontrollers.
-
    Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
    Contributed by Denis Chertykov (denisc@overta.ru)
 
@@ -2695,7 +2694,7 @@ sprintf (STRING, "*.%s%d", PREFIX, NUM)
 #define ASM_OUTPUT_REG_PUSH(STREAM, REGNO)     \
 {                                              \
   if (REGNO > 31)                              \
-    fatal("regno error in push");              \
+    abort ();                                  \
   fprintf (STREAM, "\tpush\tr%d", REGNO);      \
 }
 /* A C expression to output to STREAM some assembler code which will
@@ -2705,7 +2704,7 @@ sprintf (STRING, "*.%s%d", PREFIX, NUM)
 #define ASM_OUTPUT_REG_POP(STREAM, REGNO)      \
 {                                              \
   if (REGNO > 31)                              \
-    fatal("regno error in pop");               \
+    abort ();                                  \
   fprintf (STREAM, "\tpop\tr%d", REGNO);       \
 }
 /* A C expression to output to STREAM some assembler code which will
@@ -2896,7 +2895,8 @@ valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS)
 
 
 
-#define TRAMPOLINE_TEMPLATE(FILE) fatal ("Trampolines not supported\n")
+#define TRAMPOLINE_TEMPLATE(FILE) \
+  internal_error ("Trampolines not supported\n")
 
 /* Length in units of the trampoline for entering a nested function.  */
 
index ccb6378..86ff76f 100644 (file)
@@ -1184,15 +1184,18 @@ extern struct dsp16xx_frame_info current_frame_info;
 /* Output assembler code to FILE to increment profiler label # LABELNO
    for profiling a function entry. */
 
-#define FUNCTION_PROFILER(FILE, LABELNO)        fatal("Profiling not implemented yet.")
+#define FUNCTION_PROFILER(FILE, LABELNO)        \
+  internal_error ("Profiling not implemented yet.")
 
 /* Output assembler code to FILE to initialize this source file's
    basic block profiling info, if that has not already been done. */
-#define FUNCTION_BLOCK_PROFILER(FILE, LABELNO)  fatal("Profiling not implemented yet.")
+#define FUNCTION_BLOCK_PROFILER(FILE, LABELNO)  \
+  internal_error ("Profiling not implemented yet.")
 
 /* Output assembler code to FILE to increment the entry-count for
    the BLOCKNO'th basic block in this source file. */
-#define BLOCK_PROFILER(FILE, BLOCKNO)          fatal("Profiling not implemented yet.")
+#define BLOCK_PROFILER(FILE, BLOCKNO)          \
+  internal_error ("Profiling not implemented yet.")
 
 
 /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
@@ -1202,7 +1205,8 @@ extern struct dsp16xx_frame_info current_frame_info;
 
 #define EXIT_IGNORE_STACK  (0)
 
-#define TRAMPOLINE_TEMPLATE(FILE) fatal ("Trampolines not yet implemented");
+#define TRAMPOLINE_TEMPLATE(FILE) \
+  internal_error ("Trampolines not yet implemented");
 
 /* Length in units of the trampoline for entering a nested function.
    This is a dummy value  */
@@ -1214,7 +1218,7 @@ extern struct dsp16xx_frame_info current_frame_info;
    CXT is an RTX for the static chain value for the function. */
 
 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)                      \
-  fatal ("Trampolines not yet implemented");
+  internal_error ("Trampolines not yet implemented");
 
 /* This macro generates the assembly code for function exit,
    on machines that need it.  If FUNCTION_EPILOGUE is not defined
@@ -1835,11 +1839,13 @@ const_section ()                                                   \
 
 /* This is how to output an insn to push a register on the stack.
    It need not be very fast code since it is used only for profiling  */
-#define ASM_OUTPUT_REG_PUSH(FILE,REGNO)    fatal("Profiling not implemented yet.");
+#define ASM_OUTPUT_REG_PUSH(FILE,REGNO)    \
+  internal_error ("Profiling not implemented yet.");
 
 /* This is how to output an insn to pop a register from the stack.
    It need not be very fast code since it is used only for profiling  */
-#define ASM_OUTPUT_REG_POP(FILE,REGNO)     fatal("Profiling not implemented yet."); 
+#define ASM_OUTPUT_REG_POP(FILE,REGNO)     \
+  internal_error ("Profiling not implemented yet."); 
 \f
 /* OUTPUT OF DISPATCH TABLES */
 
index 7af9bb1..fc70c50 100644 (file)
@@ -1644,7 +1644,7 @@ typedef struct rs6000_args
    || DEFAULT_ABI == ABI_AIX_NODESC)   ? (TARGET_32BIT ? 8 : 16) :     \
   (DEFAULT_ABI == ABI_V4                                               \
    || DEFAULT_ABI == ABI_SOLARIS)      ? (TARGET_32BIT ? 4 : 8) :      \
-  (fatal ("RETURN_ADDRESS_OFFSET not supported"), 0))
+  (internal_error ("RETURN_ADDRESS_OFFSET not supported"), 0))
 
 /* The current return address is in link register (65).  The return address
    of anything farther back is accessed normally at an offset of 8 from the