This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgomp bootstrap failure on i486-linux with --enable-targets=all


On Tue, Dec 12, 2006 at 03:29:04PM +0100, Matthias Klose wrote:
> current trunk, configured for --enable-targets=all i486-linux-gnu
> fails to build in libgomp, calling -m64 -arch=i486.  The applied patch
> only adds these flags when not building for -m64.
> 
> Are the i486 specific flags needed at all now that the default is to
> tune for generic?

The important part is -march=i486 and that is needed.  Without that cmpxchg
can't be used.

> --- libgomp/testsuite/lib/libgomp-dg.exp.orig	2006-04-10 23:23:11.000000000 +0200
> +++ libgomp/testsuite/lib/libgomp-dg.exp	2006-10-01 13:47:01.955690500 +0200
> @@ -130,9 +130,10 @@
>      }
>  
>      # We use atomic operations in the testcases to validate results.
> -    if [istarget i?86-*-*] {
> -	lappend ALWAYS_CFLAGS "additional_flags=-march=i486"
> -    }
> +    # Debian: configured for i486, breaks testsuite with -m64.
> +    #if [istarget i?86-*-*] {
> +    #	lappend ALWAYS_CFLAGS "additional_flags=-march=i486"
> +    #}

This part of the patch is wrong.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]