From 91ec62fb97f9a54ac976d45efec768815a885b24 Mon Sep 17 00:00:00 2001 From: macro Date: Wed, 1 Jul 2009 01:23:54 +0000 Subject: * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1. * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the to 0. * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab and umod_optab if TARGET_BSD_DIVMOD. * config/vax/lib1funcs.asm: New file. * config/vax/t-linux: New file. * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149128 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index e5787374b6e..fe345c13953 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2439,6 +2439,7 @@ v850-*-*) ;; vax-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h vax/elf.h vax/linux.h" + tmake_file=vax/t-linux ;; vax-*-netbsdelf*) tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" -- cgit v1.2.1 From 1af9587c4c50b80a901988c28f2ece803ae9f4d7 Mon Sep 17 00:00:00 2001 From: daney Date: Fri, 10 Jul 2009 22:49:52 +0000 Subject: 2009-07-10 David Daney PR target/39079 * testsuite/gcc.target/mips/mips.exp: Make -msynci a known option. * gcc.target/mips/clear-cache-1.c (dg-options): Add -msynci. 2009-07-10 David Daney PR target/39079 * config.gcc (supported_defaults): Add synci. (with_synci): Add validation. (all_defaults): Add synci. * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of ISA_HAS_SYNCI. (synci): Same. * config/mips/mips.opt (msynci): New option. * config/mips/mips.c (mips_override_options): Warn on use of -msynci for targets that do now support it. * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for msynci. * gcc/doc/invoke.texi (-msynci): Document the new option. * doc/install.texi (--with-synci): Document the new option. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149500 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index fe345c13953..98d7771b322 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2902,7 +2902,7 @@ case "${target}" in ;; mips*-*-*) - supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt" + supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci" case ${with_float} in "" | soft | hard) @@ -2964,6 +2964,20 @@ case "${target}" in exit 1 ;; esac + + case ${with_synci} in + yes) + with_synci=synci + ;; + "" | no) + # No is the default. + with_synci=no-synci + ;; + *) + echo "Unknown synci type used in --with-synci" 1>&2 + exit 1 + ;; + esac ;; powerpc*-*-* | rs6000-*-*) @@ -3230,7 +3244,7 @@ case ${target} in esac t= -all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc mips-plt" +all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc mips-plt synci" for option in $all_defaults do eval "val=\$with_"`echo $option | sed s/-/_/g` -- cgit v1.2.1 From 9d463647486b487baf3ec288c6c54fdaccb7bc72 Mon Sep 17 00:00:00 2001 From: nickc Date: Mon, 20 Jul 2009 12:13:50 +0000 Subject: * config.gcc (mips64vr-*-*): Use tm_defines to set MIPS_ABI_DEFAULT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149807 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 98d7771b322..ddc8fc869eb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1741,6 +1741,7 @@ mips64-*-elf* | mips64el-*-elf*) mips64vr-*-elf* | mips64vrel-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h" tmake_file=mips/t-vr + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" ;; mips64orion-*-elf* | mips64orionel-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h" -- cgit v1.2.1 From 447e8aaad08c564bac7fe74861b2f4a1a52c5ff2 Mon Sep 17 00:00:00 2001 From: green Date: Fri, 31 Jul 2009 05:11:21 +0000 Subject: Tweak ABI & add moxie-uclinux target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150307 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index ddc8fc869eb..ea24e1670c6 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -894,6 +894,15 @@ moxie-*-elf) extra_parts="crti.o crtn.o crtbegin.o crtend.o" tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp" ;; +moxie-*-uclinux*) + gas=yes + gnu_ld=yes + tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h" + extra_parts="crti.o crtn.o crtbegin.o crtend.o" + tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp" + tm_defines="${tm_defines} UCLIBC_DEFAULT=1" + extra_options="${extra_options} linux.opt" + ;; h8300-*-rtems*) tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems" tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h" -- cgit v1.2.1 From 39f6b116a52f53d26fdd48247db7630c781eb099 Mon Sep 17 00:00:00 2001 From: chrbr Date: Fri, 31 Jul 2009 12:51:10 +0000 Subject: enable SH libgloss build git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150314 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index ea24e1670c6..3d68b710d1b 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2096,7 +2096,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;; sh*-*-netbsd*) tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;; - sh*-superh-elf) if test x$with_libgloss != xno; then + sh*-*-elf) if test x$with_libgloss != xno; then with_libgloss=yes tm_file="${tm_file} sh/newlib.h" fi -- cgit v1.2.1 From c0045c9e36f70a24e1eb361c284e094a989fbbdb Mon Sep 17 00:00:00 2001 From: danglin Date: Sun, 2 Aug 2009 01:25:33 +0000 Subject: * config.gcc (hppa[12]*-*-hpux10*): Add stdint support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150341 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 3d68b710d1b..2c8dd98b45c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -951,6 +951,8 @@ hppa[12]*-*-hpux10*) extra_options="${extra_options} pa/pa-hpux1010.opt" ;; esac + use_gcc_stdint=provide + tm_file="${tm_file} hpux-stdint.h" tmake_file="pa/t-pa-hpux10 pa/t-pa-hpux pa/t-hpux-shlib" case ${enable_threads} in "") -- cgit v1.2.1 From 9b9a2528d521d80bc7c08287132e3e2c40cbe5fe Mon Sep 17 00:00:00 2001 From: rupp Date: Sun, 9 Aug 2009 07:05:11 +0000 Subject: * config.build (ia64-hp-*vms*): New target. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify with ia64-hp-*vms*. * config.gcc (ia64-hp-*vms*): New target. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify with ia64-hp-*vms*. * config.host (ia64-hp-*vms*): New target. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify with ia64-hp-*vms*. * libgcc/config.host (ia64-hp-*vms*): New target. (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify with ia64-hp-*vms*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150587 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 2c8dd98b45c..6e3a763853a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -669,17 +669,21 @@ alpha*-dec-osf[45]*) ;; alpha64-dec-*vms*) tm_file="${tm_file} alpha/vms.h alpha/vms64.h" - xm_file="alpha/xm-vms.h" - tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" - prefix=/gnu - local_prefix=/gnu + xm_file="alpha/xm-vms.h vms/xm-vms64.h" + tmake_file="alpha/t-alpha vms/t-vms vms/t-vms64 alpha/t-vms alpha/t-ieee" + xmake_file=vms/x-vms + exeext=.exe + install_headers_dir=install-headers-cp + extra_options="${extra_options} vms/vms.opt" ;; alpha*-dec-*vms*) tm_file="${tm_file} alpha/vms.h" - xm_file=alpha/xm-vms.h - tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" - prefix=/gnu - local_prefix=/gnu + xm_file="alpha/xm-vms.h" + tmake_file="alpha/t-alpha vms/t-vms alpha/t-vms alpha/t-ieee" + xmake_file=vms/x-vms + exeext=.exe + install_headers_dir=install-headers-cp + extra_options="${extra_options} vms/vms.opt" ;; arc-*-elf*) tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}" @@ -1416,6 +1420,20 @@ ia64*-*-hpux*) use_gcc_stdint=wrap tm_file="${tm_file} hpux-stdint.h" ;; +ia64-hp-*vms*) + tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h ia64/vms64.h" + xm_file="vms/xm-vms.h vms/xm-vms64.h" + tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms" + xmake_file=vms/x-vms + target_cpu_default="0" + if test x$gas = xyes + then + target_cpu_default="${target_cpu_default}|MASK_GNU_AS" + fi + exeext=.exe + install_headers_dir=install-headers-cp + extra_options="${extra_options} vms/vms.opt" + ;; iq2000*-*-elf*) tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h" tmake_file=iq2000/t-iq2000 -- cgit v1.2.1 From a47075bb592c7f0282cc48f2b580e2bc7c0c00c7 Mon Sep 17 00:00:00 2001 From: dj Date: Fri, 14 Aug 2009 02:26:33 +0000 Subject: * config/i386/djgpp-stdint.h: New. * config.gcc (djgpp): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150732 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 6e3a763853a..d3546774685 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1172,6 +1172,7 @@ i[34567]86-pc-msdosdjgpp*) extra_options="${extra_options} i386/djgpp.opt" gnu_ld=yes gas=yes + use_gcc_stdint=wrap ;; i[34567]86-*-lynxos*) xm_defines=POSIX -- cgit v1.2.1 From f51dfe4da5c967c6ec1e8b8baabad7748f8dfaa6 Mon Sep 17 00:00:00 2001 From: rupp Date: Fri, 14 Aug 2009 20:38:36 +0000 Subject: * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file. * config/ia64/t-vms: New file. * config/ia64/vms64.h: New file. * config/ia64/vms.h: New file. * config/ia64/vms-crtinit.asm: New file. * config/ia64/vms_symvec_libgcc_s.opt: New file. * config/ia64/vms-unwind.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150776 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index d3546774685..c8eb88e1665 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1424,7 +1424,7 @@ ia64*-*-hpux*) ia64-hp-*vms*) tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h ia64/vms64.h" xm_file="vms/xm-vms.h vms/xm-vms64.h" - tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms" + tmake_file="vms/t-vms vms/t-vms64 ia64/t-ia64 ia64/t-vms" xmake_file=vms/x-vms target_cpu_default="0" if test x$gas = xyes -- cgit v1.2.1 From 0e6b63604ef69379c987d958bd2c2d2e0a164ade Mon Sep 17 00:00:00 2001 From: kkojima Date: Sat, 29 Aug 2009 23:50:31 +0000 Subject: * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151213 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index c8eb88e1665..426fe8899fe 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2121,9 +2121,13 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ with_libgloss=yes tm_file="${tm_file} sh/newlib.h" fi - tm_file="${tm_file} sh/embed-elf.h sh/superh.h" - tmake_file="${tmake_file} sh/t-superh" - extra_options="${extra_options} sh/superh.opt" ;; + tm_file="${tm_file} sh/embed-elf.h" + case ${target} in + sh*-superh-elf) tm_file="${tm_file} sh/superh.h" + tmake_file="${tmake_file} sh/t-superh" + extra_options="${extra_options} sh/superh.opt" ;; + esac + ;; *) if test x$with_newlib = xyes \ && test x$with_libgloss = xyes; then tm_file="${tm_file} sh/newlib.h" -- cgit v1.2.1 From cfcf85396d5513ab688e998b7021d648cb74ee1d Mon Sep 17 00:00:00 2001 From: chrbr Date: Wed, 2 Sep 2009 06:04:00 +0000 Subject: replit sh*-superh-elf out of sh*-*-elf case git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151318 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 426fe8899fe..52a979af60a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2117,17 +2117,14 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;; sh*-*-netbsd*) tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;; - sh*-*-elf) if test x$with_libgloss != xno; then - with_libgloss=yes - tm_file="${tm_file} sh/newlib.h" - fi + sh*-superh-elf) if test x$with_libgloss != xno; then + with_libgloss=yes + tm_file="${tm_file} sh/newlib.h" + fi tm_file="${tm_file} sh/embed-elf.h" - case ${target} in - sh*-superh-elf) tm_file="${tm_file} sh/superh.h" - tmake_file="${tmake_file} sh/t-superh" - extra_options="${extra_options} sh/superh.opt" ;; - esac - ;; + tm_file="${tm_file} sh/superh.h" + tmake_file="${tmake_file} sh/t-superh" + extra_options="${extra_options} sh/superh.opt" ;; *) if test x$with_newlib = xyes \ && test x$with_libgloss = xyes; then tm_file="${tm_file} sh/newlib.h" -- cgit v1.2.1 From a3eb21172509bbe96dafcd60ac850fa49d70caed Mon Sep 17 00:00:00 2001 From: jakub Date: Wed, 9 Sep 2009 18:39:52 +0000 Subject: * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK): New variables. (SHLIB_LINK, SHLIB_INSTALL): Use them. * config/t-slibgcc-libgcc: New file. * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151568 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 52a979af60a..6a680a0b094 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1927,7 +1927,7 @@ powerpc-*-linux* | powerpc64-*-linux*) tm_file="${tm_file} rs6000/linux.h glibc-stdint.h" ;; esac - tmake_file="${tmake_file} rs6000/t-fprules-softfp soft-fp/t-softfp" + tmake_file="${tmake_file} t-slibgcc-libgcc rs6000/t-fprules-softfp soft-fp/t-softfp" case ${target} in powerpc*-*-linux*altivec*) tm_file="${tm_file} rs6000/linuxaltivec.h" ;; @@ -1943,19 +1943,19 @@ powerpc-*-linux* | powerpc64-*-linux*) powerpc64-*-gnu*) tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/default64.h rs6000/linux64.h rs6000/gnu.h glibc-stdint.h" extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" - tmake_file="t-slibgcc-elf-ver t-gnu" + tmake_file="t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu" ;; powerpc-*-gnu-gnualtivec*) tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h glibc-stdint.h" extra_options="${extra_options} rs6000/sysv4.opt" - tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" + tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm" if test x$enable_threads = xyes; then thread_file='posix' fi ;; powerpc-*-gnu*) tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h glibc-stdint.h" - tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" + tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm" extra_options="${extra_options} rs6000/sysv4.opt" if test x$enable_threads = xyes; then thread_file='posix' -- cgit v1.2.1 From d52a86c72461de3ff0f4cb4218c21b6570e9df39 Mon Sep 17 00:00:00 2001 From: ljrittle Date: Fri, 11 Sep 2009 15:29:47 +0000 Subject: 2009-09-11 Loren J. Rittle * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit to match the system compiler's configuration at inflection point. Add comment to remark a remaining difference with system compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151636 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 6a680a0b094..0e3d52b5643 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -478,6 +478,13 @@ case ${target} in ;; esac fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h" + case ${target} in + *-*-freebsd[345].*) + :;; + *) + default_use_cxa_atexit=yes;; + esac + # need_64bit_hwint=yes # system compiler has this for all arch! use_gcc_stdint=wrap ;; *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) -- cgit v1.2.1 From a4f7c8f77479aa46ba7962e91b975c0492386a6d Mon Sep 17 00:00:00 2001 From: ktietz Date: Sun, 13 Sep 2009 13:08:20 +0000 Subject: Changlog libcpp 2009-09-13 Kai Tietz * configure.ac: Set for i?86-w64-mingw* need_64bit_hwint to yes. * configure: Regenerated. ChangeLog gcc 2009-09-13 Kai Tietz * config.gcc (tm_file): Remove i386/biarch32.h for i?86-w64-mingw* case. (i?86-*-mingw* andx86_64-*-mingw*): Add multilib support. * config.host: Set for cygwin and x86/x64 mingw the option use_long_long_for_widest_fast_int to yes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151672 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 0e3d52b5643..00025638ceb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -372,12 +372,6 @@ then extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt" fi -case ${target} in -i[34567]86-w64-*) - tm_file="i386/biarch32.h ${tm_file}" - ;; -esac - case ${target} in i[34567]86-*-*) if test "x$enable_cld" = xyes; then @@ -1319,11 +1313,35 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*) i[34567]86-*-mingw* | x86_64-*-mingw*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" xm_file=i386/xm-mingw32.h + case ${target} in + x86_64-*-* | *-w64-*) + need_64bit_hwint=yes + ;; + *) + ;; + esac # This makes the logic if mingw's or the w64 feature set has to be used case ${target} in *-w64-*) tm_file="${tm_file} i386/mingw-w64.h" tmake_file="${tmake_file} i386/t-mingw-w64" + if test x$enable_targets = xall; then + tm_defines="${tm_defines} TARGET_BI_ARCH=1" + case X"${with_cpu}" in + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx) + ;; + X) + if test x$with_cpu_64 = x; then + with_cpu_64=generic + fi + ;; + *) + echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 + echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2 + exit 1 + ;; + esac + fi ;; *) tmake_file="${tmake_file} i386/t-mingw32" -- cgit v1.2.1 From 9166f36aa462460cfcbabe74860db4c1bb5f82ab Mon Sep 17 00:00:00 2001 From: pogma Date: Tue, 22 Sep 2009 02:28:19 +0000 Subject: PR middle-end/41260 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later. * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on LIB_SPEC for darwin10 and later since it always uses the unwinder in libSystem which is derived from the gcc 4.2.1 unwinder. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151960 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 00025638ceb..2e28ea26b7d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -400,9 +400,12 @@ case ${target} in *-*-darwin*) tm_file="${tm_file} darwin.h" case ${target} in - *-*-darwin[912]*) + *-*-darwin9*) tm_file="${tm_file} darwin9.h" ;; + *-*-darwin[12][0-9]*) + tm_file="${tm_file} darwin9.h darwin10.h" + ;; esac tm_file="${tm_file} ${cpu_type}/darwin.h" tm_p_file="${tm_p_file} darwin-protos.h" -- cgit v1.2.1 From 8e6600a15374f9446d5026e8ef6b68e0d753fb6c Mon Sep 17 00:00:00 2001 From: gerald Date: Sun, 27 Sep 2009 13:20:23 +0000 Subject: * config.gcc: Update OpenBSD targets. * config/openbsd-stdint.h: New file. * config/openbsd-libpthread.h: New file. * config/openbsd.h: Update and break out LIB_SPEC definition. * config/alpha/openbsd.h: Overhaul to reflect ELF migration. * config/i386/openbsdelf.h: Correct types. * config/m68k/openbsd.h: Likewise. * config/mips/openbsd.h: Likewise. * config/vax/openbsd.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152218 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 2e28ea26b7d..89996f58c71 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -632,11 +632,11 @@ alpha*-*-netbsd*) tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ;; alpha*-*-openbsd*) - tm_defines="${tm_defines} OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" - tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h" + tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" + tm_file="alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h" # default x-alpha is only appropriate for dec-osf. target_cpu_default="MASK_GAS" - tmake_file="alpha/t-alpha alpha/t-ieee" + tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ;; alpha*-dec-osf[45]*) if test x$stabs = xyes @@ -1120,7 +1120,7 @@ i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) ;; i[34567]86-*-openbsd*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" - tm_file="${tm_file} openbsd.h i386/openbsdelf.h" + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h" gas=yes gnu_ld=yes ;; @@ -1561,7 +1561,7 @@ m68k*-*-openbsd*) default_cf_cpu=5475 # needed to unconfuse gdb tm_defines="${tm_defines} OBSD_OLD_GAS" - tm_file="${tm_file} openbsd.h m68k/openbsd.h" + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h" tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" # we need collect2 until our bug is fixed... use_collect2=yes @@ -1699,7 +1699,7 @@ mips*-*-linux*) # Linux MIPS, either endian. mips*-*-openbsd*) tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS" target_cpu_default="MASK_ABICALLS" - tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h" + tm_file="mips/mips.h openbsd.h openbsd-stdint.h openbsd-libpthread.h mips/openbsd.h mips/sdb.h" case ${target} in mips*el-*-openbsd*) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";; @@ -2301,7 +2301,8 @@ sparc-*-netbsdelf*) extra_options="${extra_options} sparc/long-double-switch.opt" ;; sparc64-*-openbsd*) - tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h" + tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h" + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" extra_options="${extra_options} sparc/little-endian.opt" gas=yes gnu_ld=yes with_cpu=ultrasparc @@ -2511,7 +2512,7 @@ vax-*-netbsd*) use_collect2=yes ;; vax-*-openbsd*) - tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h" + tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h" use_collect2=yes ;; xstormy16-*-elf) -- cgit v1.2.1 From b9233e7a95d2544ed2a75786bea8a1efe7261599 Mon Sep 17 00:00:00 2001 From: hjagasia Date: Tue, 29 Sep 2009 17:15:32 +0000 Subject: 2009-09-29 Harsha Jagasia * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h. (x86_64-*-*): Ditto. * config/i386/smmintrin.h: Move instructions in mmintrin-common.h back to smmintrin.h. * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit. * config/i386/x86intrin.h: Remove SSE5. * config/i386/mmintrin-common.h: Delete file. * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins. * gcc.target/i386/i386.exp: Remove check_effective_target_sse5. * gcc.target/i386/isa-1.c * gcc.target/i386/isa-5.c * gcc.target/i386/isa-6.c: Remove SSE5. * gcc.target/i386/funcspec-4.c: Remove error conditions related to SSE5. * gcc.target/i386/avx-1.c * gcc.target/i386/avx-2.c * gcc.target/i386/sse-23.c: Remove comments to mmintrin-common.h. * gcc.target/i386/funcspec-9.c: Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152280 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 89996f58c71..5ad57701714 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -286,9 +286,8 @@ i[34567]86-*-*) cxx_target_objs="i386-c.o" extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h - nmmintrin.h bmmintrin.h mmintrin-common.h - wmmintrin.h immintrin.h x86intrin.h avxintrin.h - ia32intrin.h cross-stdarg.h" + nmmintrin.h bmmintrin.h wmmintrin.h immintrin.h + x86intrin.h avxintrin.h ia32intrin.h cross-stdarg.h" ;; x86_64-*-*) cpu_type=i386 @@ -296,9 +295,8 @@ x86_64-*-*) cxx_target_objs="i386-c.o" extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h - nmmintrin.h bmmintrin.h mmintrin-common.h - wmmintrin.h immintrin.h x86intrin.h avxintrin.h - ia32intrin.h cross-stdarg.h" + nmmintrin.h bmmintrin.h wmmintrin.h immintrin.h + x86intrin.h avxintrin.h ia32intrin.h cross-stdarg.h" need_64bit_hwint=yes ;; ia64-*-*) -- cgit v1.2.1 From 2f212aae96e5a5b2c09d87fa91592b5a2a573e7e Mon Sep 17 00:00:00 2001 From: hjagasia Date: Wed, 30 Sep 2009 00:00:45 +0000 Subject: 2009-09-29 Harsha Jagasia * config.gcc (i[34567]86-*-*): Include fma4intrin.h. (x86_64-*-*): Ditto. * config/i386/fma4intrin.h: New file, provide common x86 compiler intrinisics for FMA4. * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit. * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a. Add FMA4 check and fma4intrin.h. * config/i386/i386-c.c(ix86_target_macros_internal): Check ISA_FLAG for FMA4. * config/i386/i386.h(TARGET_FMA4): New macro for FMA4. * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC constant for FMA4 support. (UNSPEC_FMA4_FMADDSUB): Ditto. (UNSPEC_FMA4_FMSUBADD): Ditto. * config/i386/i386.opt (-mfma4): New switch for FMA4 support. * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration. (ix86_expand_fma4_multiple_memory): Ditto. * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New. (OPTION_MASK_ISA_FMA4_UNSET): New. (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4. (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4. (ix86_handle_option): Handle -mfma4. (isa_opts): Handle -mfma4. (enum pta_flags): Add PTA_FMA4. (override_options): Add FMA4 support. (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic. (IX86_BUILTIN_VFMADDSD): Ditto. (IX86_BUILTIN_VFMADDPS): Ditto. (IX86_BUILTIN_VFMADDPD): Ditto. (IX86_BUILTIN_VFMSUBSS): Ditto. (IX86_BUILTIN_VFMSUBSD): Ditto. (IX86_BUILTIN_VFMSUBPS): Ditto. (IX86_BUILTIN_VFMSUBPD): Ditto. (IX86_BUILTIN_VFMADDSUBPS): Ditto. (IX86_BUILTIN_VFMADDSUBPD): Ditto. (IX86_BUILTIN_VFMSUBADDPS): Ditto. (IX86_BUILTIN_VFMSUBADDPD): Ditto. (IX86_BUILTIN_VFNMADDSS): Ditto. (IX86_BUILTIN_VFNMADDSD): Ditto. (IX86_BUILTIN_VFNMADDPS): Ditto. (IX86_BUILTIN_VFNMADDPD): Ditto. (IX86_BUILTIN_VFNMSUBSS): Ditto. (IX86_BUILTIN_VFNMSUBSD): Ditto. (IX86_BUILTIN_VFNMSUBPS): Ditto. (IX86_BUILTIN_VFNMSUBPD): Ditto. (IX86_BUILTIN_VFMADDPS256): Ditto. (IX86_BUILTIN_VFMADDPD256): Ditto. (IX86_BUILTIN_VFMSUBPS256): Ditto. (IX86_BUILTIN_VFMSUBPD256): Ditto. (IX86_BUILTIN_VFMADDSUBPS256): Ditto. (IX86_BUILTIN_VFMADDSUBPD256): Ditto. (IX86_BUILTIN_VFMSUBADDPS256): Ditto. (IX86_BUILTIN_VFMSUBADDPD256): Ditto. (IX86_BUILTIN_VFNMADDPS256): Ditto. (IX86_BUILTIN_VFNMADDPD256): Ditto. (IX86_BUILTIN_VFNMSUBPS256): Ditto. (IX86_BUILTIN_VFNMSUBPD256): Ditto. (enum multi_arg_type): New enum for describing the various FMA4 intrinsic argument types. (bdesc_multi_arg): New table for FMA4 intrinsics. (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support. (ix86_expand_multi_arg_builtin): New function for creating FMA4 intrinsics. (ix86_expand_builtin): Add FMA4 intrinsic support. (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4 operand instructions. (ix86_expand_fma4_multiple_memory): New function to split the second memory reference from FMA4 instructions. * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4. (ssemodesuffixf2s): Ditto. (fma4_fmadd4): Add FMA4 floating point multiply/add instructions. (fma4_fmsub4): Ditto. (fma4_fnmadd4): Ditto. (fma4_fnmsub4): Ditto. (fma4_vmfmadd4): Ditto. (fma4_vmfmsub4): Ditto. (fma4_vmfnmadd4): Ditto. (fma4_vmfnmsub4): Ditto. (fma4_fmadd4256): Ditto. (fma4_fmsub4256): Ditto. (fma4_fnmadd4256): Ditto. (fma4_fnmsub4256): Ditto. (fma4_fmaddsubv8sf4): Ditto. (fma4_fmaddsubv4sf4): Ditto. (fma4_fmaddsubv4df4): Ditto. (fma4_fmaddsubv2df4): Ditto. (fma4_fmsubaddv8sf4): Ditto. (fma4_fmsubaddv4sf4): Ditto. (fma4_fmsubaddv4df4): Ditto. (fma4_fmsubaddv2df4): Ditto. (fma4i_fmadd4): Add FMA4 floating point multiply/add instructions for intrinsics. (fma4i_fmsub4): Ditto. (fma4i_fnmadd4): Ditto. (fma4i_fnmsub4): Ditto. (fma4i_vmfmadd4): Ditto. (fma4i_vmfmsub4): Ditto. (fma4i_vmfnmadd4): Ditto. (fma4i_vmfnmsub4): Ditto. (fma4i_fmadd4256): Ditto. (fma4i_fmsub4256): Ditto. (fma4i_fnmadd4256): Ditto. (fma4i_fnmsub4256): Ditto. (fma4i_fmaddsubv8sf4): Ditto. (fma4i_fmaddsubv4sf4): Ditto. (fma4i_fmaddsubv4df4): Ditto. (fma4i_fmaddsubv2df4): Ditto. (fma4i_fmsubaddv8sf4): Ditto. (fma4i_fmsubaddv4sf4): Ditto. (fma4i_fmsubaddv4df4): Ditto. (fma4i_fmsubaddv2df4): Ditto. * doc/invoke.texi (-mfma4): Add documentation. * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics. * gcc.target/i386/fma4-check.h * gcc.target/i386/fma4-fma.c * gcc.target/i386/fma4-maccXX.c * gcc.target/i386/fma4-msubXX.c * gcc.target/i386/fma4-nmaccXX.c * gcc.target/i386/fma4-nmsubXX.c * gcc.target/i386/fma4-vector.c * gcc.target/i386/fma4-256-maccXX.c * gcc.target/i386/fma4-256-msubXX.c * gcc.target/i386/fma4-256-nmaccXX.c * gcc.target/i386/fma4-256-nmsubXX.c * gcc.target/i386/fma4-256-vector.c * gcc.target/i386/funcspec-2.c: New file. * gcc.target/i386/funcspec-4.c: Test error conditions related to FMA4. * gcc.target/i386/funcspec-5.c * gcc.target/i386/funcspec-6.c * gcc.target/i386/funcspec-8.c: Add FMA4. * gcc.target/i386/funcspec-9.c: New file. * gcc.target/i386/i386.exp: Add check_effective_target_fma4. * gcc.target/i386/isa-10.c * gcc.target/i386/isa-11.c * gcc.target/i386/isa-12.c * gcc.target/i386/isa-13.c * gcc.target/i386/isa-2.c * gcc.target/i386/isa-3.c * gcc.target/i386/isa-4.c * gcc.target/i386/isa-7.c * gcc.target/i386/isa-8.c * gcc.target/i386/isa-9.c: New file. * gcc.target/i386/isa-14.c * gcc.target/i386/isa-1.c * gcc.target/i386/isa-5.c * gcc.target/i386/isa-6.c: Add FMA4. * gcc.target/i386/sse-12.c * gcc.target/i386/sse-13.c * gcc.target/i386/sse-14.c * gcc.target/i386/sse-22.c: New file. * g++.dg/other/i386-2.C * g++.dg/other/i386-3.C * g++.dg/other/i386-5.C * g++.dg/other/i386-6.C: Add -mfma4 in dg-options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152311 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 5ad57701714..6351aa5895a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -286,8 +286,9 @@ i[34567]86-*-*) cxx_target_objs="i386-c.o" extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h - nmmintrin.h bmmintrin.h wmmintrin.h immintrin.h - x86intrin.h avxintrin.h ia32intrin.h cross-stdarg.h" + nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h + immintrin.h x86intrin.h avxintrin.h + ia32intrin.h cross-stdarg.h" ;; x86_64-*-*) cpu_type=i386 @@ -295,8 +296,9 @@ x86_64-*-*) cxx_target_objs="i386-c.o" extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h - nmmintrin.h bmmintrin.h wmmintrin.h immintrin.h - x86intrin.h avxintrin.h ia32intrin.h cross-stdarg.h" + nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h + immintrin.h x86intrin.h avxintrin.h + ia32intrin.h cross-stdarg.h" need_64bit_hwint=yes ;; ia64-*-*) -- cgit v1.2.1 From 6f88e480cd712d469d86e32f2f2b178ec5702be9 Mon Sep 17 00:00:00 2001 From: nickc Date: Wed, 30 Sep 2009 07:27:28 +0000 Subject: * config.gcc (sh-symbianelf): Replace definition of extra_objs with separate definitions of c_target_objs and cxx_target_objs. * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o and symbian-base.o. * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use sh_symbian_import_export_class. * config/sh/sh-protos.h: Fix names of exported symbian functions. * config/sh/symbian.c: Delete, moving code into... * config/sh/symbian-base.c: ... here * config/sh/symbian-c.c: ... and here * config/sh/symbian-cxx.c: ... and here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152323 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 6351aa5895a..1b0194b0589 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2184,7 +2184,8 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ *-*-symbianelf*) tmake_file="sh/t-symbian" tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h" - extra_objs="symbian.o" + c_target_objs="symbian-base.o symbian-c.o" + cxx_target_objs="symbian-base.o symbian-cxx.o" extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o" ;; *-*-elf*) -- cgit v1.2.1 From 80c8ed0239da3e68de63741501fa15f0419c4cd4 Mon Sep 17 00:00:00 2001 From: bje Date: Tue, 6 Oct 2009 19:37:40 +0000 Subject: * config.gcc (powerpc*-*-*): Handle a2. * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md". * config/rs6000/a2.md: New file. * config/rs6000/rs6000.opt (mno-update): New. (mupdate): Return to using a mask, not a var. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2. (enum processor_type): Add PROCESSOR_PPCA2. * config/rs6000/rs6000.c (ppca2_cost): New costs. (rs6000_override_options): Add "a2" to processor_target_table. Update rs6000_always_hint logic. Correctly set rs6000_cost for a2. * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152499 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 1b0194b0589..9e3ada7fb64 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -327,7 +327,7 @@ powerpc*-*-*) extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h" need_64bit_hwint=yes case x$with_cpu in - xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell) + xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell|xa2) cpu_is_64bit=yes ;; esac @@ -3070,7 +3070,7 @@ case "${target}" in | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ | 505 | 601 | 602 | 603 | 603e | ec603e | 604 \ | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ - | e300c[23] | 854[08] | e500mc \ + | a2 | e300c[23] | 854[08] | e500mc \ | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) # OK ;; -- cgit v1.2.1 From e38fe7388bfa19ec16f678479ec6d174ea77e255 Mon Sep 17 00:00:00 2001 From: krebbel Date: Wed, 7 Oct 2009 08:26:47 +0000 Subject: 2009-10-07 Andreas Krebbel * config.gcc: Don't include the makefile fragments intended for libgcc. * config/s390/fixdfdi.h: File removed. * config/s390/libgcc-glibc.ver: File removed. * config/s390/s390.h: Remove the fixdfdi.h hack. * config/s390/t-crtstuff: File moved to libgcc dir. * config/s390/t-linux: Likewise. * config/s390/t-tpf: libgcc specific parts removed. * config/s390/t-linux64: Likewise. 2009-10-07 Andreas Krebbel * config.host: Include the s390 makefile fragments. * config/s390/32/_fixdfdi.c: New file. * config/s390/32/_fixsfdi.c: New file. * config/s390/32/_fixtfdi.c: New file. * config/s390/32/_fixunsdfdi.c: New file. * config/s390/32/_fixunssfdi.c: New file. * config/s390/32/_fixunstfdi.c: New file. * config/s390/32/t-floattodi: New file. * config/s390/libgcc-glibc.ver: New file. * config/s390/t-crtstuff: New file. * config/s390/t-linux: New file. * config/s390/t-tpf: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152515 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 9e3ada7fb64..8f794d4ef9e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2079,7 +2079,6 @@ rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) ;; s390-*-linux*) tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h" - tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux" ;; s390x-*-linux*) tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h" @@ -2087,7 +2086,7 @@ s390x-*-linux*) md_file=s390/s390.md extra_modes=s390/s390-modes.def out_file=s390/s390.c - tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux s390/t-linux64" + tmake_file="${tmake_file} s390/t-linux64" ;; s390x-ibm-tpf*) tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h" @@ -2096,7 +2095,6 @@ s390x-ibm-tpf*) extra_modes=s390/s390-modes.def out_file=s390/s390.c extra_parts="crtbeginS.o crtendS.o" - tmake_file="s390/t-crtstuff s390/t-tpf" thread_file='tpf' extra_options="${extra_options} s390/tpf.opt" ;; -- cgit v1.2.1 From ed08558af563235a021afd9fb749600bdfdffe80 Mon Sep 17 00:00:00 2001 From: bergner Date: Sat, 10 Oct 2009 18:43:31 +0000 Subject: * configure.ac: Add test for dci instruction. * configure: Regenerate. * config.in: Likewise. * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp. * doc/invoke.texi: Add cpu_type 476 and 476fp. (-mmulhw): Add 476 to description. (-mdlmzb): Likewise. * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476. * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost. (processor_target_table): Add 476 and 476fp entries. (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476. (rs6000_issue_rate): Add CPU_PPC476. * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define. (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp. (processor_type): Add PROCESSOR_PPC476. (EXTRA_SPECS): Add asm_cpu_476 string. * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute. (define_attr "cpu"): Add ppc476. Include 476.md. Update comments for 476. (isel_signed, isel_unsigned): Change to use "isel" type attribute. * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476. Update copyright year. * config/rs6000/476.md: New file. * config/rs6000/40x.md: Add description for "isel" attribute. Update copyright year. * config/rs6000/440.md: Likewise. * config/rs6000/603.md: Likewise. * config/rs6000/6xx.md: Likewise. * config/rs6000/7450.md: Likewise. * config/rs6000/7xx.md: Likewise. * config/rs6000/8540.md: Likewise. * config/rs6000/cell.md: Likewise. * config/rs6000/e300c2c3.md: Likewise. * config/rs6000/e500mc.md: Likewise. * config/rs6000/mpc.md: Likewise. * config/rs6000/power4.md: Likewise. * config/rs6000/power5.md: Likewise. * config/rs6000/power6.md: Likewise. * config/rs6000/power7.md: Likewise. * config/rs6000/rios1.md: Likewise. * config/rs6000/rios2.md: Likewise. * config/rs6000/rs64.md: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152626 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 8f794d4ef9e..e83382c1059 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3066,8 +3066,8 @@ case "${target}" in | power | power[234567] | power6x | powerpc | powerpc64 \ | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ - | 505 | 601 | 602 | 603 | 603e | ec603e | 604 \ - | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ + | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ + | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ | a2 | e300c[23] | 854[08] | e500mc \ | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) # OK -- cgit v1.2.1 From 0bf158c8c3271e11e789e8b37c1debe25cf926ff Mon Sep 17 00:00:00 2001 From: doko Date: Mon, 19 Oct 2009 14:26:28 +0000 Subject: 2009-10-19 Matthias Klose PR target/40134 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152975 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index e83382c1059..7666dd61861 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -722,7 +722,7 @@ arm*-*-linux*) # ARM GNU/Linux with ELF case ${target} in arm*-*-linux-*eabi) tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h" - tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" + tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" # The BPABI long long divmod functions return a 128-bit value in # registers r0-r3. Correctly modeling that requires the use of # TImode. -- cgit v1.2.1 From 24833e1adf2222593ff082539e9632908f6f63af Mon Sep 17 00:00:00 2001 From: nickc Date: Mon, 26 Oct 2009 16:30:15 +0000 Subject: * MAINTAINERS: Add myself as a maintainer for the RX port. gcc * config.gcc: Add support for RX target. * config/rx: New directory. * config/rx/constraints.md: New file. * config/rx/predicates.md: New file. * config/rx/rx.c: New file. * config/rx/rx.h: New file. * config/rx/rx.md: New file. * config/rx/rx.opt: New file. * config/rx/rx-protos.h: New file. * config/rx/t-rx: New file. * doc/extend.texi: Document RX function attributes. * doc/invoke.texi: Document RX specific command line options. * doc/contrib.texi: Document RX contribution. * doc/md.texi: Document RX constraints. * doc/install.texi: Document RX support. libgcc * config.host: Add support for RX target. * config/rx: New directory. * config/rx/rx-abi-functions.c: New file. Supplementary functions for libgcc to support the RX ABI. * config/rx/rx-abi.h: New file. Supplementary header file for libgcc RX ABI functions. * config/rx/t-rx: New file: Makefile fragment for building libgcc for the RX. gcc/testsuite * lib/target-supports.exp (check_profiling_available): Profiling is not, currently, available for the RX port. (check_effective_target_hard_float): Add support for RX target. * gcc.target/rx: New directory. * gcc.target/rx/builtins.c: New test file. * gcc.target/rx/interrupts.c: New test file. * gcc.target/rx/rx-abi-function-tests.c: New test file. * gcc.target/rx/zero-width-bitfield.c: New test file. * gcc.target/rx/i272091.c: New test file. * gcc.target/rx/packed-struct.c: New test file. * gcc.target/rx/rx.exp: New file: Drives RX tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153557 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 7666dd61861..7dac3004cd8 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -287,7 +287,7 @@ i[34567]86-*-*) extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h - immintrin.h x86intrin.h avxintrin.h + immintrin.h x86intrin.h avxintrin.h ia32intrin.h cross-stdarg.h" ;; x86_64-*-*) @@ -2077,6 +2077,10 @@ rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) use_gcc_stdint=wrap extra_headers=altivec.h ;; +rx-*-elf*) + tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} ../../libgcc/config/rx/rx-abi.h" + tmake_file="${tmake_file} rx/t-rx" + ;; s390-*-linux*) tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h" ;; -- cgit v1.2.1 From 6cf5579efc33c957977f6b7e6c1d13d940cb5413 Mon Sep 17 00:00:00 2001 From: uweigand Date: Mon, 26 Oct 2009 21:59:17 +0000 Subject: 2009-10-26 Ben Elliston Michael Meissner Ulrich Weigand * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers. * config/spu/spu_cache.h: New file. * config/spu/cachemgr.c: New file. * config/spu/cache.S: New file. * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define. (ADDR_SPACE_EA): Define. (TARGET_ADDR_SPACE_KEYWORDS): Define. * config/spu/spu.c (EAmode): New macro. (TARGET_ADDR_SPACE_POINTER_MODE): Define. (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise. (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise. (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise. (TARGET_ADDR_SPACE_SUBSET_P): Likewise. (TARGET_ADDR_SPACE_CONVERT): Likewise. (TARGET_ASM_SELECT_SECTION): Likewise. (TARGET_ASM_UNIQUE_SECTION): Likewise. (TARGET_ASM_UNALIGNED_SI_OP): Likewise. (TARGET_ASM_ALIGNED_DI_OP): Likewise. (ea_symbol_ref): New function. (spu_legitimate_constant_p): Handle __ea qualified addresses. (spu_addr_space_legitimate_address_p): New function. (spu_addr_space_legitimize_address): Likewise. (cache_fetch): New global. (cache_fetch_dirty): Likewise. (ea_alias_set): Likewise. (ea_load_store): New function. (ea_load_store_inline): Likewise. (expand_ea_mem): Likewise. (spu_expand_mov): Handle __ea qualified memory references. (spu_addr_space_pointer_mode): New function. (spu_addr_space_address_mode): Likewise. (spu_addr_space_subset_p): Likewise. (spu_addr_space_convert): Likewise. (spu_section_type_flags): Handle "._ea" section. (spu_select_section): New function. (spu_unique_section): Likewise. * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__ and __EA64__ predefined macros. * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and -matomic-updates switches. * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define. (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a, libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a, libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a. ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target. ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o, $(T)cache128k.o): Likewise. ($(T)libgcc_%.a): Likewise. * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION. * config/spu/spu.opt (-mea32/-mea64): Add switches. (-maddress-space-conversion): Likewise. (-mcache-size=): Likewise. (-matomic-updates): Likewise. * doc/invoke.texi (-mea32/-mea64): Document. (-maddress-space-conversion): Likewise. (-mcache-size=): Likewise. (-matomic-updates): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153575 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 7dac3004cd8..4f388babe6a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2449,7 +2449,7 @@ sparc64-*-netbsd*) spu-*-elf*) tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" tmake_file="spu/t-spu-elf" - extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h" + extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h" extra_modes=spu/spu-modes.def c_target_objs="${c_target_objs} spu-c.o" cxx_target_objs="${cxx_target_objs} spu-c.o" -- cgit v1.2.1 From fdeaa5f1dc95eaa6195a21db6ade1a4196744c8f Mon Sep 17 00:00:00 2001 From: macro Date: Wed, 4 Nov 2009 00:05:53 +0000 Subject: * config.gcc (vax-*-linux*): Keep the original contents of tmake_file while adding vax/t-linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153882 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 4f388babe6a..9c279dc8d45 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2503,7 +2503,7 @@ v850-*-*) ;; vax-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h vax/elf.h vax/linux.h" - tmake_file=vax/t-linux + tmake_file="${tmake_file} vax/t-linux" ;; vax-*-netbsdelf*) tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" -- cgit v1.2.1 From 185253437a38fdb2cb66eb5f3c82885dff7bf9b7 Mon Sep 17 00:00:00 2001 From: dwarak Date: Wed, 4 Nov 2009 16:22:47 +0000 Subject: 2009-11-04 Harsha Jagasia Dwarakanath Rajagopal * config.gcc (i[34567]86-*-*): Include xopintrin.h. (x86_64-*-*): Ditto. * config/i386/xopintrin.h: New file, provide common x86 compiler intrinisics for XOP. * config/i386/cpuid.h (bit_XOP): Define XOP bit. * config/i386/x86intrin.h: Add XOP check and xopintrin.h. * config/i386/i386-c.c(ix86_target_macros_internal): Check ISA_FLAG for XOP. * config/i386/i386.h(TARGET_XOP): New macro for XOP. * config/i386/i386.opt (-mxop): New switch for XOP support. * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP) (UNSPEC_XOP_TRUEFALSE) (UNSPEC_XOP_PERMUTE) (UNSPEC_FRCZ): Add new UNSPEC for XOP support. (PPERM_*): New constants for vpperm instruction. (xop_pcmov_): Add XOP conditional mov instructions. * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New. (OPTION_MASK_ISA_XOP_UNSET): New. (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP. (ix86_handle_option): Handle -mxop. (isa_opts): Handle -mxop. (enum pta_flags): Add PTA_XOP. (override_options): Add XOP support. (print_operand): Add code for XOP compare instructions. (ix86_expand_sse_movcc): Extend for XOP conditional move instruction. (ix86_expand_int_vcond): Extend for XOP compare instruction. (IX86_BUILTIN_VPCMOV): New for XOP intrinsic. (IX86_BUILTIN_VPCMOV_V2DI): Ditto. (IX86_BUILTIN_VPCMOV_V4SI): Ditto. (IX86_BUILTIN_VPCMOV_V8HI): Ditto. (IX86_BUILTIN_VPCMOV_V16QI): Ditto. (IX86_BUILTIN_VPCMOV_V4SF): Ditto. (IX86_BUILTIN_VPCMOV_V2DF): Ditto. (IX86_BUILTIN_VPCMOV256): Ditto. (IX86_BUILTIN_VPCMOV_V4DI256): Ditto. (IX86_BUILTIN_VPCMOV_V8SI256): Ditto. (IX86_BUILTIN_VPCMOV_V16HI256): Ditto. (IX86_BUILTIN_VPCMOV_V32QI256): Ditto. (IX86_BUILTIN_VPCMOV_V8SF256): Ditto. (IX86_BUILTIN_VPCMOV_V4DF256): Ditto. (IX86_BUILTIN_VPPERM): Ditto. (IX86_BUILTIN_VPMACSSWW): Ditto. (IX86_BUILTIN_VPMACSWW): Ditto. (IX86_BUILTIN_VPMACSSWD): Ditto. (IX86_BUILTIN_VPMACSWD): Ditto. (IX86_BUILTIN_VPMACSSDD): Ditto. (IX86_BUILTIN_VPMACSDD): Ditto. (IX86_BUILTIN_VPMACSSDQL): Ditto. (IX86_BUILTIN_VPMACSSDQH): Ditto. (IX86_BUILTIN_VPMACSDQL): Ditto. (IX86_BUILTIN_VPMACSDQH): Ditto. (IX86_BUILTIN_VPMADCSSWD): Ditto. (IX86_BUILTIN_VPMADCSWD): Ditto. (IX86_BUILTIN_VPHADDBW): Ditto. (IX86_BUILTIN_VPHADDBD): Ditto. (IX86_BUILTIN_VPHADDBQ): Ditto. (IX86_BUILTIN_VPHADDWD): Ditto. (IX86_BUILTIN_VPHADDWQ): Ditto. (IX86_BUILTIN_VPHADDDQ): Ditto. (IX86_BUILTIN_VPHADDUBW): Ditto. (IX86_BUILTIN_VPHADDUBD): Ditto. (IX86_BUILTIN_VPHADDUBQ): Ditto. (IX86_BUILTIN_VPHADDUWD): Ditto. (IX86_BUILTIN_VPHADDUWQ): Ditto. (IX86_BUILTIN_VPHADDUDQ): Ditto. (IX86_BUILTIN_VPHSUBBW): Ditto. (IX86_BUILTIN_VPHSUBWD): Ditto. (IX86_BUILTIN_VPHSUBDQ): Ditto. (IX86_BUILTIN_VPROTB): Ditto. (IX86_BUILTIN_VPROTW): Ditto. (IX86_BUILTIN_VPROTD): Ditto. (IX86_BUILTIN_VPROTQ): Ditto. (IX86_BUILTIN_VPROTB_IMM): Ditto. (IX86_BUILTIN_VPROTW_IMM): Ditto. (IX86_BUILTIN_VPROTD_IMM): Ditto. (IX86_BUILTIN_VPROTQ_IMM): Ditto. (IX86_BUILTIN_VPSHLB): Ditto. (IX86_BUILTIN_VPSHLW): Ditto. (IX86_BUILTIN_VPSHLD): Ditto. (IX86_BUILTIN_VPSHLQ): Ditto. (IX86_BUILTIN_VPSHAB): Ditto. (IX86_BUILTIN_VPSHAW): Ditto. (IX86_BUILTIN_VPSHAD): Ditto. (IX86_BUILTIN_VPSHAQ): Ditto. (IX86_BUILTIN_VFRCZSS): Ditto. (IX86_BUILTIN_VFRCZSD): Ditto. (IX86_BUILTIN_VFRCZPS): Ditto. (IX86_BUILTIN_VFRCZPD): Ditto. (IX86_BUILTIN_VFRCZPS256): Ditto. (IX86_BUILTIN_VFRCZPD256): Ditto. (IX86_BUILTIN_VPCOMEQUB): Ditto. (IX86_BUILTIN_VPCOMNEUB): Ditto. (IX86_BUILTIN_VPCOMLTUB): Ditto. (IX86_BUILTIN_VPCOMLEUB): Ditto. (IX86_BUILTIN_VPCOMGTUB): Ditto. (IX86_BUILTIN_VPCOMGEUB): Ditto. (IX86_BUILTIN_VPCOMFALSEUB): Ditto. (IX86_BUILTIN_VPCOMTRUEUB): Ditto. (IX86_BUILTIN_VPCOMEQUW): Ditto. (IX86_BUILTIN_VPCOMNEUW): Ditto. (IX86_BUILTIN_VPCOMLTUW): Ditto. (IX86_BUILTIN_VPCOMLEUW): Ditto. (IX86_BUILTIN_VPCOMGTUW): Ditto. (IX86_BUILTIN_VPCOMGEUW): Ditto. (IX86_BUILTIN_VPCOMFALSEUW): Ditto. (IX86_BUILTIN_VPCOMTRUEUW): Ditto. (IX86_BUILTIN_VPCOMEQUD): Ditto. (IX86_BUILTIN_VPCOMNEUD): Ditto. (IX86_BUILTIN_VPCOMLTUD): Ditto. (IX86_BUILTIN_VPCOMLEUD): Ditto. (IX86_BUILTIN_VPCOMGTUD): Ditto. (IX86_BUILTIN_VPCOMGEUD): Ditto. (IX86_BUILTIN_VPCOMFALSEUD): Ditto. (IX86_BUILTIN_VPCOMTRUEUD): Ditto. (IX86_BUILTIN_VPCOMEQUQ): Ditto. (IX86_BUILTIN_VPCOMNEUQ): Ditto. (IX86_BUILTIN_VPCOMLTUQ): Ditto. (IX86_BUILTIN_VPCOMLEUQ): Ditto. (IX86_BUILTIN_VPCOMGTUQ): Ditto. (IX86_BUILTIN_VPCOMGEUQ): Ditto. (IX86_BUILTIN_VPCOMFALSEUQ): Ditto. (IX86_BUILTIN_VPCOMTRUEUQ): Ditto. (IX86_BUILTIN_VPCOMEQB): Ditto. (IX86_BUILTIN_VPCOMNEB): Ditto. (IX86_BUILTIN_VPCOMLTB): Ditto. (IX86_BUILTIN_VPCOMLEB): Ditto. (IX86_BUILTIN_VPCOMGTB): Ditto. (IX86_BUILTIN_VPCOMGEB): Ditto. (IX86_BUILTIN_VPCOMFALSEB): Ditto. (IX86_BUILTIN_VPCOMTRUEB): Ditto. (IX86_BUILTIN_VPCOMEQW): Ditto. (IX86_BUILTIN_VPCOMNEW): Ditto. (IX86_BUILTIN_VPCOMLTW): Ditto. (IX86_BUILTIN_VPCOMLEW): Ditto. (IX86_BUILTIN_VPCOMGTW): Ditto. (IX86_BUILTIN_VPCOMGEW): Ditto. (IX86_BUILTIN_VPCOMFALSEW): Ditto. (IX86_BUILTIN_VPCOMTRUEW): Ditto. (IX86_BUILTIN_VPCOMEQD): Ditto. (IX86_BUILTIN_VPCOMNED): Ditto. (IX86_BUILTIN_VPCOMLTD): Ditto. (IX86_BUILTIN_VPCOMLED): Ditto. (IX86_BUILTIN_VPCOMGTD): Ditto. (IX86_BUILTIN_VPCOMGED): Ditto. (IX86_BUILTIN_VPCOMFALSED): Ditto. (IX86_BUILTIN_VPCOMTRUED): Ditto. (IX86_BUILTIN_VPCOMEQQ): Ditto. (IX86_BUILTIN_VPCOMNEQ): Ditto. (IX86_BUILTIN_VPCOMLTQ): Ditto. (IX86_BUILTIN_VPCOMLEQ): Ditto. (IX86_BUILTIN_VPCOMGTQ): Ditto. (IX86_BUILTIN_VPCOMGEQ): Ditto. (IX86_BUILTIN_VPCOMFALSEQ): Ditto. (IX86_BUILTIN_VPCOMTRUEQ): Ditto. (enum multi_arg_type): New enum for describing the various XOP intrinsic argument types. (bdesc_multi_arg): New table for XOP intrinsics. (ix86_init_mmx_sse_builtins): Add XOP intrinsic support. (ix86_expand_multi_arg_builtin): New function for creating XOP intrinsics. * config/i386/sse.md (sserotatemax): New mode attribute for XOP. (xop_pmacsww): Ditto. (xop_pmacssww): Ditto. (xop_pmacsdd): Ditto. (xop_pmacssdd): Ditto. (xop_pmacssdql): Ditto. (xop_pmacssdqh): Ditto. (xop_pmacsdql): Ditto. (xop_pmacsdql_mem): Ditto. (xop_mulv2div2di3_low): Ditto. (xop_pmacsdqh): Ditto. (xop_pmacsdqh_mem): Ditto. (xop_mulv2div2di3_high): Ditto. (xop_pmacsswd): Ditto. (xop_pmacswd): Ditto. (xop_pmadcsswd): Ditto. (xop_pmadcswd): Ditto. (xop_pcmov_): Ditto. (xop_pcmov_)256: Ditto. (xop_phaddbw): Ditto. (xop_phaddbd): Ditto. (xop_phaddbq): Ditto. (xop_phaddwd): Ditto. (xop_phaddwq): Ditto. (xop_phadddq): Ditto. (xop_phaddubw): Ditto. (xop_phaddubd): Ditto. (xop_phaddubq): Ditto. (xop_phadduwd): Ditto. (xop_phadduwq): Ditto. (xop_phaddudq): Ditto. (xop_phsubbw): Ditto. (xop_phsubwd): Ditto. (xop_phsubdq): Ditto. (xop_pperm): Ditto. (rotl3): Ditto. (rotr3): Ditto. (xop_rotl3): Ditto. (xop_rotr3): Ditto. (vrotr3): Ditto. (vrotl3): Ditto. (xop_vrotl3): Ditto. (vlshr3): Ditto. (vashr3): Ditto. (vashl3 (xop_ashl3): Ditto. (xop_lshl3): Ditto. (ashlv16qi3): Ditto. (lshlv16qi3): Ditto. (ashrv16qi3): Ditto. (ashrv2di3): Ditto. (xop_frcz2): Ditto. (xop_vmfrcz2): Ditto. (xop_frcz2256): Ditto. (xop_maskcmp3): Ditto. (xop_maskcmp_uns3): Ditto. (xop_maskcmp_uns23): Ditto. (xop_pcom_tf3): Ditto. * doc/invoke.texi (-mxop): Add documentation. * doc/extend.texi (x86 intrinsics): Add XOP intrinsics. * gcc.target/i386/xop-check.h: New file. * gcc.target/i386/xop-hadduX.c: Ditto. * gcc.target/i386/xop-haddX.c: Ditto. * gcc.target/i386/xop-hsubX.c: Ditto. * gcc.target/i386/xop-imul32widen-vector.c: Ditto. * gcc.target/i386/xop-imul32widen-vector.c: Ditto. * gcc.target/i386/xop-pcmov2.c: Ditto. * gcc.target/i386/xop-pcmov.c: Ditto. * gcc.target/i386/xop-rotate1-vector.c: Ditto. * gcc.target/i386/xop-rotate2-vector.c: Ditto. * gcc.target/i386/xop-rotate3-vector.c: Ditto. * gcc.target/i386/xop-shift1-vector.c: Ditto. * gcc.target/i386/xop-shift2-vector.c: Ditto. * gcc.target/i386/xop-shift3-vector.c: Ditto. * gcc.target/i386/i386.exp: Add check_effective_target_xop. * gcc.target/i386/sse-12.c: Update with new compile options to activate and check xopintrin.h intrinsic file. * gcc.target/i386/sse-13.c: Ditto. * gcc.target/i386/sse-14.c: Ditto. * gcc.target/i386/sse-22.c: Ditto. * gcc.target/i386/sse-23.c: Ditto. * g++.dg/other/i386-2.C: Ditto. * g++.dg/other/i386-3.C: Ditto. * g++.dg/other/i386-5.C: Ditto. * g++.dg/other/i386-6.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153901 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 9c279dc8d45..e79d2251364 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -287,7 +287,7 @@ i[34567]86-*-*) extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h - immintrin.h x86intrin.h avxintrin.h + immintrin.h x86intrin.h avxintrin.h xopintrin.h ia32intrin.h cross-stdarg.h" ;; x86_64-*-*) @@ -297,7 +297,7 @@ x86_64-*-*) extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h - immintrin.h x86intrin.h avxintrin.h + immintrin.h x86intrin.h avxintrin.h xopintrin.h ia32intrin.h cross-stdarg.h" need_64bit_hwint=yes ;; -- cgit v1.2.1 From 048fbb59c7cfac095d07700c42cd932a84b306f2 Mon Sep 17 00:00:00 2001 From: dwarak Date: Wed, 4 Nov 2009 21:15:42 +0000 Subject: 2009-11-04 Harsha Jagasia Dwarakanath Rajagopal * doc/invoke.texi (-mlwp): Add documentation. * doc/extend.texi (x86 intrinsics): Add LWP intrinsics. * config.gcc (i[34567]86-*-*): Include lwpintrin.h. (x86_64-*-*): Ditto. * config/i386/lwpintrin.h: New file, provide x86 compiler intrinisics for LWP. * config/i386/cpuid.h (bit_LWP): Define LWP bit. * config/i386/x86intrin.h: Add LWP check and lwpintrin.h. * config/i386/i386-c.c (ix86_target_macros_internal): Check ISA_FLAG for LWP. * config/i386/i386.h (TARGET_LWP): New macro for LWP. * config/i386/i386.opt (-mlwp): New switch for LWP support. * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New. (OPTION_MASK_ISA_LWP_UNSET): New. (ix86_handle_option): Handle -mlwp. (isa_opts): Handle -mlwp. (enum pta_flags): Add PTA_LWP. (override_options): Add LWP support. (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic. (IX86_BUILTIN_LLWPCB32): Ditto. (IX86_BUILTIN_LLWPCB64): Ditto. (IX86_BUILTIN_SLWPCB16): Ditto. (IX86_BUILTIN_SLWPCB32): Ditto. (IX86_BUILTIN_SLWPCB64): Ditto. (IX86_BUILTIN_LWPVAL16): Ditto. (IX86_BUILTIN_LWPVAL32): Ditto. (IX86_BUILTIN_LWPVAL64): Ditto. (IX86_BUILTIN_LWPINS16): Ditto. (IX86_BUILTIN_LWPINS32): Ditto. (IX86_BUILTIN_LWPINS64): Ditto. (enum ix86_special_builtin_type): Add LWP intrinsic support. (builtin_description): Ditto. (ix86_init_mmx_sse_builtins): Ditto. (ix86_expand_special_args_builtin): Ditto. * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for LWP support. (UNSPEC_SLWP_INTRINSIC): Ditto. (UNSPECV_LWPVAL_INTRINSIC): Ditto. (UNSPECV_LWPINS_INTRINSIC): Ditto. (lwp_llwpcbhi1): New lwp pattern. (lwp_llwpcbsi1): Ditto. (lwp_llwpcbdi1): Ditto. (lwp_slwpcbhi1): Ditto. (lwp_slwpcbsi1): Ditto. (lwp_slwpcbdi1): Ditto. (lwp_lwpvalhi3): Ditto. (lwp_lwpvalsi3): Ditto. (lwp_lwpvaldi3): Ditto. (lwp_lwpinshi3): Ditto. (lwp_lwpinssi3): Ditto. (lwp_lwpinsdi3): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153917 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index e79d2251364..1d3c3fc84f8 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -288,7 +288,7 @@ i[34567]86-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h" + ia32intrin.h cross-stdarg.h lwpintrin.h" ;; x86_64-*-*) cpu_type=i386 @@ -298,7 +298,7 @@ x86_64-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h" + ia32intrin.h cross-stdarg.h lwpintrin.h" need_64bit_hwint=yes ;; ia64-*-*) -- cgit v1.2.1 From a50d72676fd0ab3443fb73e4f1535713d2d781df Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 9 Nov 2009 13:50:38 +0000 Subject: 2009-11-09 Paul Brook Daniel Jacobowitz Sandra Loosemore gcc/ * doc/extend.texi (Half-Precision): Update wording to reflect that there are now multiple -mfpu options that enable fp16 hardware support. * doc/invoke.texi: Update list of ARM -mfpu= options. * config.gcc: Update ARM --with-fpu option list. * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16, vfpv3xd and vfpv3xd-fp16. (use_vfp_abi): New function. (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs when undesirable. (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate, aapcs_vfp_allocate_return_reg): Use use_vfp_abi. (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs, arm_9e_rtx_costs): Only expect double-precision operations if the FPU provides them. (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no NEON. (arm_print_operand): Handle 'p' modifier. (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if TARGET_FP16. * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define. (TARGET_FP16): Define. * config/arm/vfp.md: Disable double-precision patterns if the FPU does not provide them. (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move double-precision values on a single-precision FPU. (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for double-precision constants. (movhf_vfp_neon): New pattern (was movhf_vfp). (movhf_vfp): Remove NEON instructions. * config/arm/constraints.md: Add new "Dy" constraint for double-precision constants. Update description of "Dv". * config/arm/arm.md: Disable double-precision patterns if the FPU does not provide them git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154034 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 1d3c3fc84f8..999ba218016 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2817,7 +2817,7 @@ case "${target}" in case "$with_fpu" in "" \ - | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | neon ) + | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd | vfpv3xd-fp16 | neon | neon-fp16 ) # OK ;; *) -- cgit v1.2.1 From f6fe91e8f06054da7e5699deea8ed6b0b4e89534 Mon Sep 17 00:00:00 2001 From: jbeniston Date: Wed, 11 Nov 2009 16:43:06 +0000 Subject: gcc/ 2009-11-11 Jon Beniston * config.gcc: Add lm32 elf and uclinux targets. * config/lm32: New directory. * config/lm32/lm32.c: New file. * config/lm32/lm32.h: New file. * config/lm32/lm32.md: New file. * config/lm32/lm32.opt: New file. * config/lm32/lm32-protos.h: New file. * config/lm32/constraints.md: New file. * config/lm32/predicates.md: New file. * config/lm32/sfp-machine.h: New file. * config/lm32/t-fprules-softfp: New file. * config/lm32/uclinux-elf.h: New file. * doc/invoke.texi: Document lm32 options. * doc/contrib.texi: Document lm32 porter. * doc/install.texi: Document lm32 targets. gcc/testsuite/ 2009-11-11 Jon Beniston * lib/target-supports.exp (check_profiling_available): lm32 target doesn't support profiling. * gcc.dg/20020312-2.c: Add lm32 support. * g++.dg/other/packed1.C: Expect to fail on lm32. * g++.old-deja/g++.jason/thunk3.C: Likewise. libgcc/ 2009-11-11 Jon Beniston * config.host: Add lm32 targets. * config/lm32: New directory. * config/lm32/libgcc_lm32.h: New file. * config/lm32/_mulsi3.c: New file. * config/lm32/_udivmodsi4.c: New file. * config/lm32/_divsi3.c: New file. * config/lm32/_modsi3.c: New file. * config/lm32/_udivsi3.c: New file. * config/lm32/_umodsi3.c: New file. * config/lm32/_lshrsi3.S: New file. * config/lm32/_ashrsi3.S: New file. * config/lm32/_ashlsi3.S: New file. * config/lm32/crti.S: New file. * config/lm32/crtn.S: New file. * config/lm32/t-lm32: New file. * config/lm32/t-elf: New file. * config/lm32/t-uclinux: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154096 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 999ba218016..dc22e38de72 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1469,6 +1469,14 @@ iq2000*-*-elf*) out_file=iq2000/iq2000.c md_file=iq2000/iq2000.md ;; +lm32-*-elf*) + tm_file="dbxelf.h elfos.h ${tm_file}" + tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp" + ;; +lm32-*-uclinux*) + tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h" + tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp" + ;; m32r-*-elf*) tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}" extra_parts="crtinit.o crtfini.o" -- cgit v1.2.1 From 639cb7b789a54bf78d6ae5e2644450f5eb1837a6 Mon Sep 17 00:00:00 2001 From: pbrook Date: Thu, 19 Nov 2009 12:09:22 +0000 Subject: 2009-11-19 Paul Brook gcc/ * config.gcc: Add new ARM --with-fpu options. * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16. * config/arm/arm.c (all_fpus): Add fpv4-sp-d16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154328 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index dc22e38de72..297b8943fd6 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2825,7 +2825,7 @@ case "${target}" in case "$with_fpu" in "" \ - | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd | vfpv3xd-fp16 | neon | neon-fp16 ) + | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 | fpv4-sp-d16 | neon-vfpv4) # OK ;; *) -- cgit v1.2.1 From 3aba59117bfa9c0a7397fdf6f17a1b85bf980685 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 20 Nov 2009 16:55:19 +0000 Subject: gcc: * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint. * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define. (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define. (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define. (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, (INT_LEAST64_TYPE): Define. (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE, UINT_LEAST64_TYPE): Define. (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE): Define. (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, UINT_FAST64_TYPE): Define. (INTPTR_TYPE, UINTPTR_TYPE): Define. gcc/testsuite: * gcc.dg/c99-stdint-6.c: Set dg-options for alpha*-dec-osf5*. Wrap *int_least*_t tests in !NO_LEAST_TYPES. Wrap *intmax_t tests in !NO_MAX_TYPES. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154373 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 297b8943fd6..90aa7a7cbfb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -651,6 +651,7 @@ alpha*-dec-osf[45]*) tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" tm_file="${tm_file} alpha/osf.h" extra_headers=va_list.h + use_gcc_stdint=provide case ${target} in *-*-osf4*) # Define TARGET_SUPPORT_ARCH except on 4.0a. -- cgit v1.2.1 From 2ebd06c54fbd6165e6df7397e90e9e3112feb15c Mon Sep 17 00:00:00 2001 From: doko Date: Fri, 4 Dec 2009 07:47:51 +0000 Subject: 2009-12-04 Matthias Klose John David Anglin PR target/40134 * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc. * config/pa/pa-linux.h (LIB_SPEC): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154973 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 90aa7a7cbfb..f7b23aabed4 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -933,7 +933,7 @@ hppa*-*-linux*) target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h pa/pa-linux.h \ pa/pa32-regs.h pa/pa32-linux.h" - tmake_file="${tmake_file} pa/t-linux" + tmake_file="${tmake_file} pa/t-linux t-slibgcc-libgcc" # Set the libgcc version number if test x$sjlj = x1; then tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" -- cgit v1.2.1 From 20d6e0e0f76d7458478ce75e2502add12de236d5 Mon Sep 17 00:00:00 2001 From: dje Date: Mon, 7 Dec 2009 15:34:21 +0000 Subject: 2009-12-07 Edmar Wienskoski * config.gcc (cpu_is_64bit): Add new core e500mc64. (powerpc*-*-*): Add new core e500mc64. * config/rs6000/e500mc64.md: New file. * config/rs6000/rs6000.c (processor_costs): Add new costs for e500mc64. (rs6000_override_options): Add e500mc64 case to processor_target_table. Altivec and Spe options not allowed with e500mc64. Disable string instructions for e500mc64. Enable branch targets alignment for both e500mc and e500mc64. Initialize rs6000_cost for e500mc64. (rs6000_emit_sISEL): New function. (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets. (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern generation. (rs6000_issue_rate): Set issue rate for e500mc64. (rs6000_rtx_costs): Set more accurate cost for mfcr instruction on architectures with isel. * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare. * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPCE500MC64. (ASM_CPU_SPEC): Add e500mc64. * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64. Include e500mc64.md. (abssi2_isel): Expand pattern to handle DImode. (nabs2_isel): New pattern. (absdi2): Change pattern to handle 64 bit isel targets. (absdi2_internal): Exclude ISEL targets. (nabsdi2): Exclude ISEL targets. * doc/invoke.texi: Add e500mc64 to list of cpus. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155044 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index f7b23aabed4..ca9441ff3ac 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -327,7 +327,7 @@ powerpc*-*-*) extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h" need_64bit_hwint=yes case x$with_cpu in - xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell|xa2) + xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell|xa2|xe500mc64) cpu_is_64bit=yes ;; esac @@ -3081,7 +3081,7 @@ case "${target}" in | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ - | a2 | e300c[23] | 854[08] | e500mc \ + | a2 | e300c[23] | 854[08] | e500mc | e500mc64 \ | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) # OK ;; -- cgit v1.2.1 From c3b3ca57149d1a46e3787c28234dd6dd740c455a Mon Sep 17 00:00:00 2001 From: spop Date: Mon, 7 Dec 2009 22:22:54 +0000 Subject: Fix _mm_popcnt* intrinsics. * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h. * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved... * config/i386/i386-c.c (__POPCNT__): Defined. * config/i386/popcntintrin.h: ...here. New file. * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved... Include popcntintrin.h. * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155058 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index ca9441ff3ac..9c0075b23cf 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -288,7 +288,7 @@ i[34567]86-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h lwpintrin.h" + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h" ;; x86_64-*-*) cpu_type=i386 @@ -298,7 +298,7 @@ x86_64-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h lwpintrin.h" + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h" need_64bit_hwint=yes ;; ia64-*-*) -- cgit v1.2.1 From 87c62cba9d6fc45e12984c103267a39fb33c1be0 Mon Sep 17 00:00:00 2001 From: spop Date: Mon, 7 Dec 2009 22:23:01 +0000 Subject: Fix ABM. 2009-12-04 Jakub Jelinek * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from this array ... (bdesc_args): ... here. * config.gcc (i[34567]86-*-*): Include abmintrin.h. (x86_64-*-*): Likewise. * gcc.target/i386/sse-12.c: Add -mabm to dg-options, mention abmintrin.h is also tested. * gcc.target/i386/sse-13.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155059 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 9c0075b23cf..d319157a449 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -288,7 +288,8 @@ i[34567]86-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h" + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h + abmintrin.h" ;; x86_64-*-*) cpu_type=i386 @@ -298,7 +299,8 @@ x86_64-*-*) pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h immintrin.h x86intrin.h avxintrin.h xopintrin.h - ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h" + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h + abmintrin.h" need_64bit_hwint=yes ;; ia64-*-*) -- cgit v1.2.1 From 33169f9757cdd37069e626cb200f4b0e1baaece5 Mon Sep 17 00:00:00 2001 From: hutchinsonandy Date: Thu, 24 Dec 2009 20:32:38 +0000 Subject: 2009-12-24 Andy Hutchinson PR target/42457 * config/avr/avr.c (avr_extra_arch_macro): Remove static. (avr_cpu_cpp_builtins): Remove. * config/avr/avr.h (avr_extra_arch_macro): Add prototype. * config/avr/avr-c.c: New File. (avr_cpu_cpp_builtins) : Add. * config/avr/t-avr: Add make information for avr-c. * config.gcc (avr-*-*): Include avr-c.o as c and cpp object. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155460 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index d319157a449..59fa4d78d9c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -266,6 +266,11 @@ arm*-*-*) c_target_objs="arm-c.o" cxx_target_objs="arm-c.o" ;; +avr-*-*) + cpu_type=avr + c_target_objs="avr-c.o" + cxx_target_objs="avr-c.o" + ;; bfin*-*) cpu_type=bfin ;; -- cgit v1.2.1 From 2144cc8559feb534c71a744aab5470738f5139dd Mon Sep 17 00:00:00 2001 From: uros Date: Wed, 20 Jan 2010 11:27:49 +0000 Subject: PR bootstrap/42786 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx cpu types. Add support for *-sse3 cpu types. (x86_64-*-*): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156071 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 59fa4d78d9c..1c7cb37f918 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1144,7 +1144,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i tmake_file="${tmake_file} i386/t-linux64" need_64bit_hwint=yes case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1153,7 +1153,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2 + echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -1260,7 +1260,7 @@ i[34567]86-*-solaris2*) need_64bit_hwint=yes use_gcc_stdint=wrap case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1269,7 +1269,7 @@ i[34567]86-*-solaris2*) ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2 + echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -1339,7 +1339,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) if test x$enable_targets = xall; then tm_defines="${tm_defines} TARGET_BI_ARCH=1" case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1348,7 +1348,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2 + echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -2629,8 +2629,11 @@ if test x$with_cpu = x ; then case ${target_noncanonical} in amdfam10-*|barcelona-*) with_cpu=amdfam10 + ;; + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) + with_cpu=k8-sse3 ;; - k8-*|opteron-*|athlon_64-*) + k8-*|opteron-*|athlon64-*|athlon_fx-*) with_cpu=k8 ;; athlon_xp-*|athlon_mp-*|athlon_4-*) @@ -2676,7 +2679,10 @@ if test x$with_cpu = x ; then amdfam10-*|barcelona-*) with_cpu=amdfam10 ;; - k8-*|opteron-*|athlon_64-*) + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) + with_cpu=k8-sse3 + ;; + k8-*|opteron-*|athlon64-*|athlon_fx-*) with_cpu=k8 ;; nocona-*) @@ -2970,7 +2976,7 @@ case "${target}" in esac # OK ;; - "" | amdfam10 | barcelona | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | generic) + "" | amdfam10 | barcelona | k8-sse3 | opteron-sse3 | athlon64-sse3 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | generic) # OK ;; *) -- cgit v1.2.1 From e2fb821c7079df82ce367072ec950830e3187cf7 Mon Sep 17 00:00:00 2001 From: ro Date: Tue, 26 Jan 2010 19:24:32 +0000 Subject: gcc: * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint. * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define. (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define. (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, INT_LEAST64_TYPE): Define. (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE, UINT_LEAST64_TYPE): Define. (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE) INT_FAST64_TYPE): Define. (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, UINT_FAST64_TYPE): Define. (INTMAX_TYPE, UINTMAX_TYPE): Define. (INTPTR_TYPE, UINTPTR_TYPE): Define. (SIG_ATOMIC_TYPE): Define. fixincludes: * inclhack.def (aix_stdint_1): Add stdint-aix.h to files. (aix_stdint_2): Likewise. (aix_stdint_3): Likewise. (aix_stdint_4): Likewise. (aix_stdint_5): Likewise. (darwin_stdint_1): Add stdint-darwin.h to files. (darwin_stdint_2): Likewise. (darwin_stdint_3): Likewise. (darwin_stdint_4): Likewise. (darwin_stdint_5): Likewise. (darwin_stdint_6): Likewise. (darwin_stdint_7): Likewise. (hpux_c99_intptr): Add stdint-hpux11.h to files. (hpux_c99_inttypes): Likewise. (hpux_c99_inttypes2): Likewise. (hpux_stdint_least_fast): Likewise. (irix_stdint_c99): Renamed to irix_stdint_c99_mode. (irix_stdint_c99_types): New fix. (irix_stdint_c99_macros): New fix. (newlib_stdint_1): Add stdint-newlib.h to files. (newlib_stdint_2): Likewise. fixincl.x: Regenerate. tests/base/stdint-aix.h: New file. tests/base/stdint.h [AIX_STDINT_1_CHECK, AIX_STDINT_2_CHECK, AIX_STDINT_3_CHECK, AIX_STDINT_4_CHECK, AIX_STDINT_5_CHECK]: Moved ... tests/base/stdint-aix.h: ... here. [AIX_STDINT_3_CHECK]: Updated to match aix_stdint_3 fix. [AIX_STDINT_4_CHECK]: Updated to match aix_stdint_4 fix. [AIX_STDINT_5_CHECK]: Updated to match aix_stdint_5 fix. tests/base/stdint-darwin.h: New file. tests/base/stdint.h [DARWIN_STDINT_1_CHECK, DARWIN_STDINT_2_CHECK, DARWIN_STDINT_3_CHECK, DARWIN_STDINT_4_CHECK, DARWIN_STDINT_5_CHECK, DARWIN_STDINT_6_CHECK]: Moved ... tests/base/stdint-darwin.h: ... here. [DARWIN_STDINT_1_CHECK]: Updated to match darwin_stdint_1 fix. [DARWIN_STDINT_4_CHECK]: Updated to match darwin_stdint_4 fix. [DARWIN_STDINT_6_CHECK]: Updated to match darwin_stdint_6 fix. tests/base/stdint-hpux11.h: New file. tests/base/stdint.h [HPUX_C99_INTPTR_CHECK, HPUX_C99_INTTYPES2_CHECK, HPUX_STDINT_LEAST_FAST_CHECK]: Moved ... tests/base/stdint-hpux11.h: ... here. [HPUX_C99_INTPTR_CHECK]: Updated to match hpux_c99_intptr fix. [HPUX_C99_INTTYPES2_CHECK]: Updated to match hpux_c99_inttypes2 fix. tests/base/stdint.h [IRIX_STDINT_C99_CHECK]: Renamed guard to IRIX_STDINT_C99_MODE_CHECK. tests/base/stdint-irix65.h: New file. tests/base/stdint-newlib.h: New file. tests/base/stdint.h [NEWLIB_STDINT_1_CHECK, NEWLIB_STDINT_2_CHECK]: Moved ... tests/base/stdint-newlib.h: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156259 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 1c7cb37f918..3b61af42deb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1,6 +1,6 @@ # GCC target-specific configuration file. # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -# 2008, 2009 Free Software Foundation, Inc. +# 2008, 2009, 2010 Free Software Foundation, Inc. #This file is part of GCC. @@ -1655,12 +1655,23 @@ mips-sgi-irix[56]*) case ${target} in *-*-irix5*) tm_file="${tm_file} mips/iris5.h" + use_gcc_stdint=provide ;; *-*-irix6*) tm_file="${tm_file} mips/iris6.h" tmake_file="${tmake_file} mips/t-iris6" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" + case ${target} in + *-*-irix6.[0-4]*) + use_gcc_stdint=provide + ;; + *-*-irix6.5*) + # Only IRIX Development Foundation 1.3 for IRIX 6.5 + # provides stdint.h. + use_gcc_stdint=wrap + ;; + esac ;; esac if test "x$stabs" = xyes -- cgit v1.2.1 From 0767c2a88a20b393f653680acb0e6e7ac1da6f9f Mon Sep 17 00:00:00 2001 From: ktietz Date: Sun, 31 Jan 2010 17:05:08 +0000 Subject: 2010-01-31 Kai Tietz * config.gcc: Adjust order of makefile fragments for mingw targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156406 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 3b61af42deb..9c18adf5ef0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1335,7 +1335,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) case ${target} in *-w64-*) tm_file="${tm_file} i386/mingw-w64.h" - tmake_file="${tmake_file} i386/t-mingw-w64" if test x$enable_targets = xall; then tm_defines="${tm_defines} TARGET_BI_ARCH=1" case X"${with_cpu}" in @@ -1355,7 +1354,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) fi ;; *) - tmake_file="${tmake_file} i386/t-mingw32" ;; esac tm_file="${tm_file} i386/mingw-stdint.h" @@ -1366,6 +1364,14 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) tmake_eh_file="i386/t-sjlj-eh" fi tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming" + case ${target} in + *-w64-*) + tmake_file="${tmake_file} i386/t-mingw-w64" + ;; + *) + tmake_file="${tmake_file} i386/t-mingw32" + ;; + esac target_gtfiles="\$(srcdir)/config/i386/winnt.c" extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" case ${target} in -- cgit v1.2.1 From b138ccdd6fea80286f8982ec81343eb8b40e6782 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 3 Feb 2010 09:03:59 +0000 Subject: * config.gcc: Reenable check for obsolete targets. Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*, mips-sgi-irix6.[0-4]*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156462 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 9c18adf5ef0..849e66767fc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -205,16 +205,21 @@ xm_file= md_file= # Obsolete configurations. -#case ${target} in -# ) -# if test "x$enable_obsolete" != xyes; then -# echo "*** Configuration ${target} is obsolete." >&2 -# echo "*** Specify --enable-obsolete to build it anyway." >&2 -# echo "*** Support will be REMOVED in the next major release of GCC," >&2 -# echo "*** unless a maintainer comes forward." >&2 -# exit 1 -# fi;; -#esac +case ${target} in + alpha*-dec-osf4* \ + | alpha*-dec-osf5.0* \ + | mips-sgi-irix5* \ + | mips-sgi-irix6.[0-4]5* \ + | *-*-solaris2.7* \ + ) + if test "x$enable_obsolete" != xyes; then + echo "*** Configuration ${target} is obsolete." >&2 + echo "*** Specify --enable-obsolete to build it anyway." >&2 + echo "*** Support will be REMOVED in the next major release of GCC," >&2 + echo "*** unless a maintainer comes forward." >&2 + exit 1 + fi;; +esac # Unsupported targets list. Do not put an entry in this list unless # it would otherwise be caught by a more permissive pattern. The list -- cgit v1.2.1 From 7f9966d5eda31b3f963dac83ec75194a3e973f36 Mon Sep 17 00:00:00 2001 From: davem Date: Thu, 18 Feb 2010 03:28:52 +0000 Subject: 2010-02-17 Mikael Pettersson * config/sparc/gas.h: New file. Restore TARGET_ASM_NAMED_SECTION to its ELF default. * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not check !HAVE_GNU_AS. * config/sparc/sparc.c (sparc_elf_asm_named_section): Likewise. Add ATTRIBUTE_UNUSED to prototype. * config.gcc (sparc*-*-linux*): Include sparc/gas.h after sparc/sysv4.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156854 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 849e66767fc..06b3daa7c2e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2354,7 +2354,7 @@ sparc-*-elf*) extra_parts="crti.o crtn.o crtbegin.o crtend.o" ;; sparc-*-linux*) # SPARC's running GNU/Linux, libc6 - tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h" + tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.h" extra_options="${extra_options} sparc/long-double-switch.opt" tmake_file="${tmake_file} sparc/t-linux" if test x$enable_targets = xall; then @@ -2474,7 +2474,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*) esac ;; sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux - tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h sparc/linux64.h" + tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.h sparc/linux64.h" extra_options="${extra_options} sparc/long-double-switch.opt" tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm" ;; -- cgit v1.2.1 From 0adf6b09f60d09b6c54b9512c336110c3ec7ef78 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 24 Feb 2010 13:57:20 +0000 Subject: * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define. * config/i386/sol2-gas.h: New file. * config.gcc (i[34567]86-*-solaris2*): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157042 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 06b3daa7c2e..673e660236f 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1239,6 +1239,9 @@ i[34567]86-*-solaris2*) ;; esac tm_file="${tm_file} i386/sol2.h" + if test x$gas = xyes; then + tm_file="${tm_file} i386/sol2-gas.h" + fi tmake_file="${tmake_file} t-sol2 t-svr4" c_target_objs="${c_target_objs} sol2-c.o" cxx_target_objs="${cxx_target_objs} sol2-c.o" -- cgit v1.2.1 From 89afcdc02529ea480b4f8744da901591c50a1cfb Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 24 Feb 2010 14:40:32 +0000 Subject: * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157043 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 673e660236f..62ef6b09340 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -209,7 +209,7 @@ case ${target} in alpha*-dec-osf4* \ | alpha*-dec-osf5.0* \ | mips-sgi-irix5* \ - | mips-sgi-irix6.[0-4]5* \ + | mips-sgi-irix6.[0-4]* \ | *-*-solaris2.7* \ ) if test "x$enable_obsolete" != xyes; then -- cgit v1.2.1 From 1f64ad21b3240808dfce16e2153fb92fd9c7b437 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 26 Feb 2010 02:37:40 +0000 Subject: Set default arch/cpu for i[34567]86-*-*|x86_64-*-* targets. 2010-02-25 H.J. Lu * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-* targets. Set the default with_cpu/with_arch from arch/cpu. Allow x86-64 and native for with_cpu/with_arch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157081 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 290 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 184 insertions(+), 106 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 62ef6b09340..65578f36da7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2621,105 +2621,151 @@ case ${with_cpu} in ;; esac +# Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu +# to generic if there is no processor scheduler model for the target. +arch= +cpu= +case ${target} in + i386-*-*) + arch=i386 + cpu=i386 + ;; + i486-*-*) + arch=i486 + cpu=i486 + ;; + i586-*-*) + case ${target_noncanonical} in + k6_2-*) + arch=k6-2 + cpu=k6-2 + ;; + k6_3-*) + arch=k6-3 + cpu=k6-3 + ;; + k6-*) + arch=k6 + cpu=k6 + ;; + pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) + arch=pentium-mmx + cpu=pentium-mmx + ;; + *) + arch=pentium + cpu=pentium + ;; + esac + ;; + i686-*-* | i786-*-*) + case ${target_noncanonical} in + amdfam10-*|barcelona-*) + arch=amdfam10 + cpu=amdfam10 + ;; + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) + arch=k8-sse3 + cpu=k8-sse3 + ;; + k8-*|opteron-*|athlon64-*|athlon_fx-*) + arch=k8 + cpu=k8 + ;; + athlon_xp-*|athlon_mp-*|athlon_4-*) + arch=athlon-4 + cpu=athlon-4 + ;; + athlon_tbird-*|athlon-*) + arch=athlon + cpu=athlon + ;; + geode-*) + arch=geode + cpu=geode + ;; + pentium2-*) + arch=pentium2 + cpu=pentium2 + ;; + pentium3-*|pentium3m-*) + arch=pentium3 + cpu=pentium3 + ;; + pentium4-*|pentium4m-*) + arch=pentium4 + cpu=pentium4 + ;; + prescott-*) + arch=prescott + cpu=prescott + ;; + nocona-*) + arch=nocona + cpu=nocona + ;; + atom-*) + arch=atom + cpu=atom + ;; + core2-*) + arch=core2 + cpu=core2 + ;; + pentium_m-*) + arch=pentium-m + cpu=pentium-m + ;; + pentiumpro-*) + arch=pentiumpro + cpu=pentiumpro + ;; + *) + arch=pentiumpro + cpu=generic + ;; + esac + ;; + x86_64-*-*) + case ${target_noncanonical} in + amdfam10-*|barcelona-*) + arch=amdfam10 + cpu=amdfam10 + ;; + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) + arch=k8-sse3 + cpu=k8-sse3 + ;; + k8-*|opteron-*|athlon_64-*) + arch=k8 + cpu=k8 + ;; + nocona-*) + arch=nocona + cpu=nocona + ;; + atom-*) + arch=atom + cpu=atom + ;; + core2-*) + arch=core2 + cpu=core2 + ;; + *) + arch=x86-64 + cpu=generic + ;; + esac + ;; +esac + # If there is no $with_cpu option, try to infer one from ${target}. # This block sets nothing except for with_cpu. if test x$with_cpu = x ; then case ${target} in - i386-*-*) - with_cpu=i386 - ;; - i486-*-*) - with_cpu=i486 - ;; - i586-*-*) - case ${target_noncanonical} in - k6_2-*) - with_cpu=k6-2 - ;; - k6_3-*) - with_cpu=k6-3 - ;; - k6-*) - with_cpu=k6 - ;; - pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) - with_cpu=pentium-mmx - ;; - *) - with_cpu=pentium - ;; - esac - ;; - i686-*-* | i786-*-*) - case ${target_noncanonical} in - amdfam10-*|barcelona-*) - with_cpu=amdfam10 - ;; - k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) - with_cpu=k8-sse3 - ;; - k8-*|opteron-*|athlon64-*|athlon_fx-*) - with_cpu=k8 - ;; - athlon_xp-*|athlon_mp-*|athlon_4-*) - with_cpu=athlon-4 - ;; - athlon_tbird-*|athlon-*) - with_cpu=athlon - ;; - geode-*) - with_cpu=geode - ;; - pentium2-*) - with_cpu=pentium2 - ;; - pentium3-*|pentium3m-*) - with_cpu=pentium3 - ;; - pentium4-*|pentium4m-*) - with_cpu=pentium4 - ;; - prescott-*) - with_cpu=prescott - ;; - nocona-*) - with_cpu=nocona - ;; - core2-*) - with_cpu=core2 - ;; - pentium_m-*) - with_cpu=pentium-m - ;; - pentiumpro-*) - with_cpu=pentiumpro - ;; - *) - with_cpu=generic - ;; - esac - ;; - x86_64-*-*) - case ${target_noncanonical} in - amdfam10-*|barcelona-*) - with_cpu=amdfam10 - ;; - k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) - with_cpu=k8-sse3 - ;; - k8-*|opteron-*|athlon64-*|athlon_fx-*) - with_cpu=k8 - ;; - nocona-*) - with_cpu=nocona - ;; - core2-*) - with_cpu=core2 - ;; - *) - with_cpu=generic - ;; - esac + i[34567]86-*-*|x86_64-*-*) + with_cpu=$cpu ;; alphaev6[78]*-*-*) with_cpu=ev67 @@ -2763,16 +2809,48 @@ if test x$with_cpu = x ; then # Avoid overriding --with-cpu-32 and --with-cpu-64 values. case ${target} in i[34567]86-*-*|x86_64-*-*) - if test x$with_cpu != x; then - if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then - if test x$with_cpu_32 = x; then - with_cpu_32=$with_cpu - fi - if test x$with_cpu_64 = x; then - with_cpu_64=$with_cpu - fi - with_cpu= - fi + if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then + if test x$with_cpu_32 = x; then + with_cpu_32=$with_cpu + fi + if test x$with_cpu_64 = x; then + with_cpu_64=$with_cpu + fi + with_cpu= + fi + ;; + esac +fi + +# Support for --with-arch and related options (and a few unrelated options, +# too). +case ${with_arch} in + yes | no) + echo "--with-arch must be passed a value" 1>&2 + exit 1 + ;; +esac + +# If there is no $with_arch option, try to infer one from ${target}. +# This block sets nothing except for with_arch. +if test x$with_arch = x ; then + case ${target} in + i[34567]86-*-*|x86_64-*-*) + with_arch=$arch + ;; + esac + + # Avoid overriding --with-arch-32 and --with-arch-64 values. + case ${target} in + i[34567]86-*-*|x86_64-*-*) + if test x$with_arch_32 != x || test x$with_arch_64 != x; then + if test x$with_arch_32 = x; then + with_arch_32=$arch + fi + if test x$with_arch_64 = x; then + with_arch_64=$arch + fi + with_arch= fi ;; esac @@ -3001,7 +3079,7 @@ case "${target}" in esac # OK ;; - "" | amdfam10 | barcelona | k8-sse3 | opteron-sse3 | athlon64-sse3 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | generic) + "" | amdfam10 | barcelona | k8-sse3 | opteron-sse3 | athlon64-sse3 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | x86-64 | generic | native) # OK ;; *) -- cgit v1.2.1 From 414f0dcbdd334b2f314a5179fb44dabcdcbe969e Mon Sep 17 00:00:00 2001 From: uros Date: Fri, 26 Feb 2010 08:17:00 +0000 Subject: * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line. (arm*-*-*): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157082 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 65578f36da7..d2d4ad7f5c7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2942,7 +2942,10 @@ case "${target}" in case "$with_fpu" in "" \ - | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 | fpv4-sp-d16 | neon-vfpv4) + | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 \ + | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \ + | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \ + | fpv4-sp-d16 | neon-vfpv4) # OK ;; *) @@ -3079,7 +3082,10 @@ case "${target}" in esac # OK ;; - "" | amdfam10 | barcelona | k8-sse3 | opteron-sse3 | athlon64-sse3 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | x86-64 | generic | native) + "" | x86-64 | generic | native \ + | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \ + | opteron-sse3 | athlon-fx | amdfam10 | barcelona \ + | nocona | core2 | atom) # OK ;; *) -- cgit v1.2.1 From 2d2e1f85b3d9fb179cd879d0652c18343627e215 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 26 Feb 2010 14:52:01 +0000 Subject: Support --with-fpmath=sse for x86. 2010-02-26 H.J. Lu * config.gcc: Support --with-fpmath=sse for x86. * config/i386/ssemath.h: New. * doc/install.texi (--with-fpmath=sse): Documented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157090 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index d2d4ad7f5c7..df84f50db64 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2835,7 +2835,18 @@ esac # This block sets nothing except for with_arch. if test x$with_arch = x ; then case ${target} in - i[34567]86-*-*|x86_64-*-*) + i[34567]86-*-darwin*) + # Don't set default arch for Darwin since it will set the default + # ISA to SSE2. + ;; + i[34567]86-*-*) + # Don't set default arch if --with-fpmath is used since it will set + # the default ISA to SSE2. + if test x$with_fpmath = x; then + with_arch=$arch + fi + ;; + x86_64-*-*) with_arch=$arch ;; esac @@ -2856,6 +2867,27 @@ if test x$with_arch = x ; then esac fi +# Support --with-fpmath. +if test x$with_fpmath != x; then + case ${target} in + i[34567]86-*-* | x86_64-*-*) + case ${with_fpmath} in + sse) + tm_file="${tm_file} i386/ssemath.h" + ;; + *) + echo "Invalid --with-fpmath=$with_fpmath" 1>&2 + exit 1 + ;; + esac + ;; + *) + echo "--with-fpmath isn't supported for $target." 1>&2 + exit 1 + ;; + esac +fi + # Similarly for --with-schedule. if test x$with_schedule = x; then case ${target} in -- cgit v1.2.1 From 05b38372e74b9fe84077a2b803af106194177787 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 26 Feb 2010 22:35:34 +0000 Subject: Set the default arch at least to Prescott/Pentium 4. 2010-02-26 H.J. Lu * config.gcc: Set the default arch at least to Prescott for i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets if SSE math is enabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157101 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index df84f50db64..a1894004eca 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2625,16 +2625,20 @@ esac # to generic if there is no processor scheduler model for the target. arch= cpu= +arch_without_sse2=no case ${target} in i386-*-*) arch=i386 cpu=i386 + arch_without_sse2=yes ;; i486-*-*) arch=i486 cpu=i486 + arch_without_sse2=yes ;; i586-*-*) + arch_without_sse2=yes case ${target_noncanonical} in k6_2-*) arch=k6-2 @@ -2675,22 +2679,27 @@ case ${target} in athlon_xp-*|athlon_mp-*|athlon_4-*) arch=athlon-4 cpu=athlon-4 + arch_without_sse2=yes ;; athlon_tbird-*|athlon-*) arch=athlon cpu=athlon + arch_without_sse2=yes ;; geode-*) arch=geode cpu=geode + arch_without_sse2=yes ;; pentium2-*) arch=pentium2 cpu=pentium2 + arch_without_sse2=yes ;; pentium3-*|pentium3m-*) arch=pentium3 cpu=pentium3 + arch_without_sse2=yes ;; pentium4-*|pentium4m-*) arch=pentium4 @@ -2719,10 +2728,12 @@ case ${target} in pentiumpro-*) arch=pentiumpro cpu=pentiumpro + arch_without_sse2=yes ;; *) arch=pentiumpro cpu=generic + arch_without_sse2=yes ;; esac ;; @@ -2836,14 +2847,22 @@ esac if test x$with_arch = x ; then case ${target} in i[34567]86-*-darwin*) - # Don't set default arch for Darwin since it will set the default - # ISA to SSE2. + # SSE math is enabled for Darwin, which sets the default ISA to + # SSE2. The minimum ISA supported Darwin is SSE3, which is the + # same as Prescott. + if test $arch_without_sse2 = no; then + with_arch=$arch + else + with_arch=prescott + fi ;; i[34567]86-*-*) - # Don't set default arch if --with-fpmath is used since it will set - # the default ISA to SSE2. - if test x$with_fpmath = x; then - with_arch=$arch + # --with-fpmath sets the default ISA to SSE2, which is the same + # ISA supported by Pentium 4. + if test x$with_fpmath = x || test $arch_without_sse2 = no; then + with_arch=$arch + else + with_arch=pentium4 fi ;; x86_64-*-*) -- cgit v1.2.1 From ed2b8f563def01279e1d2a2fddf7070e3131874a Mon Sep 17 00:00:00 2001 From: hjl Date: Sat, 27 Feb 2010 17:44:41 +0000 Subject: Set the default 32bit/64bit archs if needed. 2010-02-27 H.J. Lu * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is required and i[34567]86-*-* targets don't support 64bit ISA. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157110 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index a1894004eca..0d4687873e3 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -199,6 +199,7 @@ gnu_ld="$gnu_ld_flag" default_use_cxa_atexit=no target_gtfiles= need_64bit_hwint= +need_64bit_isa= # Don't carry these over build->host->target. Please. xm_file= @@ -1083,6 +1084,7 @@ hppa[12]*-*-hpux11*) ;; i[34567]86-*-darwin*) need_64bit_hwint=yes + need_64bit_isa=yes # This is so that '.../configure && make' doesn't fail due to # config.guess deciding that the configuration is i386-*-darwin* and @@ -1148,6 +1150,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i tm_defines="${tm_defines} TARGET_BI_ARCH=1" tmake_file="${tmake_file} i386/t-linux64" need_64bit_hwint=yes + need_64bit_isa=yes case X"${with_cpu}" in Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; @@ -1266,6 +1269,7 @@ i[34567]86-*-solaris2*) # depends on a runtime test and is thus performed in # libgcc/configure.ac instead. need_64bit_hwint=yes + need_64bit_isa=yes use_gcc_stdint=wrap case X"${with_cpu}" in Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) @@ -1335,6 +1339,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) case ${target} in x86_64-*-* | *-w64-*) need_64bit_hwint=yes + need_64bit_isa=yes ;; *) ;; @@ -2626,19 +2631,23 @@ esac arch= cpu= arch_without_sse2=no +arch_without_64bit=no case ${target} in i386-*-*) arch=i386 cpu=i386 arch_without_sse2=yes + arch_without_64bit=yes ;; i486-*-*) arch=i486 cpu=i486 arch_without_sse2=yes + arch_without_64bit=yes ;; i586-*-*) arch_without_sse2=yes + arch_without_64bit=yes case ${target_noncanonical} in k6_2-*) arch=k6-2 @@ -2680,6 +2689,7 @@ case ${target} in arch=athlon-4 cpu=athlon-4 arch_without_sse2=yes + arch_without_64bit=yes ;; athlon_tbird-*|athlon-*) arch=athlon @@ -2734,6 +2744,7 @@ case ${target} in arch=pentiumpro cpu=generic arch_without_sse2=yes + arch_without_64bit=yes ;; esac ;; @@ -2878,9 +2889,21 @@ if test x$with_arch = x ; then with_arch_32=$arch fi if test x$with_arch_64 = x; then - with_arch_64=$arch + if test $arch_without_64bit = yes; then + # Set the default 64bit arch to x86-64 if the default arch + # doesn't support 64bit. + with_arch_64=x86-64 + else + with_arch_64=$arch + fi fi with_arch= + elif test $arch_without_64bit$need_64bit_isa = yesyes; then + # Set the default 64bit arch to x86-64 if the default arch + # doesn't support 64bit and we need 64bit ISA. + with_arch_32=$arch + with_arch_64=x86-64 + with_arch= fi ;; esac -- cgit v1.2.1 From 525b174b2bcf00944620bc7617e2170eebe5c5b0 Mon Sep 17 00:00:00 2001 From: hjl Date: Sun, 28 Feb 2010 07:23:31 +0000 Subject: Restore i[34567]86-*-darwin* bootstrap. 2010-02-27 H.J. Lu PR bootstrap/43202 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by default. Set the default 32bit/64bit archs with $with_arch instead of $arch for i[34567]86-*-*|x86_64-*-* targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157118 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 0d4687873e3..c0239c02ee4 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1086,6 +1086,9 @@ i[34567]86-*-darwin*) need_64bit_hwint=yes need_64bit_isa=yes + # SSE math is enabled for Darwin by default. + with_fpmath=${with_fpmath:-sse} + # This is so that '.../configure && make' doesn't fail due to # config.guess deciding that the configuration is i386-*-darwin* and # then this file using that to set --with-cpu=i386 which has no -m64 @@ -2857,16 +2860,6 @@ esac # This block sets nothing except for with_arch. if test x$with_arch = x ; then case ${target} in - i[34567]86-*-darwin*) - # SSE math is enabled for Darwin, which sets the default ISA to - # SSE2. The minimum ISA supported Darwin is SSE3, which is the - # same as Prescott. - if test $arch_without_sse2 = no; then - with_arch=$arch - else - with_arch=prescott - fi - ;; i[34567]86-*-*) # --with-fpmath sets the default ISA to SSE2, which is the same # ISA supported by Pentium 4. @@ -2886,7 +2879,7 @@ if test x$with_arch = x ; then i[34567]86-*-*|x86_64-*-*) if test x$with_arch_32 != x || test x$with_arch_64 != x; then if test x$with_arch_32 = x; then - with_arch_32=$arch + with_arch_32=$with_arch fi if test x$with_arch_64 = x; then if test $arch_without_64bit = yes; then @@ -2894,14 +2887,14 @@ if test x$with_arch = x ; then # doesn't support 64bit. with_arch_64=x86-64 else - with_arch_64=$arch + with_arch_64=$with_arch fi fi with_arch= elif test $arch_without_64bit$need_64bit_isa = yesyes; then # Set the default 64bit arch to x86-64 if the default arch # doesn't support 64bit and we need 64bit ISA. - with_arch_32=$arch + with_arch_32=$with_arch with_arch_64=x86-64 with_arch= fi -- cgit v1.2.1 From ffcf29bff4329d991ba0fb1fdd191278a6b68107 Mon Sep 17 00:00:00 2001 From: hjl Date: Sun, 28 Feb 2010 07:56:36 +0000 Subject: Don't set the default arch for i[34567]86-*-darwin*|x86_64-*-darwin*. 2010-02-27 H.J. Lu PR bootstrap/43202 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin* by default. Don't set the default arch for i[34567]86-*-darwin*|x86_64-*-darwin*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157119 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index c0239c02ee4..8d0475f27aa 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1086,9 +1086,6 @@ i[34567]86-*-darwin*) need_64bit_hwint=yes need_64bit_isa=yes - # SSE math is enabled for Darwin by default. - with_fpmath=${with_fpmath:-sse} - # This is so that '.../configure && make' doesn't fail due to # config.guess deciding that the configuration is i386-*-darwin* and # then this file using that to set --with-cpu=i386 which has no -m64 @@ -2860,6 +2857,10 @@ esac # This block sets nothing except for with_arch. if test x$with_arch = x ; then case ${target} in + i[34567]86-*-darwin*|x86_64-*-darwin*) + # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT + # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. + ;; i[34567]86-*-*) # --with-fpmath sets the default ISA to SSE2, which is the same # ISA supported by Pentium 4. @@ -2876,6 +2877,10 @@ if test x$with_arch = x ; then # Avoid overriding --with-arch-32 and --with-arch-64 values. case ${target} in + i[34567]86-*-darwin*|x86_64-*-darwin*) + # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT + # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. + ;; i[34567]86-*-*|x86_64-*-*) if test x$with_arch_32 != x || test x$with_arch_64 != x; then if test x$with_arch_32 = x; then -- cgit v1.2.1 From 165280465e9b24666ed8d807ea7ae8bc82ec9396 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Tue, 2 Mar 2010 23:35:12 +0000 Subject: * config.gcc (sparc-*-linux*): Do not include sparc/gas.h. (sparc64-*-linux*): Likewise. (sparc64-*-solaris2*): Include assembler files before linker ones. (sparc-*-solaris2*): Simplify and reorder to match previous case. * config/sparc/gas.h: Delete. * config/sparc/sol2-64.h: Add copyright notice. * config/sparc/sol2-gas-bi.h: Likewise. * config/sparc/sol2-gld.h: Likewise. * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete. * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine. * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise. * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine. (sparc_elf_asm_named_section): Rename into... (sparc_solaris_elf_asm_named_section): ...this. Always define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157181 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 8d0475f27aa..c131b89d0b8 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2362,7 +2362,7 @@ sparc-*-elf*) extra_parts="crti.o crtn.o crtbegin.o crtend.o" ;; sparc-*-linux*) # SPARC's running GNU/Linux, libc6 - tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.h" + tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h" extra_options="${extra_options} sparc/long-double-switch.opt" tmake_file="${tmake_file} sparc/t-linux" if test x$enable_targets = xall; then @@ -2390,12 +2390,12 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*) ;; esac tm_file="${tm_file} sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" - if test x$gnu_ld = xyes; then - tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" - fi if test x$gas = xyes; then tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" fi + if test x$gnu_ld = xyes; then + tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" + fi tm_file="${tm_file} tm-dwarf2.h" tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" if test x$gnu_ld = xyes; then @@ -2414,7 +2414,7 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*) esac ;; sparc-*-solaris2*) - tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" + tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" case ${target} in *-*-solaris2.1[0-9]*) tm_file="${tm_file} sol2-10.h" @@ -2424,28 +2424,20 @@ sparc-*-solaris2*) use_gcc_stdint=provide ;; esac - tm_file="${tm_file} sparc/sol2.h" - if test x$gnu_ld = xyes; then - tm_file="${tm_file} sparc/sol2-gld.h" - fi + tm_file="${tm_file} sparc/sol2.h sparc/sol2-bi.h" if test x$gas = xyes; then - tm_file="${tm_file} sparc/sol2-gas.h" + tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" fi - tmake_file="t-sol2 sparc/t-sol2 sparc/t-crtfm" + if test x$gnu_ld = xyes; then + tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" + fi + tm_file="${tm_file} tm-dwarf2.h" + tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" if test x$gnu_ld = xyes; then tmake_file="$tmake_file t-slibgcc-elf-ver" else tmake_file="$tmake_file t-slibgcc-sld" fi - tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h" - if test x$gnu_ld = xyes; then - tm_file="${tm_file} sparc/sol2-gld-bi.h" - fi - if test x$gas = xyes; then - tm_file="${tm_file} sparc/sol2-gas-bi.h" - fi - tm_file="${tm_file} tm-dwarf2.h" - tmake_file="$tmake_file sparc/t-sol2-64" test x$with_cpu != x || with_cpu=v9 c_target_objs="sol2-c.o" cxx_target_objs="sol2-c.o" @@ -2482,7 +2474,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*) esac ;; sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux - tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h glibc-stdint.h sparc/linux64.h" + tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h sparc/linux64.h" extra_options="${extra_options} sparc/long-double-switch.opt" tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm" ;; -- cgit v1.2.1 From 8acfe9c66c81d2ac307f57a5a12f077d35079a1d Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Wed, 3 Mar 2010 18:14:50 +0000 Subject: * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into... (sparc*-*-solaris2*): ...this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157200 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index c131b89d0b8..21782065cec 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2378,53 +2378,27 @@ sparc-*-rtems*) tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" extra_parts="crti.o crtn.o crtbegin.o crtend.o" ;; -sparc64-*-solaris2* | sparcv9-*-solaris2*) +sparc*-*-solaris2*) tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" case ${target} in - *-*-solaris2.1[0-9]*) + *-*-solaris2.1[0-9]*) tm_file="${tm_file} sol2-10.h" use_gcc_stdint=wrap ;; - *) + *) use_gcc_stdint=provide ;; esac - tm_file="${tm_file} sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" - if test x$gas = xyes; then - tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" - fi - if test x$gnu_ld = xyes; then - tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" - fi - tm_file="${tm_file} tm-dwarf2.h" - tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" - if test x$gnu_ld = xyes; then - tmake_file="$tmake_file t-slibgcc-elf-ver" - else - tmake_file="$tmake_file t-slibgcc-sld" - fi - c_target_objs="sol2-c.o" - cxx_target_objs="sol2-c.o" - extra_objs="sol2.o" - tm_p_file="${tm_p_file} sol2-protos.h" - extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" - case ${enable_threads}:${have_pthread_h}:${have_thread_h} in - "":yes:* | yes:yes:* ) thread_file=posix ;; - "":*:yes | yes:*:yes ) thread_file=solaris ;; - esac - ;; -sparc-*-solaris2*) - tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" + tm_file="${tm_file} sparc/sol2.h" case ${target} in - *-*-solaris2.1[0-9]*) - tm_file="${tm_file} sol2-10.h" - use_gcc_stdint=wrap + sparc64-*-* | sparcv9-*-*) + tm_file="${tm_file} sparc/sol2-64.h" ;; - *) - use_gcc_stdint=provide + *) + test x$with_cpu != x || with_cpu=v9 ;; esac - tm_file="${tm_file} sparc/sol2.h sparc/sol2-bi.h" + tm_file="${tm_file} sparc/sol2-bi.h" if test x$gas = xyes; then tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" fi @@ -2438,7 +2412,6 @@ sparc-*-solaris2*) else tmake_file="$tmake_file t-slibgcc-sld" fi - test x$with_cpu != x || with_cpu=v9 c_target_objs="sol2-c.o" cxx_target_objs="sol2-c.o" extra_objs="sol2.o" -- cgit v1.2.1 From 7d07052011f59f1abbfdbc8cfeb0866d56150856 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 24 Mar 2010 18:49:49 +0000 Subject: * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support and Sun as TLS syntax. (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define. * configure: Regenerate. * config.in: Regenerate. * varasm.c (TLS_SECTION_ASM_FLAG): Define default. (default_elf_asm_named_section): Use it. * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF. (i386_output_dwarf_dtprel): Likewise. (output_addr_const_extra): Likewise. (output_pic_addr_const): Lowercase @GOTTPOFF. (output_addr_const_extra): Likewise. (output_pic_addr_const): Lowercase @GOTNTPOFF. (output_addr_const_extra): Likewise. (output_pic_addr_const): Lowercase @INDNTPOFF. (output_addr_const_extra): Likewise. (output_pic_addr_const): Lowercase @NTPOFF. (output_addr_const_extra): Likewise. (output_pic_addr_const): Lowercase @TPOFF. (output_addr_const_extra): Likewise. * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD. (*tls_global_dynamic_64): Likewise. (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM. (*tls_local_dynamic_base_64): Lowercase @TLSLD. * defaults.h (TLS_COMMON_ASM_OP): Provide default. (ASM_OUTPUT_TLS_COMMON): Use it. * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef. PR target/38118 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file. * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ... * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here. * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine. * config/i386/sol2.h (TARGET_SUN_TLS): Redefine. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157705 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 21782065cec..d4e733c29c5 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2412,6 +2412,9 @@ sparc*-*-solaris2*) else tmake_file="$tmake_file t-slibgcc-sld" fi + if test x$gas = xyes; then + tm_file="usegas.h ${tm_file}" + fi c_target_objs="sol2-c.o" cxx_target_objs="sol2-c.o" extra_objs="sol2.o" -- cgit v1.2.1 From cf842d6a840aed9fa429fe6826c832eb9f960ce8 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 30 Mar 2010 10:26:24 +0000 Subject: 2010-03-30 Tarik Graba gcc/ * config/lm32/t-lm32: New file. * config.gcc: Use the above file when targetting lm32. libgcc/ * config/lm32/t-lm32: Remove misplaced MULTILIB_OPTIONS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157817 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index d4e733c29c5..e6b2e5f8891 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1498,11 +1498,11 @@ iq2000*-*-elf*) ;; lm32-*-elf*) tm_file="dbxelf.h elfos.h ${tm_file}" - tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp" + tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp" ;; lm32-*-uclinux*) tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h" - tmake_file="${tmake_file} lm32/t-fprules-softfp soft-fp/t-softfp" + tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp" ;; m32r-*-elf*) tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}" -- cgit v1.2.1 From 20be3c56b2a4652040486a5ea4885566ef1b53f2 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 31 Mar 2010 09:03:29 +0000 Subject: gcc: PR target/39048 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file. * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine. (LIBGCC2_TF_CEXT): Define. (TF_SIZE): Define. libgcc: PR target/39048 * config.host (i[34567]86-*-solaris2): Handle 32-bit Solaris 2/x86 like other remaining 32-bit x86 OSes. * config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun assembler syntax. * config/i386/libgcc-sol2.ver: New file. * config/i386/t-sol2 (SHLIB_MAPFILES): Add it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157854 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index e6b2e5f8891..b0ed0128ed1 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3402,6 +3402,9 @@ case ${target} in i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux" ;; + i[34567]86-*-solaris2*) + tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp" + ;; i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp" ;; -- cgit v1.2.1 From 2c22525da34b55450b6c132a4993320d06ab1661 Mon Sep 17 00:00:00 2001 From: ro Date: Thu, 1 Apr 2010 10:32:10 +0000 Subject: * config.guess (i[34567]86-*-solaris2*): Default with_arch_32, with_tune_32 to pentium4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157903 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index b0ed0128ed1..c26ae5ac198 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1236,6 +1236,10 @@ i[34567]86-*-rtems*) ;; i[34567]86-*-solaris2*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h" + # Set default arch and tune to pentium4 like the other i386 targets, + # although config.guess defaults to i386-pc-solaris2*. + with_arch_32=${with_arch_32:-pentium4} + with_tune_32=${with_tune_32:-pentium4} case ${target} in *-*-solaris2.1[0-9]*) tm_file="${tm_file} sol2-10.h" -- cgit v1.2.1 From 431df6da0436814297b45678e296d1c96c4be586 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Fri, 2 Apr 2010 02:59:07 +0000 Subject: =?UTF-8?q?2010-04-01=20=20Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * config.gcc (lm32-*-rtems*): Add t-lm32. 2010-04-01 Joel Sherrill * config.gcc: Add lm32-*-rtems*. * config/lm32/rtems.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157937 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index c26ae5ac198..022442c06e9 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1504,6 +1504,11 @@ lm32-*-elf*) tm_file="dbxelf.h elfos.h ${tm_file}" tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp" ;; +lm32-*-rtems*) + tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h" + tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp" + tmake_file="${tmake_file} t-rtems" + ;; lm32-*-uclinux*) tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h" tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp" -- cgit v1.2.1 From be67f556f01e1f4acbb3873f51d53588acff68fa Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 7 Apr 2010 10:30:32 +0000 Subject: * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158049 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 022442c06e9..a78d1db806f 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1239,7 +1239,7 @@ i[34567]86-*-solaris2*) # Set default arch and tune to pentium4 like the other i386 targets, # although config.guess defaults to i386-pc-solaris2*. with_arch_32=${with_arch_32:-pentium4} - with_tune_32=${with_tune_32:-pentium4} + with_tune_32=${with_tune_32:-generic} case ${target} in *-*-solaris2.1[0-9]*) tm_file="${tm_file} sol2-10.h" -- cgit v1.2.1 From 6f5b6a64f53c4ced6e8ec092897d7956dbda018a Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 7 Apr 2010 10:35:19 +0000 Subject: Update comment for last commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158051 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index a78d1db806f..12334cd09d4 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1236,8 +1236,8 @@ i[34567]86-*-rtems*) ;; i[34567]86-*-solaris2*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h" - # Set default arch and tune to pentium4 like the other i386 targets, - # although config.guess defaults to i386-pc-solaris2*. + # Set default arch_32 to pentium4, tune_32 to generic like the other + # i386 targets, although config.guess defaults to i386-pc-solaris2*. with_arch_32=${with_arch_32:-pentium4} with_tune_32=${with_tune_32:-generic} case ${target} in -- cgit v1.2.1 From 9232c3b6259f0a56cca9ada3b978ab7d0a0debda Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 9 Apr 2010 17:02:52 +0000 Subject: * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ... * config/sol2-gld.h: ... here. * config.gcc (sparc*-*-solaris2*): Reflect this. (i[34567]86-*-solaris2*): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158171 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 12334cd09d4..119bf0ac645 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1246,6 +1246,9 @@ i[34567]86-*-solaris2*) ;; esac tm_file="${tm_file} i386/sol2.h" + if test x$gnu_ld = xyes; then + tm_file="${tm_file} sol2-gld.h" + fi if test x$gas = xyes; then tm_file="${tm_file} i386/sol2-gas.h" fi @@ -2412,7 +2415,7 @@ sparc*-*-solaris2*) tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" fi if test x$gnu_ld = xyes; then - tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" + tm_file="${tm_file} sol2-gld.h sparc/sol2-gld-bi.h" fi tm_file="${tm_file} tm-dwarf2.h" tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" -- cgit v1.2.1 From ed3e1bbc6b602ca019a6391a8e2a42b06e57bff5 Mon Sep 17 00:00:00 2001 From: ro Date: Mon, 12 Apr 2010 18:36:30 +0000 Subject: gcc: * config.build (alpha*-dec-osf4*): Remove. * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list of obsolete configurations. (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0* support. * config/alpha/t-osf4: Renamed to ... * config/alpha/t-osf5: ... this. * config/alpha/osf.h: Renamed to ... * config/alpha/osf5.h: ... this. Merged old osf5.h contents. Update comments. (ASM_SPEC): Use ASM_OLDAS_SPEC directly. (EXTRA_SPECS): Removed. * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to reflect removal of Tru64 UNIX V4.0/V5.0 support. Document that. fixincludes: * inclhack.def (alpha_wchar): Remove. * fixincl.x: Regenerate. * tests/base/wchar.h: Remove. libgcc: * config.host (alpha*-dec-osf[45]*): Removed alpha*-dec-osf4*, alpha-dec-osf5.0* support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158235 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 119bf0ac645..a5788653dfc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -207,9 +207,7 @@ md_file= # Obsolete configurations. case ${target} in - alpha*-dec-osf4* \ - | alpha*-dec-osf5.0* \ - | mips-sgi-irix5* \ + mips-sgi-irix5* \ | mips-sgi-irix6.[0-4]* \ | *-*-solaris2.7* \ ) @@ -651,7 +649,7 @@ alpha*-*-openbsd*) target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ;; -alpha*-dec-osf[45]*) +alpha*-dec-osf5.1*) if test x$stabs = xyes then tm_file="${tm_file} dbx.h" @@ -661,23 +659,11 @@ alpha*-dec-osf[45]*) extra_passes="mips-tfile mips-tdump" fi use_collect2=yes - tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" - tm_file="${tm_file} alpha/osf.h" + tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf5" + tm_file="${tm_file} alpha/osf5.h" + tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" extra_headers=va_list.h use_gcc_stdint=provide - case ${target} in - *-*-osf4*) - # Define TARGET_SUPPORT_ARCH except on 4.0a. - case ${target} in - *-*-osf4.0a) ;; - *) tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" - esac - ;; - *-*-osf5*) - tm_file="${tm_file} alpha/osf5.h" - tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" - ;; - esac case ${enable_threads} in "" | yes | posix) thread_file='posix' -- cgit v1.2.1 From efad0fb71552fad4072db9cb4e8ee3975841adbf Mon Sep 17 00:00:00 2001 From: ro Date: Mon, 12 Apr 2010 19:01:36 +0000 Subject: gcc: * config.gcc: Removed *-*-solaris2.7* from list of obsolete configurations. Add to unsupported targets list. * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*, sparc*-sun-solaris2.[567]* from target lists. * configure: Regenerate. * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7 removal. Remove Solaris 7 patch references. (Specific, sparc-sun-solaris2.7): Removed. (sparc-sun-solaris2*): Update Solaris 7 example. (sparc64-*-solaris2*): Likewise. gcc/testsuite: * g++.dg/warn/miss-format-1.C: Removed *-*-solaris2.7 from dg-error, dg-warning. * gcc.dg/c99-stdint-6.c: Removed *-*-solaris2.7 from dg-options. libstdc++-v3: * configure.host (os_include_dir): Removed solaris2.7 support. * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Likewise. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158236 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index a5788653dfc..f1b32fa2f2d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -209,7 +209,6 @@ md_file= case ${target} in mips-sgi-irix5* \ | mips-sgi-irix6.[0-4]* \ - | *-*-solaris2.7* \ ) if test "x$enable_obsolete" != xyes; then echo "*** Configuration ${target} is obsolete." >&2 @@ -236,8 +235,8 @@ case ${target} in | *-*-linux*oldld* \ | *-*-rtemsaout* \ | *-*-rtemscoff* \ - | *-*-solaris2.[0-6] \ - | *-*-solaris2.[0-6].* \ + | *-*-solaris2.[0-7] \ + | *-*-solaris2.[0-7].* \ | *-*-sysv* \ | vax-*-vms* \ ) -- cgit v1.2.1 From 8a84c748fb5e8af580e9411e056a58451f301de2 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Thu, 15 Apr 2010 13:29:07 +0000 Subject: 2010-04-15 Thomas Schwinge gcc/ * config.gcc : Handle softfp as for Linux. libgcc/ * config.host : Handle softfp as for Linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158375 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index f1b32fa2f2d..88631ff66e6 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3396,7 +3396,9 @@ case ${target} in i[34567]86-*-darwin* | x86_64-*-darwin*) tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp" ;; - i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) + i[34567]86-*-linux* | x86_64-*-linux* | \ + i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ + i[34567]86-*-gnu*) tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux" ;; i[34567]86-*-solaris2*) -- cgit v1.2.1 From 4d992eb62c555460d61df8961f2f8df95a4f3a0f Mon Sep 17 00:00:00 2001 From: davek Date: Tue, 27 Apr 2010 02:22:40 +0000 Subject: ChangeLog: PR lto/42776 * configure.ac (--enable-lto): Refactor handling so libelf tests are only performed inside then-clause of ACX_ELF_TARGET_IFELSE, and allow LTO to be explicitly enabled on non-ELF platforms that are known to support it inside else-clause. * configure: Regenerate. gcc/ChangeLog: PR lto/42776 * configure.ac (gcc_cv_as_section_has_align): Set if installed binutils supports extended .section directive needed by LTO, or warn if older binutils found. (LTO_BINARY_READER): New AC_SUBST'd variable. (LTO_USE_LIBELF): Likewise. * gcc/config.gcc (lto_binary_reader): New target-specific configure variable. * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var. (LTO_USE_LIBELF): Likewise. * configure: Regenerate. * collect2.c (is_elf): Rename from this ... (is_elf_or_coff): ... to this, and recognize and allow i386 COFF object files in addition to ELF-formatted ones. (scan_prog_file): Caller updated. Also allow for LTO info marker symbol to be prefixed or not by an extra underscore. * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H. * config/i386/winnt.c: Also #include lto-streamer.h (i386_pe_asm_named_section): Specify 1-byte section alignment for LTO named sections. (i386_pe_asm_output_aligned_decl_common): Add comment. (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL. gcc/lto/ChangeLog: PR lto/42776 * Make-lang.in (LTO_OBJS): Use LTO_BINARY_READER instead of hardcoding 'lto-elf.o'. ($(LTO_EXE)): Use LTO_USE_LIBELF instead of hardcoding '-lelf'. * lto-coff.h: New file. * lto-coff.c: Likewise. gcc/testsuite/ChangeLog: PR lto/42776 * lib/lto.exp (lto_prune_vis_warns): New function. (lto-link-and-maybe-run): Call it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158762 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 88631ff66e6..73be7152037 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -200,6 +200,8 @@ default_use_cxa_atexit=no target_gtfiles= need_64bit_hwint= need_64bit_isa= +# Selects the object file format reader/writer used by LTO. +lto_binary_reader=lto-elf # Don't carry these over build->host->target. Please. xm_file= @@ -1324,6 +1326,7 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*) thread_file='posix' fi use_gcc_stdint=wrap + lto_binary_reader=lto-coff ;; i[34567]86-*-mingw* | x86_64-*-mingw*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" @@ -1391,6 +1394,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" default_use_cxa_atexit=yes use_gcc_stdint=wrap + lto_binary_reader=lto-coff case ${enable_threads} in "" | yes | win32) thread_file='win32' tmake_file="${tmake_file} i386/t-gthr-win32" -- cgit v1.2.1 From be52f08613679c8dd577f1658eaa5a1338b09d6b Mon Sep 17 00:00:00 2001 From: ro Date: Thu, 6 May 2010 18:47:18 +0000 Subject: gcc: * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from list of obsolete configurations. Disabled check for obsolete configurations. (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*. Removed support for previous versions. * config/mips/iris.h: Removed. * config/mips/iris5.h: Removed. * config/mips/iris6.h: Merged old iris.h contents. (TARGET_IRIX): Removed. (DRIVER_SELF_SPECS): Removed mabi=32. (IDENT_ASM_OP): Removed undef. (STARTFILE_SPEC): Removed mabi=32. (ENDFILE_SPEC): Likewise. (IRIX_SUBTARGET_LINK_SPEC): Likewise. (MACHINE_TYPE): Update for IRIX 6.5. * config/mips/mips.c (mips_build_builtin_va_list): Replaced TARGET_IRIX by TARGET_IRIX6. (mips_file_start): Likewise. (mips_output_external): Remove IRIX 5/6 O32 support. (mips_output_function_prologue): Likewise. * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by TARGET_IRIX6. (TARGET_CPU_CPP_BUILTINS): Likewise. (TARGET_IRIX): Removed. * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32. (MULTILIB_DIRNAMES): Removed 32. (MULTILIB_OSDIRNAMES): Removed ../lib. * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5. (Specific, mips-sgi-irix5): Document removal. (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal. Remove references to older IRIX 6 releases and the O32 ABI. gcc/ada: * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support. libstdc++-v3: * configure.host: Removed irix[1-6], irix[1-5].*, irix6.[0-4]* support. * config/os/irix/irix5.2: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159121 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 53 ++++++++++++++++------------------------------------- 1 file changed, 16 insertions(+), 37 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 73be7152037..6b5a3394947 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -208,18 +208,16 @@ xm_file= md_file= # Obsolete configurations. -case ${target} in - mips-sgi-irix5* \ - | mips-sgi-irix6.[0-4]* \ - ) - if test "x$enable_obsolete" != xyes; then - echo "*** Configuration ${target} is obsolete." >&2 - echo "*** Specify --enable-obsolete to build it anyway." >&2 - echo "*** Support will be REMOVED in the next major release of GCC," >&2 - echo "*** unless a maintainer comes forward." >&2 - exit 1 - fi;; -esac +#case ${target} in +# ) +# if test "x$enable_obsolete" != xyes; then +# echo "*** Configuration ${target} is obsolete." >&2 +# echo "*** Specify --enable-obsolete to build it anyway." >&2 +# echo "*** Support will be REMOVED in the next major release of GCC," >&2 +# echo "*** unless a maintainer comes forward." >&2 +# exit 1 +# fi;; +#esac # Unsupported targets list. Do not put an entry in this list unless # it would otherwise be caught by a more permissive pattern. The list @@ -1668,32 +1666,13 @@ mep-*-*) fi use_gcc_stdint=wrap ;; -mips-sgi-irix[56]*) - tm_file="elfos.h ${tm_file} mips/iris.h" - tmake_file="mips/t-iris mips/t-slibgcc-irix" +mips-sgi-irix6.5*) + tm_file="elfos.h ${tm_file} mips/iris6.h" + tmake_file="mips/t-iris mips/t-iris6 mips/t-slibgcc-irix" target_cpu_default="MASK_ABICALLS" - case ${target} in - *-*-irix5*) - tm_file="${tm_file} mips/iris5.h" - use_gcc_stdint=provide - ;; - - *-*-irix6*) - tm_file="${tm_file} mips/iris6.h" - tmake_file="${tmake_file} mips/t-iris6" - tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" - case ${target} in - *-*-irix6.[0-4]*) - use_gcc_stdint=provide - ;; - *-*-irix6.5*) - # Only IRIX Development Foundation 1.3 for IRIX 6.5 - # provides stdint.h. - use_gcc_stdint=wrap - ;; - esac - ;; - esac + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" + # Only IRIX Development Foundation 1.3 for IRIX 6.5 provides stdint.h. + use_gcc_stdint=wrap if test "x$stabs" = xyes then tm_file="${tm_file} dbx.h mips/dbxmdebug.h" -- cgit v1.2.1 From 0bf68cc9e2d5c88b60cca3256f3d424867e62608 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 7 May 2010 09:21:23 +0000 Subject: * config/mips/dbxmdebug.h: Remove. * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159147 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 6b5a3394947..e46cd733436 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1675,7 +1675,7 @@ mips-sgi-irix6.5*) use_gcc_stdint=wrap if test "x$stabs" = xyes then - tm_file="${tm_file} dbx.h mips/dbxmdebug.h" + tm_file="${tm_file} dbx.h" fi if test "x$gnu_ld" = xyes then -- cgit v1.2.1 From 23433d7293fea64ed743db3193d07473f2ac789f Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 7 May 2010 21:37:43 +0000 Subject: ChangeLog: * configure.ac (--enable-lto): Add x86_64-apple-darwin* as a platform that supports LTO. * configure: Regenerate. gcc/ChangeLog: * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add lto-macho as lto_binary_reader. * target.h (struct gcc_target): New hooks lto_start and lto_end. * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define. * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation in lto_start and lto_end calls. (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O magic numbers. (scan_prog_file): Update is_elf_or_coff call. * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document. * collect2.c (main): Fix enum comparison. * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end): Add prototypes. * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker. * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START and TARGET_ASM_LTO_END. * darwin.c: Include obstack.h and lto-streamer.h. (lto_section_names_offset, lto_section_names_obstack, lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static global variables. (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines. (darwin_asm_lto_start): New function. Redirect output to asm_out_file to a temporary file. (darwin_asm_lto_end): New function. Restore asm_out_file. (darwin_asm_named_section): For LTO sections, replace the name with the offset of the section name in a string table, and build this table. (darwin_file_start): Initialize global vars for LTO support. (darwin_file_end): If output to asm_out_file was redirected, append it to the proper asm_out_file here. Add the section names section. lto/ChangeLog: * lto.h (struct lto_file_struct): Document offset member. * lto-endian.h: New file. * lto-macho.h: New file. * lto-macho.c: New file. * Make-lang.in: Add rule for lto-macho.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159173 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index e46cd733436..5ea1b4d5802 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1077,11 +1077,13 @@ i[34567]86-*-darwin*) # support. with_cpu=${with_cpu:-generic} tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" + lto_binary_reader=lto-macho ;; x86_64-*-darwin*) with_cpu=${with_cpu:-generic} tmake_file="${tmake_file} t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" tm_file="${tm_file} ${cpu_type}/darwin64.h" + lto_binary_reader=lto-macho ;; i[34567]86-*-elf*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h" -- cgit v1.2.1 From aca9e986dc0434ad81b3043d60b2d2b123a0667a Mon Sep 17 00:00:00 2001 From: ktietz Date: Thu, 13 May 2010 12:36:59 +0000 Subject: 2010-05-13 Kai Tietz * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose t-mingw-w64 or t-mingw-w32 for multilib configuration. * config/i386/t-mingw-w32: New. * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159364 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 5ea1b4d5802..21433fc690a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1373,9 +1373,12 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) fi tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming" case ${target} in - *-w64-*) + x86_64-w64-*) tmake_file="${tmake_file} i386/t-mingw-w64" ;; + i[34567]86-w64-*) + tmake_file="${tmake_file} i386/t-mingw-w32" + ;; *) tmake_file="${tmake_file} i386/t-mingw32" ;; -- cgit v1.2.1 From 6fc76bb02fac69d05787ea749a9cf8230b59afed Mon Sep 17 00:00:00 2001 From: hjagasia Date: Fri, 14 May 2010 17:35:11 +0000 Subject: 2010-05-14 Harsha Jagasia * config.gcc: Add support for --with-cpu option for bdver1. * config/i386/i386.h (TARGET_BDVER1): New macro. (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL. (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL. Add SSE_PACKED_SINGLE_INSN_OPTIMAL. (TARGET_CPU_DEFAULT_NAMES): Add bdver1. (processor_type): Add PROCESSOR_BDVER1. * config/i386/i386.md: Add bdver1 as a new cpu attribute to match processor_type in config/i386/i386.h. Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of movapd when replacing movsd or movss for SSE and AVX. Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed xor instead of packed double/packed integer xor for SSE and AVX when moving a zero value. * config/i386/sse.md: Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of movapd/movdqa for SSE and AVX. Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single logical operations i.e and, or and xor instead of packed double logical operations for SSE and AVX. * config/i386/i386-c.c: (ix86_target_macros_internal): Add PROCESSOR_BDVER1. * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1. (has_fma4, has_xop): New. * config/i386/i386.c (bdver1_cost): New variable. (m_BDVER1): New macro. (m_AMD_MULTIPLE): Add m_BDVER1. (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen, x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx, x86_tune_use_simode_fiop, x86_tune_promote_qimode, x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8, x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency, x86_tune_sse_partial_reg_dependency, x86_tune_sse_unaligned_load_optimal, x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores, x86_tune_memory_mismatch_stall, x86_tune_use_ffreep, x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions, x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem, x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch): Enable/disable for bdver1. (processor_target_table): Add bdver1_cost. (cpu_names): Add bdver1. (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in processor_alias_table. (ix86_expand_vector_move_misalign): Change TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL. Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL. Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead of movupd/movdqu for SSE and AVX. (ix86_tune_issue_rate): Add PROCESSOR_BDVER1. (ix86_tune_adjust_cost): Add code for bdver1. (standard_sse_constant_opcode): Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead of packed double xor for SSE and AVX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159399 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 21433fc690a..da56fbecc20 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1139,7 +1139,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i need_64bit_hwint=yes need_64bit_isa=yes case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1148,7 +1148,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 + echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -1266,7 +1266,7 @@ i[34567]86-*-solaris2*) need_64bit_isa=yes use_gcc_stdint=wrap case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1275,7 +1275,7 @@ i[34567]86-*-solaris2*) ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 + echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -1346,7 +1346,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) if test x$enable_targets = xall; then tm_defines="${tm_defines} TARGET_BI_ARCH=1" case X"${with_cpu}" in - Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) + Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) ;; X) if test x$with_cpu_64 = x; then @@ -1355,7 +1355,7 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) ;; *) echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 - echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 + echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 exit 1 ;; esac @@ -2626,6 +2626,10 @@ case ${target} in ;; i686-*-* | i786-*-*) case ${target_noncanonical} in + bdver1-*) + arch=bdver1 + cpu=bdver1 + ;; amdfam10-*|barcelona-*) arch=amdfam10 cpu=amdfam10 @@ -2703,6 +2707,10 @@ case ${target} in ;; x86_64-*-*) case ${target_noncanonical} in + bdver1-*) + arch=bdver1 + cpu=bdver1 + ;; amdfam10-*|barcelona-*) arch=amdfam10 cpu=amdfam10 @@ -3109,8 +3117,8 @@ case "${target}" in ;; "" | x86-64 | generic | native \ | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \ - | opteron-sse3 | athlon-fx | amdfam10 | barcelona \ - | nocona | core2 | atom) + | opteron-sse3 | athlon-fx | bdver1 | amdfam10 \ + | barcelona | nocona | core2 | atom) # OK ;; *) -- cgit v1.2.1 From f64b48e2ead18a7376ef387176e4f1711be71e92 Mon Sep 17 00:00:00 2001 From: iains Date: Tue, 18 May 2010 08:12:56 +0000 Subject: add lto to powerpc-*darwin and enable for 32bit darwin Steven Bosscher ChangeLog: * configure.ac (--enable-lto): All *-apple-darwin* now support LTO. * configure: Regenerate. gcc/ChangeLog: * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add lto-macho as lto_binary_reader. * darwin.c (darwin_asm_named_section): Do not add assembler comment after .section directive; just print it before the directive instead. M gcc/config.gcc M gcc/config/darwin.c M ChangeLog M gcc/ChangeLog git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159527 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index da56fbecc20..2c4d1213c35 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1891,12 +1891,14 @@ powerpc-*-darwin*) *-darwin[0-6]*) ;; esac + lto_binary_reader=lto-macho extra_headers=altivec.h ;; powerpc64-*-darwin*) tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" extra_options="${extra_options} ${cpu_type}/darwin.opt" # We're omitting t-darwin8 to avoid building any multilibs + lto_binary_reader=lto-macho extra_headers=altivec.h ;; powerpc*-*-freebsd*) -- cgit v1.2.1 From 05157f42835c68da84a4e13b3ce1e3ca4731dfaa Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 19 May 2010 15:31:00 +0000 Subject: libgcc: * config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun assembler syntax. gcc: * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to pentiumpro on Solaris 8/x86 with Sun as. * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as hidden alias bug. (gcc_cv_as_ix86_quad): Check for .quad directive. * configure: Regenerate. * config.in: Regenerate. * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159569 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 2c4d1213c35..30c15ad116d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1225,7 +1225,19 @@ i[34567]86-*-solaris2*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h" # Set default arch_32 to pentium4, tune_32 to generic like the other # i386 targets, although config.guess defaults to i386-pc-solaris2*. - with_arch_32=${with_arch_32:-pentium4} + case ${target} in + *-*-solaris2.8*) + if test x$gas = xyes; then + with_arch_32=${with_arch_32:-pentium4} + else + # Solaris 8/x86 as cannot handle sse2. + with_arch_32=${with_arch_32:-pentiumpro} + fi + ;; + *) + with_arch_32=${with_arch_32:-pentium4} + ;; + esac with_tune_32=${with_tune_32:-generic} case ${target} in *-*-solaris2.1[0-9]*) -- cgit v1.2.1 From 27a909cfc87e908303cfe09638f72898fed77ab7 Mon Sep 17 00:00:00 2001 From: rsandifo Date: Thu, 20 May 2010 22:20:34 +0000 Subject: 2010-05-08 Richard Sandiford Jim Wilson gcc/ * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt. * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float for TARGET_NO_FLOAT. * config/mips/mips.c (mips_file_start): Expand conditional expression into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT. (mips_override_options): Move -mno-float override -msoft-float and -mhard-float. * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add Condition(TARGET_SUPPORTS_NO_FLOAT). * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set __mips_no_float here. (SUBTARGET_OVERRIDE_OPTIONS): Delete. (TARGET_SUPPORTS_NO_FLOAT): Define. * config/mips/sdemtk.opt: Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159642 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 30c15ad116d..06e694baded 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1760,7 +1760,6 @@ mips*-sde-elf*) # MIPS toolkit libraries. tm_file="$tm_file mips/sdemtk.h" tmake_file="$tmake_file mips/t-sdemtk" - extra_options="$extra_options mips/sdemtk.opt" case ${enable_threads} in "" | yes | mipssde) thread_file='mipssde' -- cgit v1.2.1 From 9afa47110005bfa410b8d078c393a484e98dd24a Mon Sep 17 00:00:00 2001 From: joel Date: Fri, 21 May 2010 14:56:02 +0000 Subject: 2010-05-19 Joel Sherrill * config.gcc (sparc64-*-rtems*): New target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159668 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 06e694baded..7318a945873 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2376,6 +2376,12 @@ sparc-*-rtems*) tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" extra_parts="crti.o crtn.o crtbegin.o crtend.o" ;; +sparc64-*-rtems*) + tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" + extra_options="${extra_options} sparc/little-endian.opt" + tmake_file="${tmake_file} sparc/t-crtfm t-rtems" + extra_parts="crtbegin.o crtend.o" + ;; sparc*-*-solaris2*) tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" case ${target} in -- cgit v1.2.1 From 191bb1037ec973130c8cda34a624e18ec5ef4084 Mon Sep 17 00:00:00 2001 From: iains Date: Tue, 25 May 2010 11:59:45 +0000 Subject: enable multilibs on powerpc64-apple-darwin * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC. * config/rs6000/t-darwin64: New. * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64, build crt2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159817 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 7318a945873..56f84e18c31 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1906,9 +1906,10 @@ powerpc-*-darwin*) extra_headers=altivec.h ;; powerpc64-*-darwin*) - tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" extra_options="${extra_options} ${cpu_type}/darwin.opt" - # We're omitting t-darwin8 to avoid building any multilibs + extra_parts="crt2.o" + tmake_file="t-darwin ${cpu_type}/t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" + tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" lto_binary_reader=lto-macho extra_headers=altivec.h ;; -- cgit v1.2.1 From 66fd9df95192d57d2a8720028f2b4ebd1aeff874 Mon Sep 17 00:00:00 2001 From: mkuvyrkov Date: Thu, 27 May 2010 11:54:48 +0000 Subject: Add support for Bionic C library gcc/ * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define macro. (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*. (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update. * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define. (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC. (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier to support multiple C libraries. Handle Bionic. (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,) (BIONIC_DYNAMIC_LINKER64): Define. (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Update. (TARGET_HAS_SINCOS): Enable for Bionic. * config/linux.opt: Rewrite to handle more than 2 C libraries. Make the last option specified on command line take effect. (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC. (mbionic): New. (mglibc, muclibc): Update. * config/alpha/linux-elf.h, config/rs6000/linux64.h, * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use DEFAULT_LIBC. * doc/invoke.texi (-mglibc, -muclibc): Update. (-mbionic): Document. gcc/testsuite/ * gcc.dg/glibc-uclibc-1.c, gcc.dg/glibc-uclibc-2.c: Remove, no longer necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159917 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 56f84e18c31..d3fcaca39ca 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -508,23 +508,29 @@ case ${target} in *-*-gnu*) tmake_file="$tmake_file t-gnu";; esac - # glibc / uclibc switch. uclibc isn't usable for GNU/Hurd and neither for - # GNU/k*BSD. + # Common C libraries. + tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3" + # glibc / uclibc / bionic switch. + # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. case $target in *linux*) extra_options="$extra_options linux.opt";; *) tm_defines="$tm_defines OPTION_GLIBC=1";; esac - case ${target} in + case $target in + *-*-*android*) + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC" + ;; *-*-*uclibc*) - tm_defines="${tm_defines} UCLIBC_DEFAULT=1" + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC" ;; *) - tm_defines="${tm_defines} UCLIBC_DEFAULT=0" + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" ;; esac - # Assume that glibc or uClibc are being used and so __cxa_atexit is provided. + # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit + # is provided. default_use_cxa_atexit=yes use_gcc_tgmath=no use_gcc_stdint=wrap @@ -826,7 +832,7 @@ bfin*-elf*) bfin*-uclinux*) tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h glibc-stdint.h bfin/uclinux.h" tmake_file=bfin/t-bfin-uclinux - tm_defines="${tm_defines} UCLIBC_DEFAULT=1" + tm_defines="${tm_defines} DEFAULT_LIBC=LIBC_UCLIBC" extra_options="${extra_options} linux.opt" use_collect2=no ;; @@ -907,7 +913,7 @@ moxie-*-uclinux*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h" extra_parts="crti.o crtn.o crtbegin.o crtend.o" tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp" - tm_defines="${tm_defines} UCLIBC_DEFAULT=1" + tm_defines="${tm_defines} DEFAULT_LIBC=LIBC_UCLIBC" extra_options="${extra_options} linux.opt" ;; h8300-*-rtems*) @@ -1632,7 +1638,7 @@ m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux default_m68k_cpu=68020 default_cf_cpu=5206 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h" - tm_defines="${tm_defines} MOTOROLA=1 UCLIBC_DEFAULT=1" + tm_defines="${tm_defines} MOTOROLA=1 DEFAULT_LIBC=LIBC_UCLIBC" extra_options="${extra_options} linux.opt" tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" ;; -- cgit v1.2.1 From f1b7ead939b87d87b7d459a6039926246ea8dd05 Mon Sep 17 00:00:00 2001 From: mkuvyrkov Date: Thu, 27 May 2010 12:06:58 +0000 Subject: Support compilation for Android platform. Reimplement -mandroid. * config.gcc (*linux*): Include linux-android.h and linux-android.opt. (*android*): Set ANDROID_DEFAULT. (arm*-*-linux*): Include linux-android.h. (arm*-*-eabi*): Don't include previous -mandroid implementation. * config/arm/eabi.h: Remove, move Android-specific parts ... * config/linux-android.h: ... here. New file. * config/arm/eabi.opt: Rename to ... * config/linux-android.opt: ... this. (mandroid): Allow -mno-android option. Initialize based on ANDROID_DEFAULT. * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC): Move logic to corresponding LINUX_TARGET_* macros. (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate. * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,) (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and Android definitions. (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID. * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159918 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index d3fcaca39ca..022997a0a4c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -534,6 +534,22 @@ case ${target} in default_use_cxa_atexit=yes use_gcc_tgmath=no use_gcc_stdint=wrap + # Add Android userspace support to Linux targets. + case $target in + *linux*) + tm_file="$tm_file linux-android.h" + extra_options="$extra_options linux-android.opt" + ;; + esac + # Enable compilation for Android by default for *android* targets. + case $target in + *-*-*android*) + tm_defines="$tm_defines ANDROID_DEFAULT=1" + ;; + *) + tm_defines="$tm_defines ANDROID_DEFAULT=0" + ;; + esac ;; *-*-netbsd*) tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic" @@ -717,7 +733,7 @@ arm*-*-netbsd*) use_collect2=yes ;; arm*-*-linux*) # ARM GNU/Linux with ELF - tm_file="dbxelf.h elfos.h linux.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" + tm_file="dbxelf.h elfos.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" case $target in arm*b-*) tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" @@ -774,9 +790,8 @@ arm*-*-eabi* | arm*-*-symbianelf* ) tmake_file="arm/t-arm arm/t-arm-elf" case ${target} in arm*-*-eabi*) - tm_file="$tm_file arm/eabi.h newlib-stdint.h" + tm_file="$tm_file newlib-stdint.h" tmake_file="${tmake_file} arm/t-bpabi" - extra_options="${extra_options} arm/eabi.opt" use_gcc_stdint=wrap ;; arm*-*-symbianelf*) -- cgit v1.2.1 From e2e8925445612ffa3fa3b70942382a492a5a4737 Mon Sep 17 00:00:00 2001 From: iains Date: Fri, 28 May 2010 15:11:08 +0000 Subject: 2010-05-28 Iain Sandoe * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159979 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 022997a0a4c..fbee45e6cbc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -408,6 +408,7 @@ esac # Common parts for widely ported systems. case ${target} in *-*-darwin*) + tmake_file="t-darwin ${cpu_type}/t-darwin" tm_file="${tm_file} darwin.h" case ${target} in *-*-darwin9*) @@ -419,7 +420,6 @@ case ${target} in esac tm_file="${tm_file} ${cpu_type}/darwin.h" tm_p_file="${tm_p_file} darwin-protos.h" - tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" target_gtfiles="\$(srcdir)/config/darwin.c" extra_options="${extra_options} darwin.opt" c_target_objs="${c_target_objs} darwin-c.o" @@ -1097,12 +1097,12 @@ i[34567]86-*-darwin*) # then this file using that to set --with-cpu=i386 which has no -m64 # support. with_cpu=${with_cpu:-generic} - tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" + tmake_file="${tmake_file} t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" lto_binary_reader=lto-macho ;; x86_64-*-darwin*) with_cpu=${with_cpu:-generic} - tmake_file="${tmake_file} t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" + tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" tm_file="${tm_file} ${cpu_type}/darwin64.h" lto_binary_reader=lto-macho ;; @@ -1923,13 +1923,14 @@ powerpc-*-darwin*) *-darwin[0-6]*) ;; esac + tmake_file="${tmake_file} t-slibgcc-darwin" lto_binary_reader=lto-macho extra_headers=altivec.h ;; powerpc64-*-darwin*) extra_options="${extra_options} ${cpu_type}/darwin.opt" extra_parts="crt2.o" - tmake_file="t-darwin ${cpu_type}/t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" + tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin" tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" lto_binary_reader=lto-macho extra_headers=altivec.h -- cgit v1.2.1 From 4e38d1504f2157a6d54a12d0e296479e6ecdd49f Mon Sep 17 00:00:00 2001 From: mkuvyrkov Date: Tue, 1 Jun 2010 09:52:10 +0000 Subject: * config/arm/t-linux-androideabi: New. * config.gcc (arm*-*-linux-androideabi): Include multilib configuration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160095 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index fbee45e6cbc..3b74b689a52 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -744,6 +744,12 @@ arm*-*-linux*) # ARM GNU/Linux with ELF arm*-*-linux-*eabi) tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h" tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" + # Define multilib configuration for arm-linux-androideabi. + case ${target} in + *-androideabi) + tmake_file="$tmake_file arm/t-linux-androideabi" + ;; + esac # The BPABI long long divmod functions return a 128-bit value in # registers r0-r3. Correctly modeling that requires the use of # TImode. -- cgit v1.2.1 From 283681bbcbeb2515caade5ebdf3af24d538d5e10 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 12 Jun 2010 07:44:51 +0000 Subject: gcc/ * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*): Add crtfastmath.o to extra_parts. * config/mips/crtfastmath.c: New. * config/mips/linux.h (ENDFILE_SPEC): New. libgcc/ * config.host (mips64*-*-linux*, mips*-*-linux*): Add mips/t-crtfm to tmake_file. Add crtfastmath.o to extra_parts. * config/mips/t-crtfm: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160655 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 3b74b689a52..7ae54cca5fc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1750,6 +1750,7 @@ mips64*-*-linux* | mipsisa64*-*-linux*) tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" ;; esac + extra_parts="$extra_parts crtfastmath.o" gnu_ld=yes gas=yes test x$with_llsc != x || with_llsc=yes @@ -1764,6 +1765,7 @@ mips*-*-linux*) # Linux MIPS, either endian. mipsisa32*) tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" esac + extra_parts="$extra_parts crtfastmath.o" test x$with_llsc != x || with_llsc=yes ;; mips*-*-openbsd*) -- cgit v1.2.1 From 81a8818862721af30258bb7f58e62e58c8fce961 Mon Sep 17 00:00:00 2001 From: dje Date: Mon, 28 Jun 2010 13:22:47 +0000 Subject: 2010-06-28 Philipp Tomsich * config.gcc (powerpc*-*-*): Handle titan. * config/rs6000/rs6000.c (titan_cost): New costs. (rs6000_override_options): Add "titan" to processor_target_table. Add Titan to branch alignment logic. Correctly set rs6000_cost for titan. * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md". * config/rs6000/titan.md: New file. * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161491 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 7ae54cca5fc..6dc074d8a88 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3286,7 +3286,7 @@ case "${target}" in | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ - | a2 | e300c[23] | 854[08] | e500mc | e500mc64 \ + | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | titan\ | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) # OK ;; -- cgit v1.2.1 From b56481add5397e285a48fbb54b7ab140974a68b9 Mon Sep 17 00:00:00 2001 From: kkojima Date: Sun, 4 Jul 2010 22:07:29 +0000 Subject: PR target/44531 * config.gcc (sh*-*-*): Use regular expressions instead of the 'i' modifier for sed substitutions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161807 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 6dc074d8a88..c39b990f379 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2335,7 +2335,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" - sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^sh/m/i' -e 's/ sh/ m/gi' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` + sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` for sh_multilib in ${sh_multilibs}; do case ${sh_multilib} in m1 | m2 | m2e | m3 | m3e | \ -- cgit v1.2.1 From 949e49d01f90c6b4e707c8f9a25dee608764e29a Mon Sep 17 00:00:00 2001 From: ro Date: Mon, 12 Jul 2010 11:32:42 +0000 Subject: gcc: * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to pentiumpro on Solaris 8 and 9/x86. * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as. Document SSE/SSE2 support. * doc/sourcebuild.texi (Effective-Target Keywords): Document sse. gcc/testsuite: * lib/target-supports.exp (check_effective_target_sse): New proc. * gcc.target/i386/sol2-check.h: New file. * gcc.target/i386/sse-check.h (ILL_INSN, ILL_INSN_LEN): Define. Include sol2-check.h. (main) Only run do_test () if sol2_check (). * gcc.target/i386/sse2-check.h: Likewise. * gcc.target/i386/sse3-check.h: Likewise. * gcc.dg/vect/tree-vect.h (check_vect) [__i386__ || __x86_64__] [__sun__ && __svr4__]: Execute SSE2 instruction. * gcc.target/i386/math-torture/math-torture.exp: Only add options with -msse to MATH_TORTURE_OPTIONS if check_effective_target_sse. * g++.dg/debug/dwarf2/const2b.C: Use dg-require-effective-target sse. * g++.dg/ext/vector14.C: Likewise. * g++.dg/other/mmintrin.C: Likewise. * gcc.dg/20020418-1.c: Likewise. * gcc.dg/debug/dwarf2/const-2b.c: Likewise. * gcc.dg/format/ms_unnamed-1.c: Likewise. * gcc.dg/format/unnamed-1.c: Likewise. Adapt dg-warning line number. * gcc.dg/graphite/pr40281.c: Likewise. * gcc.dg/pr32176.c: Likewise. * gcc.dg/pr40550.c: Likewise. * gcc.dg/prefetch-loop-arrays-1.c: Likewise. * gcc.dg/torture/pr36891.c: Likewise. * gcc.target/i386/20020218-1.c: Likewise. * gcc.target/i386/20020523.c: Likewise. * gcc.target/i386/abi-1.c: Likewise. * gcc.target/i386/brokensqrt.c: Likewise. * gcc.target/i386/fastcall-sseregparm.c: Likewise. * gcc.target/i386/pr13366.c: Likewise. * gcc.target/i386/pr13685.c: Likewise. * gcc.target/i386/pr24306.c: Likewise. * gcc.target/i386/pr31486.c: Likewise. * gcc.target/i386/pr32065-1.c: Likewise. * gcc.target/i386/pr32065-2.c: Likewise. * gcc.target/i386/pr32389.c: Likewise. * gcc.target/i386/pr38824.c: Likewise. * gcc.target/i386/pr38931.c: Likewise. * gcc.target/i386/pr39592-1.c: Likewise. * gcc.target/i386/pr43766.c: Likewise. * gcc.target/i386/recip-divf.c: Likewise. * gcc.target/i386/recip-sqrtf.c: Likewise. * gcc.target/i386/recip-vec-divf.c: Likewise. * gcc.target/i386/recip-vec-sqrtf.c: Likewise. * gcc.target/i386/sse-1.c: Likewise. * gcc.target/i386/sse-16.c: Likewise. * gcc.target/i386/sse-2.c: Likewise. * gcc.target/i386/sse-20.c: Likewise. * gcc.target/i386/sse-3.c: Likewise. * gcc.target/i386/sse-7.c: Likewise. * gcc.target/i386/sse-9.c: Likewise. * gcc.target/i386/sse-addps-1.c: Likewise. * gcc.target/i386/sse-addss-1.c: Likewise. * gcc.target/i386/sse-andnps-1.c: Likewise. * gcc.target/i386/sse-andps-1.c: Likewise. * gcc.target/i386/sse-cmpss-1.c: Likewise. * gcc.target/i386/sse-comiss-1.c: Likewise. * gcc.target/i386/sse-comiss-2.c: Likewise. * gcc.target/i386/sse-comiss-3.c: Likewise. * gcc.target/i386/sse-comiss-4.c: Likewise. * gcc.target/i386/sse-comiss-5.c: Likewise. * gcc.target/i386/sse-comiss-6.c: Likewise. * gcc.target/i386/sse-copysignf-vec.c: Likewise. * gcc.target/i386/sse-cvtsi2ss-1.c: Likewise. * gcc.target/i386/sse-cvtsi2ss-2.c: Likewise. * gcc.target/i386/sse-cvtss2si-1.c: Likewise. * gcc.target/i386/sse-cvtss2si-2.c: Likewise. * gcc.target/i386/sse-cvttss2si-1.c: Likewise. * gcc.target/i386/sse-cvttss2si-2.c: Likewise. * gcc.target/i386/sse-divps-1.c: Likewise. * gcc.target/i386/sse-divss-1.c: Likewise. * gcc.target/i386/sse-init-v4hi-1.c: Likewise. * gcc.target/i386/sse-init-v4sf-1.c: Likewise. * gcc.target/i386/sse-maxps-1.c: Likewise. * gcc.target/i386/sse-maxss-1.c: Likewise. * gcc.target/i386/sse-minps-1.c: Likewise. * gcc.target/i386/sse-minss-1.c: Likewise. * gcc.target/i386/sse-movaps-1.c: Likewise. * gcc.target/i386/sse-movaps-2.c: Likewise. * gcc.target/i386/sse-movhlps-1.c: Likewise. * gcc.target/i386/sse-movhps-1.c: Likewise. * gcc.target/i386/sse-movhps-2.c: Likewise. * gcc.target/i386/sse-movlhps-1.c: Likewise. * gcc.target/i386/sse-movmskps-1.c: Likewise. * gcc.target/i386/sse-movntps-1.c: Likewise. * gcc.target/i386/sse-movss-1.c: Likewise. * gcc.target/i386/sse-movss-2.c: Likewise. * gcc.target/i386/sse-movss-3.c: Likewise. * gcc.target/i386/sse-movups-1.c: Likewise. * gcc.target/i386/sse-movups-2.c: Likewise. * gcc.target/i386/sse-mulps-1.c: Likewise. * gcc.target/i386/sse-mulss-1.c: Likewise. * gcc.target/i386/sse-orps-1.c: Likewise. * gcc.target/i386/sse-rcpps-1.c: Likewise. * gcc.target/i386/sse-recip-vec.c: Likewise. * gcc.target/i386/sse-recip.c: Likewise. * gcc.target/i386/sse-rsqrtps-1.c: Likewise. * gcc.target/i386/sse-set-ps-1.c: Likewise. * gcc.target/i386/sse-sqrtps-1.c: Likewise. * gcc.target/i386/sse-subps-1.c: Likewise. * gcc.target/i386/sse-subss-1.c: Likewise. * gcc.target/i386/sse-ucomiss-1.c: Likewise. * gcc.target/i386/sse-ucomiss-2.c: Likewise. * gcc.target/i386/sse-ucomiss-3.c: Likewise. * gcc.target/i386/sse-ucomiss-4.c: Likewise. * gcc.target/i386/sse-ucomiss-5.c: Likewise. * gcc.target/i386/sse-ucomiss-6.c: Likewise. * gcc.target/i386/sse-unpckhps-1.c: Likewise. * gcc.target/i386/sse-unpcklps-1.c: Likewise. * gcc.target/i386/sse-xorps-1.c: Likewise. * gcc.target/i386/ssefn-1.c: Likewise. * gcc.target/i386/ssefn-3.c: Likewise. * gcc.target/i386/sseregparm-1.c: Likewise. * gcc.target/i386/stackalign/return-3.c: Likewise. * gcc.target/i386/vectorize1.c: Likewise. * gcc.target/i386/vperm-v4sf-1.c: Likewise. * gcc.target/i386/xorps-sse.c: Likewise. * gfortran.dg/pr28158.f90: Likewise. * gfortran.dg/pr30667.f: Likewise. * gnat.dg/loop_optimization7.adb: Likewise. * gnat.dg/sse_nolib.adb: Likewise. libgfortran: * config/fpu-387.h [__sun__ && __svr4__] Include , . (sigill_caught): New. (sigill_hdlr): New function (has_sse) [__sun__ && __svr4__]: Check if SSE instruction causes SIGILL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162073 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index c39b990f379..31ea32e56f0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1253,13 +1253,10 @@ i[34567]86-*-solaris2*) # Set default arch_32 to pentium4, tune_32 to generic like the other # i386 targets, although config.guess defaults to i386-pc-solaris2*. case ${target} in - *-*-solaris2.8*) - if test x$gas = xyes; then - with_arch_32=${with_arch_32:-pentium4} - else - # Solaris 8/x86 as cannot handle sse2. - with_arch_32=${with_arch_32:-pentiumpro} - fi + *-*-solaris2.[89]*) + # Solaris 8 and 9/x86 cannot execute SSE/SSE2 instructions by + # default. + with_arch_32=${with_arch_32:-pentiumpro} ;; *) with_arch_32=${with_arch_32:-pentium4} -- cgit v1.2.1 From 3d0ed9e774a1901376b881feec82ca486ce52613 Mon Sep 17 00:00:00 2001 From: mkuvyrkov Date: Mon, 19 Jul 2010 20:05:46 +0000 Subject: * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants to top level. * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific definitions ... * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here. New macro. * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162315 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 31ea32e56f0..12b245d219d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -405,6 +405,9 @@ case ${target} in ;; esac +# Common C libraries. +tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3" + # Common parts for widely ported systems. case ${target} in *-*-darwin*) @@ -508,8 +511,6 @@ case ${target} in *-*-gnu*) tmake_file="$tmake_file t-gnu";; esac - # Common C libraries. - tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3" # glibc / uclibc / bionic switch. # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. case $target in -- cgit v1.2.1 From ac0366be253034fafb4a374e07261fbfc1711060 Mon Sep 17 00:00:00 2001 From: ktietz Date: Fri, 23 Jul 2010 18:32:25 +0000 Subject: 2010-07-23 Kai Tietz PR target/41943 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New. (stmp-int-hdrs): Prefix/postfix headers by include_next. * config.gcc (user_headers_inc_next_pre): New. (user_headers_inc_next_post): Likewise. (*-w64-mingw*): Use for float.h post-fixing, and for stddef.h/stdarg.h pre-fixing by include_next. * configure.ac (user_headers_inc_next_post): New. (user_headers_inc_next_pre): New. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162479 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.gcc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 12b245d219d..eef0942c532 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -101,6 +101,12 @@ # extra_headers List of used header files from the directory # config/${cpu_type}. # +# user_headers_inc_next_pre +# List of header file names of internal gcc header +# files, which should be prefixed by an include_next. +# user_headers_inc_next_post +# List of header file names of internal gcc header +# files, which should be postfixed by an include_next. # use_gcc_tgmath If set, add tgmath.h to the list of used header # files. # @@ -171,6 +177,8 @@ out_file= tmake_file= extra_headers= +user_headers_inc_next_pre= +user_headers_inc_next_post= use_gcc_tgmath=yes use_gcc_stdint=none extra_passes= @@ -1379,6 +1387,8 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) # This makes the logic if mingw's or the w64 feature set has to be used case ${target} in *-w64-*) + user_headers_inc_next_post="${user_headers_inc_next_post} float.h" + user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h" tm_file="${tm_file} i386/mingw-w64.h" if test x$enable_targets = xall; then tm_defines="${tm_defines} TARGET_BI_ARCH=1" -- cgit v1.2.1