public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 3.1 won't built along with binutils 2.12 on sparc-*-*
@ 2002-04-30  0:18 Alexandre Oliva
  2002-04-30 16:24 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2002-04-30  0:18 UTC (permalink / raw)
  To: rth; +Cc: gcc

Richard,

This patch:

2002-04-24  Richard Henderson  <rth@redhat.com>

	* configure.in (HAVE_GAS_HIDDEN): Detect sparc binutils 2.12
	linker bug.

has broken all of my GCC+binutils builds on sparc-solaris2.[567] and
sparc-linux-gnu.  The problem is that the newly-introduced code
assumes gcc_cv_as is the assembler that is going to be used by GCC,
but in the case we're going to use the `newly built as', that is yet
to be built at gcc's configure time, we can't perform any such tests.

It turned out that, on Solaris, gcc_cv_as had been set to
/usr/ccs/bin/as, that doesn't accept `-KPIC' (it must be spelled `-K
PIC', with a blank).  Even then, it did not support hidden.
On GNU/Linux, gcc_cv_as was an old version of GNU as that didn't
support .hidden either, so configure bailed out with 

configure: error: [internal error -- confused about linking]

(because conftest.o had not been created)


I suggest moving the test for .hidden into the `if x$gcc_cv_as != x'
block, fixing the spelling of `-K PIC' and/or getting the code to
tolerate assembler failures, and perhaps bumping up the version
numbers in the version-based test for the case of builtin in a unified
tree.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc 3.1 won't built along with binutils 2.12 on sparc-*-*
  2002-04-30  0:18 gcc 3.1 won't built along with binutils 2.12 on sparc-*-* Alexandre Oliva
@ 2002-04-30 16:24 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-04-30 16:24 UTC (permalink / raw)
  To: aoliva; +Cc: rth, gcc

   From: Alexandre Oliva <aoliva@redhat.com>
   Date: 30 Apr 2002 03:25:28 -0300
   
   I suggest moving the test for .hidden into the `if x$gcc_cv_as != x'
   block, fixing the spelling of `-K PIC' and/or getting the code to
   tolerate assembler failures, and perhaps bumping up the version
   numbers in the version-based test for the case of builtin in a unified
   tree.

This has to be reimplemented for other reasons anyways (it is not
Sparc specific, this binutils problem, it turns out), see PR
target/6466 which is assigned to Richard currently.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-30 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-30  0:18 gcc 3.1 won't built along with binutils 2.12 on sparc-*-* Alexandre Oliva
2002-04-30 16:24 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).