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

spencer@aol.net spencer@aol.net
Mon May 27 10:06:00 GMT 2002


>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:



More information about the Gcc-bugs mailing list