This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix gcc 3.1 build failure linking cc1plus on PA
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Fix gcc 3.1 build failure linking cc1plus on PA
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 11 Jul 2001 14:21:55 -0400 (EDT)
This fixes a breakage that resulted from Neil Booth's
`Target FUNCTION_PROLOGUE and FUNCTION_EPILOGUE' patch. Bootstrapped and
checked under hppa1.1-hp-hpux10.20. There is an issue with these
warnings which cause quite a few testsuite failures:
Executing on host: /xxx/gnu/gcc-3.1/objdir/gcc/g++ -B/xxx/gnu/gcc-3.1/objdir/gcc/ -nostdinc++ -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src/.libs -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -ggdb3 -DDEBUG_ASSERT -nostdinc++ -I/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include -I/xxx/gnu/gcc-3.1/libstdc++-v3/include -I/xxx/gnu/gcc-3.1/libstdc++-v3/include/std -I/xxx/gnu/gcc-3.1/libstdc++-v3/include/c_std -I/xxx/gnu/gcc-3.1/libstdc++-v3/libsupc++ -I/xxx/gnu/gcc-3.1/libstdc++-v3/libio -I/xxx/gnu/gcc-3.1/libstdc++-v3/testsuite -I/xxx/gnu/gcc-3.1/libstdc++-v3/include/backward -I/xxx/gnu/gcc-3.1/libstdc++-v3/include/ext /xxx/gnu/gcc-3.1/libstdc++-v3/testsuite/17_intro/header_cassert.cc -DDEBUG_ASSERT -lm -fPIC -o ./header_cassert (timeout = 300)
cc1plus: warning: changing search order for system directory "/usr/local/hppa1.1-hp-hpux10.20/include"
cc1plus: warning: as it has already been specified as a system directory
output is:
cc1plus: warning: changing search order for system directory "/usr/local/hppa1.1-hp-hpux10.20/include"
cc1plus: warning: as it has already been specified as a system directory
However, I don't think this is related to the patch.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (pa_output_function_prologue): Delete prototype. Make function
extern.
* pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
pa_output_function_prologue.
* pa-protos.h (pa_output_function_prologue): New prototype.
--- pa.c.orig Mon Jul 9 17:17:36 2001
+++ pa.c Tue Jul 10 11:18:35 2001
@@ -66,7 +66,6 @@
static rtx store_reg PARAMS ((int, int, int));
static rtx load_reg PARAMS ((int, int, int));
static rtx set_reg_plus_d PARAMS ((int, int, int));
-static void pa_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
static void pa_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
/* Save the operands last given to a compare for use when we
@@ -2876,7 +2875,7 @@
to do a "save" insn. The decision about whether or not
to do this is made in regclass.c. */
-static void
+void
pa_output_function_prologue (file, size)
FILE *file;
HOST_WIDE_INT size ATTRIBUTE_UNUSED;
--- pa.h.orig Mon Jul 9 17:17:36 2001
+++ pa.h Tue Jul 10 11:09:14 2001
@@ -871,7 +871,7 @@
#define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
{ const char *target_name = XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0); \
STRIP_NAME_ENCODING (target_name, target_name); \
- output_function_prologue (FILE, 0); \
+ pa_output_function_prologue (FILE, 0); \
if (VAL_14_BITS_P (DELTA)) \
fprintf (FILE, "\tb %s\n\tldo %d(%%r26),%%r26\n", target_name, DELTA); \
else \
--- pa-protos.h.orig Fri Jul 6 16:50:42 2001
+++ pa-protos.h Tue Jul 10 11:15:56 2001
@@ -124,6 +124,9 @@
extern int insn_refs_are_delayed PARAMS ((rtx));
#endif /* RTX_CODE */
+/* Prototype function used in macro ASM_OUTPUT_MI_THUNK. */
+extern void pa_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
+
/* Prototype function used in macro CONST_OK_FOR_LETTER_P. */
extern int zdepi_cint_p PARAMS ((unsigned HOST_WIDE_INT));