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]

Don't use lib2funcs.asm on PA


The only function in pa/lib2funcs.asm is __gcc_plt_call.  This function
is no longer used.  Thus, we don't need to build lib2funcs.asm or ensure
that __gcc_plt_call is linked into executables.

Tested with no regressions on hppa2.0w-hp-hpux11.11.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
	* pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
	* som.h (DO_GLOBAL_DTORS_BODY): Delete define.

Index: config/pa/t-pa
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/t-pa,v
retrieving revision 1.9
diff -u -3 -p -r1.9 t-pa
--- config/pa/t-pa	8 Oct 2001 17:58:30 -0000	1.9
+++ config/pa/t-pa	16 Feb 2002 21:54:00 -0000
@@ -1,9 +1,5 @@
 T_ADAFLAGS=-mdisable-indexing
-LIB2FUNCS_EXTRA=lib2funcs.asm quadlib.c
-
-lib2funcs.asm: $(srcdir)/config/pa/lib2funcs.asm
-	rm -f lib2funcs.asm
-	cp $(srcdir)/config/pa/lib2funcs.asm .
+LIB2FUNCS_EXTRA=quadlib.c
 
 quadlib.c: $(srcdir)/config/pa/quadlib.c
 	rm -f quadlib.c
Index: config/pa/t-pro
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/t-pro,v
retrieving revision 1.6
diff -u -3 -p -r1.6 t-pro
--- config/pa/t-pro	8 Oct 2001 17:58:30 -0000	1.6
+++ config/pa/t-pro	16 Feb 2002 21:54:00 -0000
@@ -1,7 +1,5 @@
 T_ADAFLAGS=-mdisable-indexing
 
-LIB2FUNCS_EXTRA=lib2funcs.asm 
-
 # We want fine grained libraries, so use the new code to build the
 # floating point emulation libraries.
 FPBIT = fp-bit.c
@@ -13,7 +11,3 @@ dp-bit.c: $(srcdir)/config/fp-bit.c
 fp-bit.c: $(srcdir)/config/fp-bit.c
 	echo '#define FLOAT' > fp-bit.c
 	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
-
-lib2funcs.asm: $(srcdir)/config/pa/lib2funcs.asm
-	rm -f lib2funcs.asm
-	cp $(srcdir)/config/pa/lib2funcs.asm .
Index: config/pa/som.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/som.h,v
retrieving revision 1.29
diff -u -3 -p -r1.29 som.h
--- config/pa/som.h	4 Jan 2002 15:43:30 -0000	1.29
+++ config/pa/som.h	16 Feb 2002 21:54:01 -0000
@@ -351,22 +351,6 @@ readonly_data ()							\
 
 #define ASM_FILE_END(FILE) output_deferred_plabels (FILE)
 
-/* We want __gcc_plt_call to appear in every program built by
-   gcc, so we make a reference to it out of __main.
-   We use the asm statement to fool the optimizer into not
-   removing the dead (but important) initialization of
-   REFERENCE.  */
-
-#define DO_GLOBAL_DTORS_BODY			\
-do {						\
-  extern void __gcc_plt_call ();		\
-  void (*reference)() = &__gcc_plt_call;	\
-  func_ptr *p;					\
-  __asm__ ("" : : "r" (reference));		\
-  for (p = __DTOR_LIST__ + 1; *p; )		\
-    (*p++) ();					\
-} while (0)
-
 /* The .align directive in the HP assembler allows up to a 32 alignment.  */
 #define MAX_OFILE_ALIGNMENT 32768
 


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