Re: serious libgcc regression added recently

2011-11-04 Thread David Miller
From: Jakub Jelinek Date: Thu, 3 Nov 2011 09:22:51 +0100 > I think much better would be to handle sparc*/s390*/powerpc* differently > here, just using #ifdef __LP64__ test. i?86/x86_64 is different because > of the third weirdo multilib option. I just tested and committed the following, it seem

Re: serious libgcc regression added recently

2011-11-03 Thread David Miller
From: Jakub Jelinek Date: Thu, 3 Nov 2011 09:22:51 +0100 > On Wed, Nov 02, 2011 at 11:41:08PM -0400, David Miller wrote: >> --- a/libgcc/configure.ac >> +++ b/libgcc/configure.ac >> @@ -255,11 +255,12 @@ AC_CACHE_CHECK([whether assembler supports CFI >> directives], [libgcc_cv_cfi], >>[libgc

Re: serious libgcc regression added recently

2011-11-03 Thread Joel Sherrill
On 11/02/2011 05:30 PM, David Miller wrote: From: Joel Sherrill Date: Wed, 2 Nov 2011 16:29:16 -0500 Is this similar to what I just got for sparc-rtems when compiling libgcc2 with -mcpu=v8? /tmp/cczMc4jN.s: Assembler messages: /tmp/cczMc4jN.s:16: Error: Hardware capability "mul32" not enabled

Re: serious libgcc regression added recently

2011-11-03 Thread Jakub Jelinek
On Wed, Nov 02, 2011 at 11:41:08PM -0400, David Miller wrote: > --- a/libgcc/configure.ac > +++ b/libgcc/configure.ac > @@ -255,11 +255,12 @@ AC_CACHE_CHECK([whether assembler supports CFI > directives], [libgcc_cv_cfi], >[libgcc_cv_cfi=yes], >[libgcc_cv_cfi=no])]) > > -# Check 32bit or

Re: serious libgcc regression added recently

2011-11-03 Thread Paolo Bonzini
On 11/03/2011 04:41 AM, David Miller wrote: From: "Joseph S. Myers" Date: Thu, 3 Nov 2011 01:21:35 + (UTC) What is new is that you can now put tests in libgcc/configure.ac such as the "Check 32bit or 64bit for x86." one, and select t-* files based on those tests - whereas in the gcc/ direct

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: "Joseph S. Myers" Date: Thu, 3 Nov 2011 01:21:35 + (UTC) > What is new is that you can now put tests in libgcc/configure.ac > such as the "Check 32bit or 64bit for x86." one, and select t-* > files based on those tests - whereas in the gcc/ directory there is > no possibility at all for

Re: serious libgcc regression added recently

2011-11-02 Thread Joseph S. Myers
On Wed, 2 Nov 2011, David Miller wrote: > > ${host} is the *target* when configuring target libraries. > > It doesn't represent the 'target' we're generating code for in > a multilib instance so we can conditionalize off of it correctly. > > The only way sparc/t-softfp can be added to tmake is i

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: "Joseph S. Myers" Date: Thu, 3 Nov 2011 00:22:49 + (UTC) > On Wed, 2 Nov 2011, David Miller wrote: > >> Actually the problem is that libgcc/config.host checks ${host} >> to decide whether to append config/sparc/t-softmul to the tmake >> variable. > > ${host} is the *target* when confi

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: Andrew Pinski Date: Wed, 2 Nov 2011 16:40:13 -0700 > On Wed, Nov 2, 2011 at 4:28 PM, David Miller wrote: >> +LIB1ASMSRC = `if test x$$($(CC) -print-multi-os-directory) \ >> +                       = x../lib64; then echo sparc/lb1spc.S; fi` >> +LIB1ASMFUNCS = `if test x$$($(CC) -print-multi

Re: serious libgcc regression added recently

2011-11-02 Thread Joseph S. Myers
On Wed, 2 Nov 2011, David Miller wrote: > Is this the way differences between multilib cases are going to be > handled now in libgcc, with these backtick shell conditionals that (of > all things) looks at the destination directory? > > What if I want to put 64-bit libraries in a different locatio

Re: serious libgcc regression added recently

2011-11-02 Thread Joseph S. Myers
On Wed, 2 Nov 2011, David Miller wrote: > Actually the problem is that libgcc/config.host checks ${host} > to decide whether to append config/sparc/t-softmul to the tmake > variable. ${host} is the *target* when configuring target libraries. -- Joseph S. Myers jos...@codesourcery.com

Re: serious libgcc regression added recently

2011-11-02 Thread Andrew Pinski
On Wed, Nov 2, 2011 at 4:28 PM, David Miller wrote: > +LIB1ASMSRC = `if test x$$($(CC) -print-multi-os-directory) \ > +                       = x../lib64; then echo sparc/lb1spc.S; fi` > +LIB1ASMFUNCS = `if test x$$($(CC) -print-multi-os-directory) \ > +                       = x../lib64; then ech

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: David Miller Date: Wed, 02 Nov 2011 18:43:52 -0400 (EDT) > So t-softmul gets appended anyways, and this causes us to try and > build config/sparc/lb1spc.S for the 64-bit libgcc which we should > never do. I tried the patch below but it just results in syntax errors in the Makefile. Is thi

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: David Miller Date: Wed, 02 Nov 2011 18:30:56 -0400 (EDT) > From: Joel Sherrill > Date: Wed, 2 Nov 2011 16:29:16 -0500 > >> Is this similar to what I just got for sparc-rtems when compiling >> libgcc2 with -mcpu=v8? >> >> /tmp/cczMc4jN.s: Assembler messages: >> /tmp/cczMc4jN.s:16: Error:

Re: serious libgcc regression added recently

2011-11-02 Thread David Miller
From: Joel Sherrill Date: Wed, 2 Nov 2011 16:29:16 -0500 > Is this similar to what I just got for sparc-rtems when compiling > libgcc2 with -mcpu=v8? > > /tmp/cczMc4jN.s: Assembler messages: > /tmp/cczMc4jN.s:16: Error: Hardware capability "mul32" not enabled for > "smul". > /tmp/cczMc4jN.s:18:

Re: serious libgcc regression added recently

2011-11-02 Thread Joel Sherrill
On 11/02/2011 03:36 PM, David Miller wrote: My sparc-linux-gnu builds with --enable-targets=all is failing with: ../../../../gcc/libgcc/config/sparc/lb1spc.S: Assembler messages: ../../../../gcc/libgcc/config/sparc/lb1spc.S:124: Error: detected global register use not covered by .register pseud

serious libgcc regression added recently

2011-11-02 Thread David Miller
My sparc-linux-gnu builds with --enable-targets=all is failing with: ../../../../gcc/libgcc/config/sparc/lb1spc.S: Assembler messages: ../../../../gcc/libgcc/config/sparc/lb1spc.S:124: Error: detected global register use not covered by .register pseudo-op ../../../../gcc/libgcc/config/sparc/lb1s