From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13445 invoked by alias); 15 Jan 2014 17:45:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 13430 invoked by uid 89); 15 Jan 2014 17:45:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 15 Jan 2014 17:45:02 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3UWN-00021K-Rp for gcc-patches@gcc.gnu.org; Wed, 15 Jan 2014 12:45:00 -0500 Received: from oarmail.oarcorp.com ([67.63.146.244]:27115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3UWN-000219-Le for gcc-patches@gcc.gnu.org; Wed, 15 Jan 2014 12:44:55 -0500 Received: from [192.168.1.163] (192.168.1.163) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.2.255.0; Wed, 15 Jan 2014 11:43:54 -0600 Message-ID: <52D6C914.90408@oarcorp.com> Date: Wed, 15 Jan 2014 17:45:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Sebastian Huber , "gcc-patches@gcc.gnu.org" CC: "rearnsha@arm.com" , Chris Johns Subject: Re: [PATCH v2] RTEMS: Generalize t-rtems usage References: <1389032877-27286-1-git-send-email-sebastian.huber@embedded-brains.de> <1389113903-27910-1-git-send-email-sebastian.huber@embedded-brains.de> In-Reply-To: <1389113903-27910-1-git-send-email-sebastian.huber@embedded-brains.de> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Windows XP X-Received-From: 67.63.146.244 X-SW-Source: 2014-01/txt/msg00902.txt.bz2 This patch is now committed. --joel On 1/7/2014 10:58 AM, Sebastian Huber wrote: > v2: Do not override an existing tmake_file in (arm*-*-uclinux*eabi*). > > The ARM changes are already approved: > > http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00254.html > > The rest is RTEMS specific. > > gcc/ChangeLog > 2014-01-07 Sebastian Huber > > * config.gcc (*-*-rtems*): Add t-rtems to tmake_file. > (arm*-*-uclinux*eabi*): Do not override an existing tmake_file. > (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise. > (arm*-*-rtems*): Use t-rtems from existing tmake_file. > (avr-*-rtems*): Likewise. > (bfin*-rtems*): Likewise. > (moxie-*-rtems*): Likewise. > (h8300-*-rtems*): Likewise. > (i[34567]86-*-rtems*): Likewise. > (lm32-*-rtems*): Likewise. > (m32r-*-rtems*): Likewise. > (m68k-*-rtems*): Likewise. > (microblaze*-*-rtems*): Likewise. > (mips*-*-rtems*): Likewise. > (powerpc-*-rtems*): Likewise. > (sh-*-rtems*): Likewise. > (sparc-*-rtems*): Likewise. > (sparc64-*-rtems*): Likewise. > (v850-*-rtems*): Likewise. > (m32c-*-rtems*): Likewise. > --- > gcc/config.gcc | 37 ++++++++++++++++++------------------- > 1 file changed, 18 insertions(+), 19 deletions(-) > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index bd0fb63..4d0a3f1 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -775,6 +775,7 @@ case ${target} in > case ${enable_threads} in > yes) thread_file='rtems' ;; > esac > + tmake_file="${tmake_file} t-rtems" > extra_options="${extra_options} rtems.opt" > default_use_cxa_atexit=yes > use_gcc_stdint=wrap > @@ -1015,7 +1016,7 @@ arm*-*-linux-*) # ARM GNU/Linux with ELF > ;; > arm*-*-uclinux*eabi*) # ARM ucLinux > tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h" > - tmake_file="arm/t-arm arm/t-arm-elf arm/t-bpabi" > + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi" > tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" > # The EABI requires the use of __cxa_atexit. > default_use_cxa_atexit=yes > @@ -1027,7 +1028,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) > esac > default_use_cxa_atexit=yes > tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" > - tmake_file="arm/t-arm arm/t-arm-elf" > + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf" > case ${target} in > arm*-*-eabi*) > tm_file="$tm_file newlib-stdint.h" > @@ -1036,7 +1037,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) > ;; > arm*-*-rtems*) > tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" > - tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" > + tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems-eabi" > ;; > arm*-*-symbianelf*) > tm_file="${tm_file} arm/symbian.h" > @@ -1049,7 +1050,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) > ;; > avr-*-rtems*) > tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h" > - tmake_file="avr/t-avr avr/t-multilib t-rtems avr/t-rtems" > + tmake_file="${tmake_file} avr/t-avr avr/t-multilib avr/t-rtems" > extra_gcc_objs="driver-avr.o avr-devices.o" > extra_objs="avr-devices.o avr-log.o" > ;; > @@ -1081,7 +1082,7 @@ bfin*-linux-uclibc*) > ;; > bfin*-rtems*) > tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h" > - tmake_file="t-rtems bfin/t-rtems" > + tmake_file="${tmake_file} bfin/t-rtems" > ;; > bfin*-*) > tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" > @@ -1155,11 +1156,11 @@ moxie-*-uclinux*) > tmake_file="${tmake_file} moxie/t-moxie" > ;; > moxie-*-rtems*) > - tmake_file="${tmake_file} moxie/t-moxie t-rtems" > + tmake_file="${tmake_file} moxie/t-moxie" > tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h" > ;; > h8300-*-rtems*) > - tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems" > + tmake_file="${tmake_file} h8300/t-h8300 h8300/t-rtems" > tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h" > ;; > h8300-*-elf*) > @@ -1500,7 +1501,7 @@ i[34567]86-*-nto-qnx*) > ;; > i[34567]86-*-rtems*) > tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h" > - tmake_file="${tmake_file} i386/t-rtems t-rtems" > + tmake_file="${tmake_file} i386/t-rtems" > ;; > i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) > tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file}" > @@ -1748,7 +1749,6 @@ lm32-*-elf*) > lm32-*-rtems*) > tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h" > tmake_file="${tmake_file} lm32/t-lm32" > - tmake_file="${tmake_file} t-rtems" > tmake_file="${tmake_file} lm32/t-rtems" > ;; > lm32-*-uclinux*) > @@ -1763,7 +1763,7 @@ m32rle-*-elf*) > ;; > m32r-*-rtems*) > tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h" > - tmake_file="m32r/t-m32r t-rtems" > + tmake_file="${tmake_file} m32r/t-m32r" > ;; > m32r-*-linux*) > tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h" > @@ -1854,7 +1854,7 @@ m68k-*-linux*) # Motorola m68k's running GNU/Linux > m68k-*-rtems*) > default_m68k_cpu=68020 > default_cf_cpu=5206 > - tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs" > + tmake_file="${tmake_file} m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff m68k/t-rtems m68k/t-mlibs" > tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h" > tm_defines="${tm_defines} MOTOROLA=1" > ;; > @@ -1904,7 +1904,7 @@ microblaze*-*-rtems*) > c_target_objs="${c_target_objs} microblaze-c.o" > cxx_target_objs="${cxx_target_objs} microblaze-c.o" > tmake_file="${tmake_file} microblaze/t-microblaze" > - tmake_file="${tmake_file} t-rtems microblaze/t-rtems" > + tmake_file="${tmake_file} microblaze/t-rtems" > ;; > microblaze*-*-elf) > case $target in > @@ -2079,7 +2079,7 @@ mips64orion-*-elf* | mips64orionel-*-elf*) > ;; > mips*-*-rtems*) > tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" > - tmake_file="mips/t-elf t-rtems mips/t-rtems" > + tmake_file="${tmake_file} mips/t-elf mips/t-rtems" > ;; > mips-wrs-vxworks) > tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h" > @@ -2236,7 +2236,7 @@ powerpc-*-eabi*) > powerpc-*-rtems*) > tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" > extra_options="${extra_options} rs6000/sysv4.opt" > - tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" > + tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" > ;; > powerpc*-*-linux*) > tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" > @@ -2607,7 +2607,7 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ > tmake_file="$tmake_file t-sysroot-suffix" > ;; > sh-*-rtems*) > - tmake_file="sh/t-sh t-rtems sh/t-rtems" > + tmake_file="${tmake_file} sh/t-sh sh/t-rtems" > tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h" > ;; > sh-wrs-vxworks) > @@ -2630,7 +2630,7 @@ sparc-*-elf*) > ;; > sparc-*-rtems*) > tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" > - tmake_file="sparc/t-sparc sparc/t-elf sparc/t-rtems t-rtems" > + tmake_file="${tmake_file} sparc/t-sparc sparc/t-elf sparc/t-rtems" > ;; > sparc-*-linux*) > tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h" > @@ -2684,7 +2684,7 @@ sparc64-*-elf*) > sparc64-*-rtems*) > tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" > extra_options="${extra_options}" > - tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64 t-rtems" > + tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64" > ;; > sparc64-*-linux*) > tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h" > @@ -2761,7 +2761,7 @@ v850-*-rtems*) > tm_file="dbxelf.h elfos.h v850/v850.h" > tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h" > tmake_file="${tmake_file} v850/t-v850" > - tmake_file="${tmake_file} t-rtems v850/t-rtems" > + tmake_file="${tmake_file} v850/t-rtems" > use_collect2=no > c_target_objs="v850-c.o" > cxx_target_objs="v850-c.o" > @@ -2834,7 +2834,6 @@ am33_2.0-*-linux*) > ;; > m32c-*-rtems*) > tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h" > - tmake_file="${tmake_file} t-rtems" > c_target_objs="m32c-pragma.o" > cxx_target_objs="m32c-pragma.o" > ;; -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985