This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.4 PATCH: Fix Tru64 UNIX bootstrap failure (-Werror fallout)


Bootstrapping on Tru64 UNIX while the recent -Werror patch was installed
revealed a couple of problems:

* crtfastmath.o compilation failed:

/vol/gnu/src/gcc/gcc/gcc/config/alpha/crtfastmath.c:46: warning: no previous prototype for '_GLOBAL__I__vol_gnu_src_gcc_gcc_gcc_config_alpha_crtfastmath.c_00000000_FAA7B6A3'
make[2]: *** [crtfastmath.o] Error 1

  I tried to add

  crtfastmath.o-warn: -Wno-error

  to t-osf4, but this had no effect.  Adding -Wno-error to t-osf4
  (TARGET_LIBGCC2_CFLAGS) initially didn't work either: t-osf-pthread
  simply replaced TARGET_LIBGCC2_CFLAGS with -pthread instead of appending
  to it.

  This patch fixes this.

* _trampoline.o compilation failed, too:

/vol/gnu/src/gcc/gcc/gcc/libgcc2.c:1607: warning: no previous prototype for '__enable_execute_stack'
make[3]: *** [libgcc/./_trampoline.o] Error 1

  I cured this by adding the prototype.

With those changes, bootstrap went well into stage2 (until I hit the ICE
described in PR bootstrap/12898).

Since it fixes the compilation failures, ok for mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University



Tue Nov  4 21:04:58 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* config/alpha/t-osf4 (TARGET_LIBGCC2_CFLAGS): Add -Wno-error.

	* config/alpha/t-osf-pthread (TARGET_LIBGCC2_CFLAGS): Append
	-pthread instead of overriding.

	* config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Declare
	__enable_execute_stack.

Index: gcc/config/alpha/osf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/osf.h,v
retrieving revision 1.34
diff -u -p -r1.34 osf.h
--- gcc/config/alpha/osf.h	27 Sep 2003 04:48:12 -0000	1.34
+++ gcc/config/alpha/osf.h	4 Nov 2003 20:14:10 -0000
@@ -139,6 +146,8 @@ Boston, MA 02111-1307, USA.  */
 /* Attempt to turn on access permissions for the stack.  */
 
 #define TRANSFER_FROM_TRAMPOLINE					\
+void __enable_execute_stack (void *);					\
+									\
 void									\
 __enable_execute_stack (void *addr)					\
 {									\
Index: gcc/config/alpha/t-osf-pthread
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/t-osf-pthread,v
retrieving revision 1.1
diff -u -p -r1.1 t-osf-pthread
--- gcc/config/alpha/t-osf-pthread	31 Jul 2003 12:01:06 -0000	1.1
+++ gcc/config/alpha/t-osf-pthread	4 Nov 2003 20:14:10 -0000
@@ -2,4 +2,4 @@
 LIB2FUNCS_EXTRA += $(srcdir)/gthr-posix.c
 
 # Compile libgcc2 with POSIX threads supports
-TARGET_LIBGCC2_CFLAGS=-pthread
+TARGET_LIBGCC2_CFLAGS += -pthread
Index: gcc/config/alpha/t-osf4
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/t-osf4,v
retrieving revision 1.7
diff -u -p -r1.7 t-osf4
--- gcc/config/alpha/t-osf4	31 Jul 2003 12:01:06 -0000	1.7
+++ gcc/config/alpha/t-osf4	4 Nov 2003 20:14:10 -0000
@@ -2,7 +2,7 @@
 CRTSTUFF_T_CFLAGS_S = -fPIC
 
 # Compile libgcc2.a with pic.
-TARGET_LIBGCC2_CFLAGS = -fPIC
+TARGET_LIBGCC2_CFLAGS = -fPIC -Wno-error
 
 # Build a shared libgcc library.
 SHLIB_EXT = .so


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]