gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: 4.1 PATCH: Fix Solaris/x86 bootstrap failure with ASM_OUTPUT_ALIGNED

Subject: Re: 4.1 PATCH: Fix Solaris/x86 bootstrap failure with ASM_OUTPUT_ALIGNED_BSS redefinition
From: Mark Mitchell
Date: Wed, 10 Aug 2005 16:10:01 -0700
Rainer Orth wrote:
This patch

        http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01593.html

broke bootstrap on Solaris 10/x86 due to a redefinition of
ASM_OUTPUT_ALIGNED_BSS in config/i386/x86-64.h:

stage1/xgcc -Bstage1/ -B/vol/gcc/share/i386-pc-solaris2.10/bin/ -c   -g -O2 
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition 
-Wmissing-format-attribute -Werror -fno-common   -DHAVE_CONFIG_H 
-DGENERATOR_FILE    -I. -Ibuild -I/vol/gnu/src/gcc/gcc-dist/gcc 
-I/vol/gnu/src/gcc/gcc-dist/gcc/build 
-I/vol/gnu/src/gcc/gcc-dist/gcc/../include 
-I/vol/gnu/src/gcc/gcc-dist/gcc/../libcpp/include -I/vol/gnu/obj/gmp-4.1.3/mpfr 
-I/vol/gnu/obj/gmp-4.1.3 \
 -o build/gengtype.o /vol/gnu/src/gcc/gcc-dist/gcc/gengtype.c
In file included from ./tm.h:18,
                 from /vol/gnu/src/gcc/gcc-dist/gcc/gengtype.c:24:
/vol/gnu/src/gcc/gcc-dist/gcc/config/i386/x86-64.h:54:1: error: 
"ASM_OUTPUT_ALIGNED_BSS" redefined
In file included from ./tm.h:14,
                 from /vol/gnu/src/gcc/gcc-dist/gcc/gengtype.c:24:
/vol/gnu/src/gcc/gcc-dist/gcc/config/i386/sysv4.h:99:1: error: this is the 
location of the previous definition
make[2]: *** [build/gengtype.o] Error 1

The following trivial patch fixes this and allows bootstrap to continue
(fails again later building libjava, but this is unrelated and fixed by a
separate patch to be submitted shortly).

Ok for mainline?

OK.

--
Mark Mitchell
CodeSourcery, LLC
mark@xxxxxxxxxxxxxxxx
(916) 791-8304

<Prev in Thread] Current Thread [Next in Thread>