This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: The remaining dubious symbols in libgcc-std.ver
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: The remaining dubious symbols in libgcc-std.ver
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Tue, 12 Jun 2001 22:04:18 -0700
- Cc: Mark Kettenis <kettenis at science dot uva dot nl>, "rth at redhat dot com" <rth at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
On Tue, Jun 12, 2001 at 08:18:29PM -0700, Mark Mitchell wrote:
>
> I worry that we are being too clever. Would you mind just doing a
> lexical replacement of of `0' with `1' on the branch? The abstraction
> you're going for is definitely goodness, and your patch is fine for
> the mainline, but I'd be happier if we were just replacing `0' with `1'
> on the branch.
Right. Patch actually applied to branch follows. I'll apply the
original patch to mainline tomorrow morning after the bootstrap
completes.
*sigh* and I thought I was going to finish the cpp manual today, too.
zw
* Makefile.in: Move _bb and __gcc_bcmp from LIB2FUNCS to
LIB2FUNCS_ST.
* libgcc-std.ver: Don't export __bb* or __gcc_bcmp.
* config/t-slibgcc-elf-ver, config/t-slibgcc-sld,
config/alpha/t-osf4, config/mips/t-iris6: Bump libgcc soname
to .so.1.
===================================================================
Index: Makefile.in
--- Makefile.in 2001/06/07 22:04:38 1.602.2.29
+++ Makefile.in 2001/06/13 04:55:23
@@ -808,13 +808,13 @@ LIB2FUNCS = _muldi3 _divdi3 _moddi3 _udi
_fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi \
_fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
_fixtfdi _fixunstfdi _floatditf \
- __gcc_bcmp _bb _clear_cache _trampoline __main _exit \
+ _clear_cache _trampoline __main _exit \
_absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 \
_mulvsi3 _mulvdi3 _negvsi2 _negvdi2 \
_ctors
# Defined in libgcc2.c, included only in the static library.
-LIB2FUNCS_ST = _eprintf
+LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp
FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
_fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
===================================================================
Index: libgcc-std.ver
--- libgcc-std.ver 2001/05/26 00:07:51 1.4.4.7
+++ libgcc-std.ver 2001/06/13 04:55:23
@@ -141,19 +141,8 @@ GCC_3.0 {
__floattixf
__floattitf
- # Basic block profile symbols.
- # ??? Some of these are for `-a', which ought to die.
- __bb
- __bb_exit_func
- __bb_fork_func
- __bb_init_func
- __bb_init_trace_func
- __bb_trace_func
- __bb_trace_ret
-
- # ??? Symbols that perhaps unused should be nuked.
+ # Used to deal with trampoline initialization on some platforms
__clear_cache
- __gcc_bcmp
# EH symbols
_Unwind_DeleteException
===================================================================
Index: config/t-slibgcc-elf-ver
--- config/t-slibgcc-elf-ver 2001/05/26 00:36:13 1.1.2.1
+++ config/t-slibgcc-elf-ver 2001/06/13 04:55:23
@@ -3,15 +3,15 @@
SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,--soname=@shlib_base_name@.so.0 \
+ -Wl,--soname=@shlib_base_name@.so.1 \
-Wl,--version-script=@shlib_map_file@ \
-o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
- rm -f @shlib_base_name@.so.0 && \
- $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
+ rm -f @shlib_base_name@.so.1 && \
+ $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.1
# $(slibdir) double quoted to protect it from expansion while building
# libgcc.mk. We want this delayed until actual install time.
-SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \
+SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.1; \
rm -f $$(slibdir)/@shlib_base_name@.so; \
- $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so
+ $(LN_S) @shlib_base_name@.so.1 $$(slibdir)/@shlib_base_name@.so
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
===================================================================
Index: config/t-slibgcc-sld
--- config/t-slibgcc-sld 2001/05/26 00:36:13 1.1.2.1
+++ config/t-slibgcc-sld 2001/06/13 04:55:23
@@ -2,15 +2,15 @@
SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-h,@shlib_base_name@.so.0 -Wl,-z,text -Wl,-z,defs \
+ -Wl,-h,@shlib_base_name@.so.1 -Wl,-z,text -Wl,-z,defs \
-Wl,-M,@shlib_map_file@ -o @shlib_base_name@.so \
@multilib_flags@ @shlib_objs@ -lc && \
- rm -f @shlib_base_name@.so.0 && \
- $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
+ rm -f @shlib_base_name@.so.1 && \
+ $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.1
# $(slibdir) double quoted to protect it from expansion while building
# libgcc.mk. We want this delayed until actual install time.
-SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \
+SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.1; \
rm -f $$(slibdir)/@shlib_base_name@.so; \
- $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so
+ $(LN_S) @shlib_base_name@.so.1 $$(slibdir)/@shlib_base_name@.so
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
===================================================================
Index: config/alpha/t-osf4
--- config/alpha/t-osf4 2001/01/07 21:55:10 1.4
+++ config/alpha/t-osf4 2001/06/13 04:55:23
@@ -7,12 +7,12 @@ TARGET_LIBGCC2_CFLAGS = -fPIC
# Build a shared libgcc library.
SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-msym -Wl,-set_version,gcc.0 -Wl,-soname,@shlib_base_name@.so.0 \
+ -Wl,-msym -Wl,-set_version,gcc.1 -Wl,-soname,@shlib_base_name@.so.1 \
-o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
- rm -f @shlib_base_name@.so.0 && \
- $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
+ rm -f @shlib_base_name@.so.1 && \
+ $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.1
# $(slibdir) double quoted to protect it from expansion while building
# libgcc.mk. We want this delayed until actual install time.
-SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \
+SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.1; \
rm -f $$(slibdir)/@shlib_base_name@.so; \
- $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so
+ $(LN_S) @shlib_base_name@.so.1 $$(slibdir)/@shlib_base_name@.so
===================================================================
Index: config/mips/t-iris6
--- config/mips/t-iris6 2001/01/07 21:55:10 1.8
+++ config/mips/t-iris6 2001/06/13 04:55:23
@@ -22,10 +22,10 @@ CRTSTUFF_T_CFLAGS=-g1
# Build a shared libgcc library.
SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-soname,@shlib_base_name@.so.0 \
+ -Wl,-soname,@shlib_base_name@.so.1 \
-o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
- rm -f @shlib_base_name@.so.0 && \
- $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
+ rm -f @shlib_base_name@.so.1 && \
+ $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.1
# ??? Irix 6.5 seems to eat the option fine (if we somehow remove the
# -hidden_symbol option, which is documented to be ignored in conjunction
# with -exports_file), but fails to actually hide any symbols.
@@ -33,9 +33,9 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
# $(slibdir) double quoted to protect it from expansion while building
# libgcc.mk. We want this delayed until actual install time.
-SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \
+SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.1; \
rm -f $$(slibdir)/@shlib_base_name@.so; \
- $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so
+ $(LN_S) @shlib_base_name@.so.1 $$(slibdir)/@shlib_base_name@.so
SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver