Commit 343f59d9 by Alan Modra Committed by Alan Modra

configure.in (CROSS): Define NATIVE_CROSS.

	* configure.in (CROSS): Define NATIVE_CROSS.
	* configure: Regenerate.
	* gcc.c (STARTFILE_PREFIX_SPEC): Define.
	(startfile_prefix_spec): New var.
	(static_specs): Add startfile_prefix_spec.
	(do_spec_2): Split out from..
	(do_spec): ..here.
	(main): Process startfile_prefix_spec.
	* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
	dynamic linker.
	(STARTFILE_PREFIX_SPEC): Define.
	(STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
        absolute paths.

From-SVN: r53752
parent df383483
2002-05-23 Alan Modra <amodra@bigpond.net.au>
* configure.in (CROSS): Define NATIVE_CROSS.
* configure: Regenerate.
* gcc.c (STARTFILE_PREFIX_SPEC): Define.
(startfile_prefix_spec): New var.
(static_specs): Add startfile_prefix_spec.
(do_spec_2): Split out from..
(do_spec): ..here.
(main): Process startfile_prefix_spec.
* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
dynamic linker.
(STARTFILE_PREFIX_SPEC): Define.
(STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
absolute paths.
2002-05-22 Kazu Hirata <kazu@cs.umass.edu> 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
* cpperror.c: Fix formatting. * cpperror.c: Fix formatting.
......
...@@ -100,6 +100,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -100,6 +100,7 @@ Boston, MA 02111-1307, USA. */
/* Don't assume anything about the header files. */ /* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C #define NO_IMPLICIT_EXTERN_C
/* Override svr4.h */
#undef MD_EXEC_PREFIX #undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX #undef MD_STARTFILE_PREFIX
...@@ -138,29 +139,23 @@ Boston, MA 02111-1307, USA. */ ...@@ -138,29 +139,23 @@ Boston, MA 02111-1307, USA. */
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
#undef LINK_OS_LINUX_SPEC #undef LINK_OS_LINUX_SPEC
#ifndef CROSS_COMPILE
#define LINK_OS_LINUX_SPEC "-m elf64ppc %{!shared: %{!static: \ #define LINK_OS_LINUX_SPEC "-m elf64ppc %{!shared: %{!static: \
%{rdynamic:-export-dynamic} \ %{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /lib64/ld.so.1}}}" %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
#else
#define LINK_OS_LINUX_SPEC "-m elf64ppc %{!shared: %{!static: \ #ifdef NATIVE_CROSS
%{rdynamic:-export-dynamic} \ #define STARTFILE_PREFIX_SPEC "/usr/local/lib64/ /lib64/ /usr/lib64/"
%{!dynamic-linker:-dynamic-linker ld.so.1}}}"
#endif #endif
#ifndef CROSS_COMPILE
#undef STARTFILE_LINUX_SPEC #undef STARTFILE_LINUX_SPEC
#define STARTFILE_LINUX_SPEC "\ #define STARTFILE_LINUX_SPEC "\
%{!shared: %{pg:/usr/lib64/gcrt1.o%s} %{!pg:%{p:/usr/lib64/gcrt1.o%s} \ %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} crti.o%s \
%{!p:/usr/lib64/crt1.o%s}}} /usr/lib64/crti.o%s \ %{static:crtbeginT.o%s} \
%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
#endif
#ifndef CROSS_COMPILE
#undef ENDFILE_LINUX_SPEC #undef ENDFILE_LINUX_SPEC
#define ENDFILE_LINUX_SPEC "\ #define ENDFILE_LINUX_SPEC "\
%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib64/crtn.o%s" %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
#endif
#undef TOC_SECTION_ASM_OP #undef TOC_SECTION_ASM_OP
#define TOC_SECTION_ASM_OP "\t.section\t\".toc\",\"aw\"" #define TOC_SECTION_ASM_OP "\t.section\t\".toc\",\"aw\""
......
...@@ -6766,6 +6766,11 @@ then ...@@ -6766,6 +6766,11 @@ then
CROSS="-DCROSS_COMPILE" CROSS="-DCROSS_COMPILE"
ALL=all.cross ALL=all.cross
SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
case "$host","$target" in
i?86-*-*,x86_64-*-* \
| powerpc*-*-*,powerpc64*-*-*)
CROSS="$CROSS -DNATIVE_CROSS" ;;
esac
fi fi
# If this is a cross-compiler that does not # If this is a cross-compiler that does not
...@@ -6854,7 +6859,7 @@ fi ...@@ -6854,7 +6859,7 @@ fi
# Figure out what assembler we will be using. # Figure out what assembler we will be using.
echo $ac_n "checking what assembler to use""... $ac_c" 1>&6 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
echo "configure:6858: checking what assembler to use" >&5 echo "configure:6863: checking what assembler to use" >&5
gcc_cv_as= gcc_cv_as=
gcc_cv_gas_major_version= gcc_cv_gas_major_version=
gcc_cv_gas_minor_version= gcc_cv_gas_minor_version=
...@@ -6948,7 +6953,7 @@ fi ...@@ -6948,7 +6953,7 @@ fi
# Figure out what linker we will be using. # Figure out what linker we will be using.
echo $ac_n "checking what linker to use""... $ac_c" 1>&6 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
echo "configure:6952: checking what linker to use" >&5 echo "configure:6957: checking what linker to use" >&5
gcc_cv_ld= gcc_cv_ld=
gcc_cv_gld_major_version= gcc_cv_gld_major_version=
gcc_cv_gld_minor_version= gcc_cv_gld_minor_version=
...@@ -7041,7 +7046,7 @@ fi ...@@ -7041,7 +7046,7 @@ fi
# Figure out what nm we will be using. # Figure out what nm we will be using.
echo $ac_n "checking what nm to use""... $ac_c" 1>&6 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
echo "configure:7045: checking what nm to use" >&5 echo "configure:7050: checking what nm to use" >&5
if test -x nm$host_exeext; then if test -x nm$host_exeext; then
gcc_cv_nm=./nm$host_exeext gcc_cv_nm=./nm$host_exeext
elif test "x$program_prefix" != xNONE; then elif test "x$program_prefix" != xNONE; then
...@@ -7053,7 +7058,7 @@ echo "$ac_t""$gcc_cv_nm" 1>&6 ...@@ -7053,7 +7058,7 @@ echo "$ac_t""$gcc_cv_nm" 1>&6
# Figure out what objdump we will be using. # Figure out what objdump we will be using.
echo $ac_n "checking what objdump to use""... $ac_c" 1>&6 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
echo "configure:7057: checking what objdump to use" >&5 echo "configure:7062: checking what objdump to use" >&5
if test -x objdump$host_exeext; then if test -x objdump$host_exeext; then
gcc_cv_objdump=./objdump$host_exeext gcc_cv_objdump=./objdump$host_exeext
elif test "x$program_prefix" != xNONE; then elif test "x$program_prefix" != xNONE; then
...@@ -7065,7 +7070,7 @@ echo "$ac_t""$gcc_cv_objdump" 1>&6 ...@@ -7065,7 +7070,7 @@ echo "$ac_t""$gcc_cv_objdump" 1>&6
# Figure out what assembler alignment features are present. # Figure out what assembler alignment features are present.
echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
echo "configure:7069: checking assembler alignment features" >&5 echo "configure:7074: checking assembler alignment features" >&5
gcc_cv_as_alignment_features=none gcc_cv_as_alignment_features=none
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
# Gas version 2.6 and later support for .balign and .p2align. # Gas version 2.6 and later support for .balign and .p2align.
...@@ -7113,7 +7118,7 @@ fi ...@@ -7113,7 +7118,7 @@ fi
echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
echo "configure:7117: checking assembler subsection support" >&5 echo "configure:7122: checking assembler subsection support" >&5
gcc_cv_as_subsections=no gcc_cv_as_subsections=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
...@@ -7153,7 +7158,7 @@ fi ...@@ -7153,7 +7158,7 @@ fi
echo "$ac_t""$gcc_cv_as_subsections" 1>&6 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
echo "configure:7157: checking assembler weak support" >&5 echo "configure:7162: checking assembler weak support" >&5
gcc_cv_as_weak=no gcc_cv_as_weak=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
...@@ -7176,7 +7181,7 @@ fi ...@@ -7176,7 +7181,7 @@ fi
echo "$ac_t""$gcc_cv_as_weak" 1>&6 echo "$ac_t""$gcc_cv_as_weak" 1>&6
echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
echo "configure:7180: checking assembler hidden support" >&5 echo "configure:7185: checking assembler hidden support" >&5
gcc_cv_as_hidden=no gcc_cv_as_hidden=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 \ if test "$gcc_cv_gas_major_version" -eq 2 \
...@@ -7219,7 +7224,7 @@ libgcc_visibility=$gcc_cv_as_hidden ...@@ -7219,7 +7224,7 @@ libgcc_visibility=$gcc_cv_as_hidden
echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
echo "configure:7223: checking assembler leb128 support" >&5 echo "configure:7228: checking assembler leb128 support" >&5
gcc_cv_as_leb128=no gcc_cv_as_leb128=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
...@@ -7264,7 +7269,7 @@ fi ...@@ -7264,7 +7269,7 @@ fi
echo "$ac_t""$gcc_cv_as_leb128" 1>&6 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
echo "configure:7268: checking assembler eh_frame optimization" >&5 echo "configure:7273: checking assembler eh_frame optimization" >&5
gcc_cv_as_eh_frame=no gcc_cv_as_eh_frame=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
...@@ -7345,7 +7350,7 @@ fi ...@@ -7345,7 +7350,7 @@ fi
echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
echo "configure:7349: checking assembler section merging support" >&5 echo "configure:7354: checking assembler section merging support" >&5
gcc_cv_as_shf_merge=no gcc_cv_as_shf_merge=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
...@@ -7371,7 +7376,7 @@ case "$target" in ...@@ -7371,7 +7376,7 @@ case "$target" in
# All TARGET_ABI_OSF targets. # All TARGET_ABI_OSF targets.
alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
echo "configure:7375: checking assembler supports explicit relocations" >&5 echo "configure:7380: checking assembler supports explicit relocations" >&5
if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7421,7 +7426,7 @@ EOF ...@@ -7421,7 +7426,7 @@ EOF
;; ;;
sparc*-*-*) sparc*-*-*)
echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
echo "configure:7425: checking assembler .register pseudo-op support" >&5 echo "configure:7430: checking assembler .register pseudo-op support" >&5
if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7449,7 +7454,7 @@ EOF ...@@ -7449,7 +7454,7 @@ EOF
fi fi
echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
echo "configure:7453: checking assembler supports -relax" >&5 echo "configure:7458: checking assembler supports -relax" >&5
if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7477,7 +7482,7 @@ EOF ...@@ -7477,7 +7482,7 @@ EOF
fi fi
echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
echo "configure:7481: checking assembler and linker support unaligned pc related relocs" >&5 echo "configure:7486: checking assembler and linker support unaligned pc related relocs" >&5
if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7504,7 +7509,7 @@ EOF ...@@ -7504,7 +7509,7 @@ EOF
fi fi
echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
echo "configure:7508: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5 echo "configure:7513: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7545,7 +7550,7 @@ EOF ...@@ -7545,7 +7550,7 @@ EOF
if test "x$gcc_cv_as_flags64" != xno; then if test "x$gcc_cv_as_flags64" != xno; then
echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
echo "configure:7549: checking for assembler offsetable %lo() support" >&5 echo "configure:7554: checking for assembler offsetable %lo() support" >&5
if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -7585,7 +7590,7 @@ EOF ...@@ -7585,7 +7590,7 @@ EOF
i[34567]86-*-* | x86_64-*-*) i[34567]86-*-* | x86_64-*-*)
echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
echo "configure:7589: checking assembler instructions" >&5 echo "configure:7594: checking assembler instructions" >&5
gcc_cv_as_instructions= gcc_cv_as_instructions=
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
...@@ -7612,7 +7617,7 @@ EOF ...@@ -7612,7 +7617,7 @@ EOF
echo "$ac_t""$gcc_cv_as_instructions" 1>&6 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
echo "configure:7616: checking assembler GOTOFF in data directives" >&5 echo "configure:7621: checking assembler GOTOFF in data directives" >&5
gcc_cv_as_gotoff_in_data=no gcc_cv_as_gotoff_in_data=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x
then then
...@@ -7642,7 +7647,7 @@ EOF ...@@ -7642,7 +7647,7 @@ EOF
esac esac
echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
echo "configure:7646: checking assembler dwarf2 debug_line support" >&5 echo "configure:7651: checking assembler dwarf2 debug_line support" >&5
gcc_cv_as_dwarf2_debug_line=no gcc_cv_as_dwarf2_debug_line=no
# ??? Not all targets support dwarf2 debug_line, even within a version # ??? Not all targets support dwarf2 debug_line, even within a version
# of gas. Moreover, we need to emit a valid instruction to trigger any # of gas. Moreover, we need to emit a valid instruction to trigger any
...@@ -7698,7 +7703,7 @@ fi ...@@ -7698,7 +7703,7 @@ fi
echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
echo "configure:7702: checking assembler --gdwarf2 support" >&5 echo "configure:7707: checking assembler --gdwarf2 support" >&5
gcc_cv_as_gdwarf2_flag=no gcc_cv_as_gdwarf2_flag=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
then then
...@@ -7727,7 +7732,7 @@ fi ...@@ -7727,7 +7732,7 @@ fi
echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
echo "configure:7731: checking assembler --gstabs support" >&5 echo "configure:7736: checking assembler --gstabs support" >&5
gcc_cv_as_gstabs_flag=no gcc_cv_as_gstabs_flag=no
if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
then then
...@@ -7755,7 +7760,7 @@ fi ...@@ -7755,7 +7760,7 @@ fi
echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
echo "configure:7759: checking linker PT_GNU_EH_FRAME support" >&5 echo "configure:7764: checking linker PT_GNU_EH_FRAME support" >&5
gcc_cv_ld_eh_frame_hdr=no gcc_cv_ld_eh_frame_hdr=no
if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then
if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
...@@ -7918,7 +7923,7 @@ fi ...@@ -7918,7 +7923,7 @@ fi
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo "configure:7922: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo "configure:7927: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then if test "${enable_maintainer_mode+set}" = set; then
enableval="$enable_maintainer_mode" enableval="$enable_maintainer_mode"
......
...@@ -1115,6 +1115,11 @@ then ...@@ -1115,6 +1115,11 @@ then
CROSS="-DCROSS_COMPILE" CROSS="-DCROSS_COMPILE"
ALL=all.cross ALL=all.cross
SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
case "$host","$target" in
i?86-*-*,x86_64-*-* \
| powerpc*-*-*,powerpc64*-*-*)
CROSS="$CROSS -DNATIVE_CROSS" ;;
esac
fi fi
# If this is a cross-compiler that does not # If this is a cross-compiler that does not
......
...@@ -299,6 +299,7 @@ static const char *handle_braces PARAMS ((const char *)); ...@@ -299,6 +299,7 @@ static const char *handle_braces PARAMS ((const char *));
static char *save_string PARAMS ((const char *, int)); static char *save_string PARAMS ((const char *, int));
static void set_collect_gcc_options PARAMS ((void)); static void set_collect_gcc_options PARAMS ((void));
static int do_spec_1 PARAMS ((const char *, int, const char *)); static int do_spec_1 PARAMS ((const char *, int, const char *));
static int do_spec_2 PARAMS ((const char *));
static const char *find_file PARAMS ((const char *)); static const char *find_file PARAMS ((const char *));
static int is_directory PARAMS ((const char *, const char *, int)); static int is_directory PARAMS ((const char *, const char *, int));
static void validate_switches PARAMS ((const char *)); static void validate_switches PARAMS ((const char *));
...@@ -641,6 +642,10 @@ proper position among the other output files. */ ...@@ -641,6 +642,10 @@ proper position among the other output files. */
# endif # endif
#endif #endif
#ifndef STARTFILE_PREFIX_SPEC
# define STARTFILE_PREFIX_SPEC ""
#endif
static const char *asm_debug = ASM_DEBUG_SPEC; static const char *asm_debug = ASM_DEBUG_SPEC;
static const char *cpp_spec = CPP_SPEC; static const char *cpp_spec = CPP_SPEC;
static const char *cpp_predefines = CPP_PREDEFINES; static const char *cpp_predefines = CPP_PREDEFINES;
...@@ -658,6 +663,7 @@ static const char *switches_need_spaces = SWITCHES_NEED_SPACES; ...@@ -658,6 +663,7 @@ static const char *switches_need_spaces = SWITCHES_NEED_SPACES;
static const char *linker_name_spec = LINKER_NAME; static const char *linker_name_spec = LINKER_NAME;
static const char *link_command_spec = LINK_COMMAND_SPEC; static const char *link_command_spec = LINK_COMMAND_SPEC;
static const char *link_libgcc_spec = LINK_LIBGCC_SPEC; static const char *link_libgcc_spec = LINK_LIBGCC_SPEC;
static const char *startfile_prefix_spec = STARTFILE_PREFIX_SPEC;
/* Standard options to cpp, cc1, and as, to reduce duplication in specs. /* Standard options to cpp, cc1, and as, to reduce duplication in specs.
There should be no need to override these in target dependent files, There should be no need to override these in target dependent files,
...@@ -1388,6 +1394,7 @@ static struct spec_list static_specs[] = ...@@ -1388,6 +1394,7 @@ static struct spec_list static_specs[] =
INIT_STATIC_SPEC ("md_exec_prefix", &md_exec_prefix), INIT_STATIC_SPEC ("md_exec_prefix", &md_exec_prefix),
INIT_STATIC_SPEC ("md_startfile_prefix", &md_startfile_prefix), INIT_STATIC_SPEC ("md_startfile_prefix", &md_startfile_prefix),
INIT_STATIC_SPEC ("md_startfile_prefix_1", &md_startfile_prefix_1), INIT_STATIC_SPEC ("md_startfile_prefix_1", &md_startfile_prefix_1),
INIT_STATIC_SPEC ("startfile_prefix_spec", &startfile_prefix_spec),
}; };
#ifdef EXTRA_SPECS /* additional specs needed */ #ifdef EXTRA_SPECS /* additional specs needed */
...@@ -4133,15 +4140,7 @@ do_spec (spec) ...@@ -4133,15 +4140,7 @@ do_spec (spec)
{ {
int value; int value;
clear_args (); value = do_spec_2 (spec);
arg_going = 0;
delete_this_arg = 0;
this_is_output_file = 0;
this_is_library_file = 0;
input_from_pipe = 0;
suffix_subst = NULL;
value = do_spec_1 (spec, 0, NULL);
/* Force out any unfinished command. /* Force out any unfinished command.
If -pipe, this forces out the last command if it ended in `|'. */ If -pipe, this forces out the last command if it ended in `|'. */
...@@ -4159,6 +4158,21 @@ do_spec (spec) ...@@ -4159,6 +4158,21 @@ do_spec (spec)
return value; return value;
} }
static int
do_spec_2 (spec)
const char *spec;
{
clear_args ();
arg_going = 0;
delete_this_arg = 0;
this_is_output_file = 0;
this_is_library_file = 0;
input_from_pipe = 0;
suffix_subst = NULL;
return do_spec_1 (spec, 0, NULL);
}
/* Process the sub-spec SPEC as a portion of a larger spec. /* Process the sub-spec SPEC as a portion of a larger spec.
This is like processing a whole spec except that we do This is like processing a whole spec except that we do
not initialize at the beginning and we do not supply a not initialize at the beginning and we do not supply a
...@@ -5838,8 +5852,10 @@ main (argc, argv) ...@@ -5838,8 +5852,10 @@ main (argc, argv)
if (access (specs_file, R_OK) == 0) if (access (specs_file, R_OK) == 0)
read_specs (specs_file, TRUE); read_specs (specs_file, TRUE);
/* If not cross-compiling, look for startfiles in the standard places. */ /* If not cross-compiling, look for startfiles in the standard places.
if (*cross_compile == '0') Similarly, don't add the standard prefixes if startfile handling
will be under control of startfile_prefix_spec. */
if (*cross_compile == '0' || *startfile_prefix_spec == 0)
{ {
if (*md_exec_prefix) if (*md_exec_prefix)
{ {
...@@ -5897,6 +5913,16 @@ main (argc, argv) ...@@ -5897,6 +5913,16 @@ main (argc, argv)
"BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL); "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL);
} }
if (*startfile_prefix_spec != 0
&& do_spec_2 (startfile_prefix_spec) == 0
&& do_spec_1 (" ", 0, NULL) == 0)
{
int ndx;
for (ndx = 0; ndx < argbuf_index; ndx++)
add_prefix (&startfile_prefixes, argbuf[ndx], "BINUTILS",
PREFIX_PRIORITY_LAST, 0, NULL);
}
/* Process any user specified specs in the order given on the command /* Process any user specified specs in the order given on the command
line. */ line. */
for (uptr = user_specs_head; uptr; uptr = uptr->next) for (uptr = user_specs_head; uptr; uptr = uptr->next)
......
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