Subject: Re: Gcc configure bug
To: None <>
From: Martin Husemann <>
List: tech-toolchain
Date: 11/17/2005 10:17:56
Ok, after some comments from Nick I looked at it again.

With the current state of config.gcc there is no good way to get what
we want with $target_cpu_default for sparc*. Since this is a lost battle
and we hopefully will get a newer compiler (that does this all different)
sometime soon, how about this patch? It should fix the problem and keep
command line semantics.


RCS file: /cvsroot/src/gnu/dist/gcc/gcc/,v
retrieving revision 1.4
diff -u -r1.4
---	10 Feb 2004 12:56:21 -0000	1.4
+++	17 Nov 2005 09:13:45 -0000
@@ -880,8 +880,10 @@
 # For the host machine, we save the xm_file variable as host_xm_file;
 # then we decode the target machine and forget everything else
 # that came from the host machine.
 for machine in $build $host $target; do
 	. ${srcdir}/config.gcc
+	with_cpu="$arg_with_cpu"
 extra_objs="${host_extra_objs} ${extra_objs}"