This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to get m68k-unknown-linux-gnu working (cpp recursion?)
- To: Franz dot Sirl-kernel at lauterbach dot com
- Subject: Re: Patch to get m68k-unknown-linux-gnu working (cpp recursion?)
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 12 Nov 2001 13:28:57 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org, schwab at suse dot de
> From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
>
> Uh-oh, I just see m68k.h uses MOTOROLA in a #ifdef, so this change
> doesn't work as expected, or? Did you try to diff the output of my
> cmp_config shell script? You shouldn't see a single change before
> (with "" replaced by <>) and after your change change.
>
> Hmm, can such a define moved into xm_defines? That could also used to
> replace the t-linux-gnulibc1 makefile fragment.
> Franz.
If the tm_file change isn't correct/acceptable, I think it would be
simpler and less invasive to just do this. If there are no
objections, I'll install it later tonight or tomorrow as "obvious".
2001-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
recursion.
diff -rup orig/egcs-CVS20011111/gcc/config/m68k/linux.h egcs-CVS20011111/gcc/config/m68k/linux.h
--- orig/egcs-CVS20011111/gcc/config/m68k/linux.h Tue Nov 6 16:30:38 2001
+++ egcs-CVS20011111/gcc/config/m68k/linux.h Mon Nov 12 00:44:58 2001
@@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */
#include "elfos.h"
#include "svr4.h"
-#include "linux.h" /* some common stuff */
+#include <linux.h> /* some common stuff */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (68k GNU/Linux with ELF)");