public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/6836: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib
@ 2002-05-27 10:36 spencer
  0 siblings, 0 replies; 3+ messages in thread
From: spencer @ 2002-05-27 10:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: spencer


>Number:         6836
>Category:       other
>Synopsis:       crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 27 10:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brad Spencer
>Release:        gcc-3.1
>Organization:
>Environment:
netra-map1:~$ uname -a 
SunOS netra-map1 5.8 Generic_108528-09 sun4u sparc SUNW,UltraAX-i2
netra-map1:~$ gcc -v
Reading specs from /opt/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../gcc-3.1/configure --with-dwarf2 --enable-languages=c,c++ --enable-threads=single --disable-shared --with-gnu-as --with-gnu-ld --with-as=/opt/bin/as --with-ld=/opt/bin/ld --prefix=/opt/gcc-3.1
Thread model: single
gcc version 3.1
>Description:
When I first configured gcc-3.1 for this machine, the gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.1/sparcv9/crtfastmath.o file was not installed.  I investigated and discovered that it was not being built as a 64-bit object when building gcc as a 32-bit program (but capable of building 64-bit and 32-bit applications).

It looks like a Makefile issue.  See below.
>How-To-Repeat:
Configure and build gcc-3.1 out of the box...
>Fix:
This patch appeared to fix the problem.

diff -c gcc-3.1/gcc/config/sparc/t-crtfm ../gcc-3.1/gcc/config/sparc/t-crtfm
*** gcc-3.1/gcc/config/sparc/t-crtfm    Fri Apr  5 03:42:44 2002
--- ../gcc-3.1/gcc/config/sparc/t-crtfm Thu May 16 15:55:44 2002
***************
*** 1,4 ****
  EXTRA_PARTS += crtfastmath.o
  
! crtfastmath.o: $(srcdir)/config/sparc/crtfastmath.c $(GCC_PASSES)
!       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtfastmath.o $(srcdir)/config/sparc/crtfastmath.c
--- 1,4 ----
  EXTRA_PARTS += crtfastmath.o
  
! $(T)crtfastmath.o: $(srcdir)/config/sparc/crtfastmath.c $(GCC_PASSES)
!       $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(T)crtfastmath.o $(srcdir)/config/sparc/crtfastmath.c
diff -c gcc-3.1/gcc/config/sparc/t-sol2-64 ../gcc-3.1/gcc/config/sparc/t-sol2-64
*** gcc-3.1/gcc/config/sparc/t-sol2-64  Wed May  8 20:18:34 2002
--- ../gcc-3.1/gcc/config/sparc/t-sol2-64       Thu May 16 15:46:07 2002
***************
*** 5,10 ****
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
  
! EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o gmon.o crt1.o crti.o crtn.o gcrt1.o
  
  SHLIB_SLIBDIR_SUFFIXES = sparcv9:/sparcv9 sparcv7:
--- 5,10 ----
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
  
! EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o gmon.o crt1.o crti.o crtn.o gcrt1.o crtfastmath.o
  
  SHLIB_SLIBDIR_SUFFIXES = sparcv9:/sparcv9 sparcv7:
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: other/6836: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib
@ 2002-06-21  4:36 ro
  0 siblings, 0 replies; 3+ messages in thread
From: ro @ 2002-06-21  4:36 UTC (permalink / raw)
  To: davem, gcc-bugs, gcc-prs, spencer

Synopsis: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib

State-Changed-From-To: analyzed->closed
State-Changed-By: ro
State-Changed-When: Fri Jun 21 04:29:08 2002
State-Changed-Why:
    Fixed for 3.1.1 and 3.2:
    
    http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01847.html
    http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01748.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6836


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

* Re: other/6836: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib
@ 2002-06-20 18:56 davem
  0 siblings, 0 replies; 3+ messages in thread
From: davem @ 2002-06-20 18:56 UTC (permalink / raw)
  To: davem, gcc-bugs, gcc-prs, nobody, spencer

Synopsis: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib

Responsible-Changed-From-To: unassigned->davem
Responsible-Changed-By: davem
Responsible-Changed-When: Thu Jun 20 18:20:54 2002
Responsible-Changed-Why:
    I'll track this.
State-Changed-From-To: open->analyzed
State-Changed-By: davem
State-Changed-When: Thu Jun 20 18:20:54 2002
State-Changed-Why:
    Patch pending from Rainer Orth.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6836


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

end of thread, other threads:[~2002-06-21 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-27 10:36 other/6836: crtfastmath.o is not built as 64-bit with sparc-sun-solaris2.8 32-bit and 64-bit multilib spencer
2002-06-20 18:56 davem
2002-06-21  4:36 ro

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).