PATCH: Remove gthr-gnat.c from Linux

H. J. Lu hjl@lucon.org
Tue May 4 15:45:00 GMT 2004


On Tue, Apr 27, 2004 at 10:36:48AM +0200, Arnaud Charlet wrote:
> > Thanks for the info.  It was helpful.  I misunderstood the intent of
> > your earlier message.
> 
> No problem. I know my messages are usually a little bit too much 'to the point'
> and sometimes lack additional info/context. I'll try to improve that in the
> future.
> 
> > I did a build over the weekend to try to reproduce HJ's result and came
> > up empty.  Adding gthr-gnat.c to LIB2ADDEH had no effect on the
> > ia64-linux Ada testsuite results, which is what I expected from my
> > analysis and from your analysis.
> 
> OK, that confirms indeed the analysis made so far.
> 
> Now, we would need to find what in HJ's set up is different.
> Like, what configure options are used, what bootstrap options are used,
> what sources, and whether there are local changes in his tree.

The main difference may be I have a 4way 1.3GHz Itanium 2. I saw
quite a few thread bugs which I didn't see on other machines.
Unfortunately, I don't know anything about Ada. I can't tell if
the Ada library is doing the right thing with thread or not.

Here is a patch to remove gthr-gnat.c from Linux.



H.J.
-------------- next part --------------
2004-04-27  H.J. Lu  <hongjiu.lu@intel.com>

	* config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
	* config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
	* config/t-linux (LIB2ADDEHDEP): Likewise.

--- gcc/config/ia64/t-ia64.gnat	2003-10-29 09:58:36.000000000 -0800
+++ gcc/config/ia64/t-ia64	2004-04-27 11:12:22.000000000 -0700
@@ -41,7 +41,7 @@ crtfastmath.o: $(srcdir)/config/ia64/crt
 		$(srcdir)/config/ia64/crtfastmath.c
 
 LIB2ADDEH = $(srcdir)/config/ia64/unwind-ia64.c $(srcdir)/unwind-sjlj.c \
-  $(srcdir)/unwind-c.c $(srcdir)/gthr-gnat.c
+  $(srcdir)/unwind-c.c
 
 ia64-c.o: $(srcdir)/config/ia64/ia64-c.c $(CONFIG_H) $(SYSTEM_H) \
     coretypes.h $(TM_H) $(TREE_H) $(CPPLIB_H) $(C_COMMON_H) c-pragma.h toplev.h
--- gcc/config/s390/t-tpf.gnat	2003-10-15 10:10:20.000000000 -0700
+++ gcc/config/s390/t-tpf	2004-04-27 11:12:29.000000000 -0700
@@ -10,4 +10,4 @@ SHLIB_MAPFILES += $(srcdir)/config/s390/
 # Use unwind-dw2-fde-glibc
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
   $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
-LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c gthr-gnat.c
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
--- gcc/config/t-linux.gnat	2003-09-25 09:02:42.000000000 -0700
+++ gcc/config/t-linux	2004-04-27 11:12:14.000000000 -0700
@@ -10,4 +10,4 @@ SHLIB_MAPFILES += $(srcdir)/config/libgc
 # Use unwind-dw2-fde-glibc
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
   $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
-LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c gthr-gnat.c
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c


More information about the Gcc-patches mailing list