Commit 98ccf8fe by Richard Kenner

*** empty log message ***

From-SVN: r361
parent 7afe21cc
...@@ -33,12 +33,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -33,12 +33,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" "%{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:}" %{g:-lg} %{sun386:}"
/* That last item is just to prevent a spurious error. */ /* That last item is just to prevent a spurious error. */
#undef LINK_SPEC #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. */ /* Extra switches to give the assembler. */
......
...@@ -152,12 +152,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -152,12 +152,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif #endif
#endif #endif
/* Provide required defaults for linker -e and -d switches. /* 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. */
#define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} \ #define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic} %{assert*}"
%{assert*}"
/* Every structure or union's size must be a multiple of 2 bytes. */ /* Every structure or union's size must be a multiple of 2 bytes. */
......
...@@ -19,42 +19,34 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -19,42 +19,34 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define MIPS_NEWS #define MIPS_NEWS
#define CPP_PREDEFINES "-Dr3000 -Dnews3700 -DLANGUAGE_C -DMIPSEB -DSYSTYPE_BSD -Dsony_news -Dsony -Dunix -Dmips -Dhost_mips" #define CPP_PREDEFINES "-Dr3000 -Dnews3700 -DLANGUAGE_C -DMIPSEB -DSYSTYPE_BSD \
-Dsony_news -Dsony -Dunix -Dmips -Dhost_mips"
#define ASM_SPEC "%{!mgas: \
%{!mrnames: -nocpp} \ #define ASM_SPEC "\
%{pipe:%e:-pipe not supported} \ %{!mgas: \
%{EB} %{!EB:-EB} \ %{!mrnames: -nocpp} \
%{EL: %e-EL not supported} \ %{pipe:%e:-pipe not supported} \
%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \ %{EB} %{!EB:-EB} \
%{g} %{g1} %{g2} %{g3} %{g0} %{v} %{K} \ %{EL: %e-EL not supported} \
%{G*}" %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \
%{g} %{g1} %{g2} %{g3} %{g0} %{v} %{K} \
#define CPP_SPEC "-I/usr/include2.0 \ %{G*}}"
%{.S: -D__LANGUAGE_ASSEMBLY__ \
-D_LANGUAGE_ASSEMBLY \ #define CPP_SPEC "\
%{!ansi:-DLANGUAGE_ASSEMBLY}} \ %{!nostdinc: -I/usr/include2.0} \
%{.cc: -D__LANGUAGE_C_PLUS_PLUS__ \ %{.cc: -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS} \
-D_LANGUAGE_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} \
%{.cxx:-D__LANGUAGE_C_PLUS_PLUS__ \ %{.m: -D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C} \
-D_LANGUAGE_C_PLUS_PLUS \ %{.S: -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
%{!ansi:-DLANGUAGE_C_PLUS_PLUS}} \ %{!.S: -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
%{.C: -D__LANGUAGE_C_PLUS_PLUS__ \
-D_LANGUAGE_C_PLUS_PLUS \ #define LINK_SPEC "\
%{!ansi:-DLANGUAGE_C_PLUS_PLUS}} \ %{G*} \
%{.m: -D__LANGUAGE_OBJECTIVE_C__ \ %{!mgas: \
-D_LANGUAGE_OBJECTIVE_C \ %{EB} %{!EB:-EB} \
%{!ansi:-DLANGUAGE_OBJECTIVE_C}} \ %{EL: %e-EL not supported} \
%{!.S: -D__LANGUAGE_C__ \ %{bestGnum}}"
-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" #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"
......
...@@ -23,9 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -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}" #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
/* Provide required defaults for linker -e and -d switches. /* 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. */
#define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic} %{assert*}" #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. */ ...@@ -43,14 +41,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define WCHAR_TYPE "short unsigned int" #define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE 16 #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) \ #define OPTIMIZATION_OPTIONS(OPTIMIZE) \
{ \ { \
if (OPTIMIZE >= 2) \ if (OPTIMIZE >= 2) \
{ \ { \
flag_omit_frame_pointer = 1; \ flag_omit_frame_pointer = 1; \
flag_caller_saves = 1; \
} \ } \
} }
......
...@@ -2204,8 +2204,12 @@ mark_target_live_regs (target, res) ...@@ -2204,8 +2204,12 @@ mark_target_live_regs (target, res)
/* If we hit an unconditional branch, we have another way of finding out /* 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 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 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. */ live are those that are live using the above test and the test below.
if (jump_insn)
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 rtx jump_target = (GET_CODE (jump_insn) == INSN
? JUMP_LABEL (XVECEXP (PATTERN (jump_insn), 0, 0)) ? JUMP_LABEL (XVECEXP (PATTERN (jump_insn), 0, 0))
......
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