This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Ada] PR ada/5911 Enable multilib build for Ada
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Laurent GUERBY <laurent at guerby dot net>
- Cc: Arnaud Charlet <charlet at adacore dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>, Samuel Tardieu <sam at rfc1149 dot net>
- Date: Thu, 18 Sep 2008 09:48:48 -0500
- Subject: Re: [PATCH][Ada] PR ada/5911 Enable multilib build for Ada
- References: <1220171449.19905.106.camel@localhost> <20080831103650.GA90344@adacore.com> <1220199325.19905.140.camel@localhost> <20080831161920.GA56425@adacore.com> <1220201371.19905.146.camel@localhost> <20080831170214.GA59251@adacore.com> <20080831170530.GA60589@adacore.com> <1221746948.16991.294.camel@localhost>
I can't build the trunk native on Fedora 9, 32 bit with the
native gcc:
[joel@iceland svn]$ type gcc
gcc is /usr/bin/gcc
[joel@iceland svn]$ gcc --version
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -fno-common
-DHAVE_CONFIG_H -I.. -I. -Iada -I/home/joel/work-gnat/svn//gcc/gcc
-I/home/joel/work-gnat/svn//gcc/gcc/ada
-I/home/joel/work-gnat/svn//gcc/gcc/../include
-I/home/joel/work-gnat/svn//gcc/gcc/../libcpp/include
-I/home/joel/work-gnat/svn//gcc/gcc/../libdecnumber
-I/home/joel/work-gnat/svn//gcc/gcc/../libdecnumber/bid
-I../libdecnumber
/home/joel/work-gnat/svn//gcc/gcc/ada/gcc-interface/utils2.c -o ada/utils2.o
/home/joel/work-gnat/svn//gcc/gcc/ada/gcc-interface/utils.c: In function
‘create_subprog_decl’:
/home/joel/work-gnat/svn//gcc/gcc/ada/gcc-interface/utils.c:1979:
warning: implicit declaration of function ‘DECL_INLINE’
/home/joel/work-gnat/svn//gcc/gcc/ada/gcc-interface/utils.c: In function
‘end_subprog_body’:
/home/joel/work-gnat/svn//gcc/gcc/ada/gcc-interface/utils.c:2237: error:
lvalue required as left operand of assignment
I doubt Laurent's patch broke this. Can you guys build?
--joel
Laurent GUERBY wrote:
Yes, system-linux-sparcv9.ads would be good if that's what you're proposing.
Here is what I tested successfully on x86_64-linux and sparc-linux (with
a small patch from Eric and --with-cpu=v8 to match what debian does:
32bits default and 64bits multilib).
Joel provided powerpc-rtems results here:
http://gcc.gnu.org/ml/gcc-testresults/2008-09/msg00209.html
As recommanded by Paolo I'll wait until sunday to commit.
Laurent
2008-09-18 Laurent Guerby <laurent@guerby.net>
Paolo Bonzini <bonzini@gnu.org>
PR ada/5911
* Makefile.in (all, install, mostlyclean, clean, distclean): Add
multilib handling.
* configure.ac: Add multilib handling.
* configure: Regenerate.
2008-09-18 Laurent Guerby <laurent@guerby.net>
PR ada/5911
* gcc-interface/Makefile.in: Add multilib handling for x86_64
and sparc.
* system-linux-sparcv9.ads: New file.
--
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