aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-01-23 19:22:01 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2005-01-23 19:22:01 +0000
commit9fcdd8917caba77d188f6facf1623100318cba43 (patch)
treee1398ce8b4f5f98a45b8f38df417d486bb273c79 /gcc
parent6d77cdc3aab2d3a3ae6a5bc19db953a53833f5ab (diff)
downloadgcc-9fcdd8917caba77d188f6facf1623100318cba43.zip
gcc-9fcdd8917caba77d188f6facf1623100318cba43.tar.gz
gcc-9fcdd8917caba77d188f6facf1623100318cba43.tar.bz2
re PR bootstrap/18058 (Bootstrap fails with non-GCC compilers)
config: * warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do anything for non-GCC compilers. libcpp: * configure: Regenerate. gcc: PR bootstrap/18058 * recog.c (recog_memoized): Don't define if GENERATOR_FILE. * ggc-none.c (ggc_free): Define. From-SVN: r94123
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ggc-none.c8
-rw-r--r--gcc/recog.h6
3 files changed, 18 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 73d2510..b8e4a16 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR bootstrap/18058
+ * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
+ * ggc-none.c (ggc_free): Define.
+
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
* cse.c (max_reg, max_insn_uid): Remove.
diff --git a/gcc/ggc-none.c b/gcc/ggc-none.c
index 0cc0c4a..54b7d15 100644
--- a/gcc/ggc-none.c
+++ b/gcc/ggc-none.c
@@ -1,5 +1,5 @@
/* Null garbage collection for the GNU compiler.
- Copyright (C) 1998, 1999, 2000, 2003, 2004
+ Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GCC.
@@ -67,3 +67,9 @@ ggc_realloc_stat (void *x, size_t size MEM_STAT_DECL)
{
return xrealloc (x, size);
}
+
+void
+ggc_free (void *p)
+{
+ free (p);
+}
diff --git a/gcc/recog.h b/gcc/recog.h
index 3e88fad5..0c340cc 100644
--- a/gcc/recog.h
+++ b/gcc/recog.h
@@ -1,5 +1,5 @@
/* Declarations for interface to insn recognizer and insn-output.c.
- Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
+ Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GCC.
@@ -99,7 +99,9 @@ extern int offsettable_address_p (int, enum machine_mode, rtx);
extern int mode_dependent_address_p (rtx);
extern int recog (rtx, rtx, int *);
+#ifndef GENERATOR_FILE
static inline int recog_memoized (rtx insn);
+#endif
extern void add_clobbers (rtx, int);
extern int added_clobbers_hard_reg_p (int);
extern void insn_extract (rtx);
@@ -120,6 +122,7 @@ extern rtx peephole2_insns (rtx, rtx, int *);
extern int store_data_bypass_p (rtx, rtx);
extern int if_test_bypass_p (rtx, rtx);
+#ifndef GENERATOR_FILE
/* Try recognizing the instruction INSN,
and return the code number that results.
Remember the code so that repeated calls do not
@@ -136,6 +139,7 @@ recog_memoized (rtx insn)
INSN_CODE (insn) = recog (PATTERN (insn), insn, 0);
return INSN_CODE (insn);
}
+#endif
/* Nonzero means volatile operands are recognized. */
extern int volatile_ok;