*** empty log message ***
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 27 Feb 1992 12:51:07 +0000 (07:51 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 27 Feb 1992 12:51:07 +0000 (07:51 -0500)
From-SVN: r361

gcc/config/i386/sun.h
gcc/config/m68k/sun3.h
gcc/config/mips/news4.h
gcc/config/sparc/sparc.h
gcc/reorg.c

index 6ec9d1515b7f15bd717ed6fa327a2dee8c81d920..655e63c86f4597dfe9f077c723a232bdcca697aa 100644 (file)
@@ -33,12 +33,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define STARTFILE_SPEC  \
   "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
 
-#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\
+#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
 %{g:-lg} %{sun386:}"
 /* That last item is just to prevent a spurious error.  */
 
 #undef LINK_SPEC
-#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"
+#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{static:-Bstatic}"
 
 /* Extra switches to give the assembler.  */
 
index 9c0afd8d31e2c9d4e26cfaa0b78477c789916f02..a12354a9baead6beb45df79b76c70f2122cb5818 100644 (file)
@@ -152,12 +152,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #endif
 #endif
 
-/* Provide required defaults for linker -e and -d switches.
-   Also, it is hard to debug with shared libraries,
-   so don't use them if going to debug.  */
+/* Provide required defaults for linker -e and -d switches.  */
 
-#define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} \
-  %{assert*}"
+#define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic} %{assert*}"
 
 /* Every structure or union's size must be a multiple of 2 bytes.  */
 
index 45d10bf5b1a859ff03664908f40e85fa9e580108..5597b7e557034d7899bd6675845dd7006024ef20 100644 (file)
@@ -19,42 +19,34 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define MIPS_NEWS
 
-#define CPP_PREDEFINES "-Dr3000 -Dnews3700 -DLANGUAGE_C -DMIPSEB -DSYSTYPE_BSD -Dsony_news -Dsony -Dunix -Dmips -Dhost_mips"
-
-#define ASM_SPEC       "%{!mgas:                                       \
-                               %{!mrnames: -nocpp}                     \
-                               %{pipe:%e:-pipe not supported}          \
-                               %{EB} %{!EB:-EB}                        \
-                               %{EL: %e-EL not supported}              \
-                               %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}  \
-                               %{g} %{g1} %{g2} %{g3} %{g0} %{v} %{K}  \
-                        %{G*}"
-
-#define CPP_SPEC       "-I/usr/include2.0                              \
-                        %{.S:  -D__LANGUAGE_ASSEMBLY__                 \
-                               -D_LANGUAGE_ASSEMBLY                    \
-                               %{!ansi:-DLANGUAGE_ASSEMBLY}}           \
-                        %{.cc: -D__LANGUAGE_C_PLUS_PLUS__              \
-                               -D_LANGUAGE_C_PLUS_PLUS                 \
-                               %{!ansi:-DLANGUAGE_C_PLUS_PLUS}}        \
-                        %{.cxx:-D__LANGUAGE_C_PLUS_PLUS__              \
-                               -D_LANGUAGE_C_PLUS_PLUS                 \
-                               %{!ansi:-DLANGUAGE_C_PLUS_PLUS}}        \
-                        %{.C:  -D__LANGUAGE_C_PLUS_PLUS__              \
-                               -D_LANGUAGE_C_PLUS_PLUS                 \
-                               %{!ansi:-DLANGUAGE_C_PLUS_PLUS}}        \
-                        %{.m:  -D__LANGUAGE_OBJECTIVE_C__              \
-                               -D_LANGUAGE_OBJECTIVE_C                 \
-                               %{!ansi:-DLANGUAGE_OBJECTIVE_C}}        \
-                        %{!.S: -D__LANGUAGE_C__                        \
-                               -D_LANGUAGE_C                           \
-                               %{!ansi:-DLANGUAGE_C}}"
-
-#define LINK_SPEC      "%{G*}                                          \
-                        %{!mgas:                                       \
-                               %{EB} %{!EB:-EB}                        \
-                               %{EL: %e-EL not supported}              \
-                               %{bestGnum}}"
+#define CPP_PREDEFINES "-Dr3000 -Dnews3700 -DLANGUAGE_C -DMIPSEB -DSYSTYPE_BSD \
+-Dsony_news -Dsony -Dunix -Dmips -Dhost_mips"
+
+#define ASM_SPEC "\
+%{!mgas: \
+       %{!mrnames: -nocpp} \
+       %{pipe:%e:-pipe not supported} \
+       %{EB} %{!EB:-EB} \
+       %{EL: %e-EL not supported} \
+       %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \
+       %{g} %{g1} %{g2} %{g3} %{g0} %{v} %{K} \
+       %{G*}}"
+
+#define CPP_SPEC "\
+%{!nostdinc: -I/usr/include2.0} \
+%{.cc: -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
+%{.cxx:        -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
+%{.C:  -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
+%{.m:  -D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C} \
+%{.S:  -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
+%{!.S: -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
+
+#define LINK_SPEC "\
+%{G*} \
+%{!mgas: \
+       %{EB} %{!EB:-EB} \
+       %{EL: %e-EL not supported} \
+       %{bestGnum}}"
 
 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"
 
index 1f1d2c30f2522d67b7fcd0294143befab4899638..61bd204c74342449fa66fb2a22c1c8cbc144985d 100644 (file)
@@ -23,9 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
 
-/* Provide required defaults for linker -e and -d switches.
-   Also, it is hard to debug with shared libraries,
-   so don't use them if going to debug.  */
+/* Provide required defaults for linker -e and -d switches.  */
 
 #define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic} %{assert*}"
 
@@ -43,14 +41,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16
 
-/* Omit frame pointer and enable caller-saves at high optimization levels.  */
-
+/* Omit frame pointer at high optimization levels.  */
+  
 #define OPTIMIZATION_OPTIONS(OPTIMIZE) \
 {                                                              \
   if (OPTIMIZE >= 2)                                           \
     {                                                          \
       flag_omit_frame_pointer = 1;                             \
-      flag_caller_saves = 1;                                   \
     }                                                          \
 }
 
index a05be1b511f1153e56a8ca9e6ebf398e5c466bf9..e237b07ee4e66e9d0822cbfe4264e34625357de9 100644 (file)
@@ -2204,8 +2204,12 @@ mark_target_live_regs (target, res)
   /* If we hit an unconditional branch, we have another way of finding out
      what is live: we can see what is live at the branch target and include
      anything used but not set before the branch.  The only things that are
-     live are those that are live using the above test and the test below.  */
-  if (jump_insn)
+     live are those that are live using the above test and the test below.
+
+     Don't try this if we expired our jump count above, since that would
+     mean there may be an infinite loop in the function being compiled.  */
+
+  if (jump_insn && jump_count < 10)
     {
       rtx jump_target = (GET_CODE (jump_insn) == INSN
                         ? JUMP_LABEL (XVECEXP (PATTERN (jump_insn), 0, 0))