This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to fix bootstrap on hppa64-hp-hpux11.23 with HP compiler
On Sun, 23 Jan 2005, Zack Weinberg wrote:
> isn't GCC, anyway. Therefore, I suggest that you try modifying
> genconditions.c so that the file it generates is mostly elided when
> not compiled with GCC - something like
How about the following? Passes bootstrap on hppa64-hp-hpux11.23.
2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
PR bootstrap/18058
* genconditions.c (write_header, write_conditions): Elide file if
not GCC >= 3.0.1.
Index: genconditions.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genconditions.c,v
retrieving revision 1.13
diff -u -r1.13 genconditions.c
--- genconditions.c 3 Aug 2004 23:30:44 -0000 1.13
+++ genconditions.c 23 Jan 2005 19:53:37 -0000
@@ -1,5 +1,5 @@
/* Process machine description and calculate constant conditions.
- Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
@@ -86,6 +86,9 @@
puts ("\
#include \"system.h\"\n\
+#if GCC_VERSION < 3001\n\
+#include \"dummy-conditions.c\"\n\
+#else\n\
#include \"coretypes.h\"\n\
#include \"tm.h\"\n\
#include \"rtl.h\"\n\
@@ -176,7 +179,7 @@
printf ("const size_t n_insn_conditions = %lu;\n",
(unsigned long) htab_elements (condition_table));
- puts ("const int insn_elision_unavailable = 0;");
+ puts ("const int insn_elision_unavailable = 0;\n#endif");
}
int
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)