|
|
Thanks alot again. I was helping one of a developer to build and
install this old gcc. Also, Should I copy the whole file and name to
"patch"?
So the steps should be like this?
1) cd /usr/local/src
2) tar zxf gcc-3.2.3.tar.gz
3) cd ..
4) mkdir gcc-3.2.3
5) cd gcc-3.2.3
6) ../src/gcc-3.2.3/configure --prefix=/usr/local/gcc-3.2.3/
7) patch -p0 < <patchfile>
8) make
9) make install
Index: read-rtl.c
===================================================================
--- read-rtl.c (revision 131336)
+++ read-rtl.c (working copy)
@@ -659,7 +659,7 @@
{
ungetc (c, infile);
list_counter++;
- obstack_ptr_grow (&vector_stack, (PTR) read_rtx
(infile));
+ obstack_ptr_grow (&vector_stack, read_rtx (infile));
}
if (list_counter > 0)
{
Index: system.h
===================================================================
--- system.h (revision 131336)
+++ system.h (working copy)
@@ -578,6 +578,7 @@
#define really_call_calloc calloc
#define really_call_realloc realloc
+
#if (GCC_VERSION >= 3000)
/* Note autoconf checks for prototype declarations and includes
@@ -589,7 +590,9 @@
#undef realloc
#undef calloc
#undef strdup
+#if ! (defined(FLEX_SCANNER) || defined(YYBISON) ||
defined(YYBYACC))
#pragma GCC poison malloc realloc calloc strdup
+#endif
/* Old target macros that have moved to the target hooks structure.
*/
#pragma GCC poison ASM_OPEN_PAREN
ASM_CLOSE_PAREN \
@@ -628,4 +631,11 @@
#endif /* GCC >= 3.0 */
+#if defined(FLEX_SCANNER) || defined(YYBISON) || defined(YYBYACC)
+/* Flex and bison use malloc and realloc. Yuk. Note that this
means
+ really_call_* cannot be used in a .l or .y file. */
+#define malloc xmalloc
+#define realloc xrealloc
+#endif
+
#endif /* ! GCC_SYSTEM_H */
|
|