Bootstrap failure: fixtests.c fails to compile on solaris2
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Sun May 27 08:23:00 GMT 2001
> 2001-05-26 Bruce Korb <bkorb@gnu.org>
>
> * fixinc/fixtests.c(stdc_0_in_system_headers_test): in
> testing mode, always apply the fix
The above patch broke solaris2 when it tried to compile fixtests.c:
> "fixtests.c", line 123: undefined symbol: pz_machine
> cc: acomp failed for fixtests.c
> make.solaris2[3]: *** [fixtests.o] Error 2
The following patch was sufficient to allow bootstrap to proceed.
Ok to apply to trunk and branch?
--Kaveh
2001-05-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/fixtests.c: Declare entries in ENV_TABLE.
diff -rup /tmp/foo/egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c
--- /tmp/foo/egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c Sat May 26 16:31:43 2001
+++ egcs-3.0-CVS20010527/gcc/fixinc/fixtests.c Sun May 27 10:54:30 2001
@@ -47,6 +47,10 @@ Boston, MA 02111-1307, USA. */
#include "fixlib.h"
+#define _ENV_(v,m,n,t) extern tCC* v;
+ENV_TABLE
+#undef _ENV_
+
typedef apply_fix_p_t t_test_proc PARAMS(( tCC* file, tCC* text ));
typedef struct {
More information about the Gcc-patches
mailing list