This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3] Backport boehm-gc/configure.host from mainline
- From: Roger Sayle <roger at eyesopen dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 21 Dec 2003 07:17:44 -0700 (MST)
- Subject: [3.3] Backport boehm-gc/configure.host from mainline
I've just tried to bootstrap gcc 3.3.3 on ia64-hp-hpux11.22 (with
GNU as) and unfortunately the build fails in boehm_gc with the
following error:
/home/roger/GCC/gcc-3.3/clean/gcc/xgcc -B/home/roger/GCC/gcc-3.3/clean/gcc/
-B/usr/local/ia64-hp-hpux11.22/bin/ -B/usr/local/ia64-hp-hpux11.22/lib/
-isystem /usr/local/ia64-hp-hpux11.22/include -DSILENT=1 -DNO_SIGNALS=1
-DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I. -I../../../gcc/boehm-gc
-I../../../gcc/boehm-gc/include +ESdbgasm -I././targ-include
-I./../../../gcc/boehm-gc/./libc/include -O2 -g -O2 -c
../../../gcc/boehm-gc/allchblk.c -fPIC -DPIC -o .libs/allchblk.o
xgcc: cannot specify -o with -c or -S and multiple compilations
make[3]: *** [allchblk.lo] Error 1
The problem is that we're passing the +ESgdbasm flag to gcc which
doesn't understand it, and treats it like a file name.
Fortunately, I'd previously fixed this problem on mainline with the
patch: http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00395.html
2003-07-25 Roger Sayle <roger@eyesopen.com>
* configure.host: Only use +ESdbgasm when using the HPUX native
compiler on PA-Risc. It isn't recognized by GCC and is silently
ignored by HP's compilers on ia64.
The following patch backports this patch by synchronizing configure.host
between the branch and mainline. In addition to the above patch, this
carries over additional minor bug-fixes. For example, boehm_gc_cflags
was the incorrect variable on mips-tx39-* and mipstx39-unknown-*.
The following patch has been tested on ia64-hp-hpux11.22 where a 3.3.3
bootstrap now proceeds further, but not to completion. I'll try another
bug fix or two before proposing that its easier to just disable java on
this platform.
Ok to apply to the gcc-3_3-branch?
Many thanks in advance,
2003-12-21 Roger Sayle <roger@eyesopen.com>
* configure.host: Backport/synchronize from mainline.
Index: configure.host
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/configure.host,v
retrieving revision 1.5
diff -c -3 -p -r1.5 configure.host
*** configure.host 18 Aug 2001 01:04:42 -0000 1.5
--- configure.host 21 Dec 2003 03:46:31 -0000
***************
*** 14,33 ****
# host The configuration host
# host_cpu The configuration host CPU
# target_optspace --enable-target-optspace ("yes", "no", "")
# It sets the following shell variables:
# gc_cflags Special CFLAGS to use when building
# We should set -fexceptions if we are using gcc and might be used
# inside something like gcj. This is the zeroth approximation:
! case "$host" in
! *-*-linux* )
! gc_cflags=-fexceptions
! ;;
! *-*-hpux* )
! gc_cflags=+ESdbgasm
! ;;
! esac
case "${target_optspace}:${host}" in
yes:*)
--- 14,41 ----
# host The configuration host
# host_cpu The configuration host CPU
# target_optspace --enable-target-optspace ("yes", "no", "")
+ # GCC should be "yes" if using gcc
# It sets the following shell variables:
# gc_cflags Special CFLAGS to use when building
+ gc_cflags=""
+
# We should set -fexceptions if we are using gcc and might be used
# inside something like gcj. This is the zeroth approximation:
! if test :"$GCC": = :yes: ; then
! gc_cflags="${gc_cflags} -fexceptions"
! else
! case "$host" in
! hppa*-*-hpux* )
! if test :$GCC: != :"yes": ; then
! gc_cflags="${gc_flags} +ESdbgasm"
! fi
! # :TODO: actaully we should check using Autoconf if
! # the compiler supports this option.
! ;;
! esac
! fi
case "${target_optspace}:${host}" in
yes:*)
*************** esac
*** 46,52 ****
case "${host}" in
mips-tx39-*|mipstx39-unknown-*)
! boehm_gc_cflags="${boehm_gc_cflags} -G 0"
;;
*)
;;
--- 54,60 ----
case "${host}" in
mips-tx39-*|mipstx39-unknown-*)
! gc_cflags="${gc_cflags} -G 0"
;;
*)
;;
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833