Cannot bootstrap gcc compiler on main line

H . J . Lu hjl@lucon.org
Wed Sep 12 09:31:00 GMT 2001


On Wed, Sep 12, 2001 at 09:13:36AM -0700, H . J . Lu wrote:
> On Wed, Sep 12, 2001 at 07:00:34PM +0200, Peter Schmid wrote:
> > 
> > auto-host.h does indeed define HAVE_GAS_SHF_MERGE:
> > 
> > /* Define if your assembler supports marking sections with SHF_MERGE flag. */
> > #define HAVE_GAS_SHF_MERGE 1
> > 
> 
> # echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
> # as  -o conftest.o conftest.s
> conftest.s: Assembler messages:
> conftest.s:1: Warning: Unrecognized .section attribute: want a,m,s,w,x
> conftest.s:1: Warning: Unrecognized .section attribute: want a,m,s,w,x
> # echo $?
> 0
> 

Here is a patch.


H.J.
----
2001-09-12  H.J. Lu <hjl@gnu.org>

	* configure.in (gcc_cv_as_shf_merge): Check if there is no
	message from the assembler.
	* configure: Rebuild.

--- gcc/configure.in.MS	Wed Sep 12 09:18:49 2001
+++ gcc/configure.in	Wed Sep 12 09:24:48 2001
@@ -1496,7 +1496,8 @@ if test x$gcc_cv_gas_major_version != x 
 elif test x$gcc_cv_as != x; then
 	# Check if we support SHF_MERGE sections
 	echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
-	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+	gcc_cv_as_shf_merge_output=`$gcc_cv_as -o conftest.o conftest.s 2>&1`
+	if test $? -eq 0 -a -z "$gcc_cv_as_shf_merge_output"; then
 		gcc_cv_as_shf_merge=yes
 	fi
 	rm -f conftest.s conftest.o



More information about the Gcc mailing list