ff47328005
gcc/ 2008-07-02 H.J. Lu <hongjiu.lu@intel.com> PR target/36669 * config/libgcc-glibc.ver: Add %exclude. * config/m32r/libgcc-glibc.ver: Likwise. * config/s390/libgcc-glibc.ver: Likwise. * config/sh/libgcc-glibc.ver: Likwise. * config/sparc/libgcc-sparc-glibc.ver: Likwise. * config/i386/libgcc-glibc.ver: New. * config/i386/libgcc-x86_64-glibc.ver: Removed. 2008-07-02 H.J. Lu <hongjiu.lu@intel.com> * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*, x86_64-*-linux*. Add i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*, x86_64-*-linux*. Add i386/t-linux to tmake_file for i[34567]86-*-linux*, x86_64-*-linux*. * libgcc-std.ver: Add empty GCC_4.4.0. * mkmap-symver.awk: Support multiple versions per symbol. * config/i386/i386.c (ix86_init_builtins): Always define __builtin_fabsq and __builtin_copysignq with fallbacks. (ix86_expand_builtin): Emit normal call for __builtin_fabsq and __builtin_copysignq if SSE2 isn't available. * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined. (LIBGCC2_TF_CEXT): Likwise. (TF_SIZE): Likwise. * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1. * config/i386/sfp-machine.h: Moved to libgcc. * config/i386/sfp-machine.h: New. * config/i386/t-linux: Likwise. * config/i386/t-darwin: Remove softfp_wrap_start and softfp_wrap_end. * config/i386/t-darwin64: Likewise. * config/i386/t-fprules-softfp64: Renamed to ... * config/i386/t-fprules-softfp: This. * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start and softfp_wrap_end. libgcc/ 2008-07-02 H.J. Lu <hongjiu.lu@intel.com> PR target/36669 * shared-object.mk ($(base)_s$(objext)): Add -DSHARED. * config/i386/64/_divtc3-compat.c: New. * config/i386/64/_multc3-compat.c: Likewise. * config/i386/64/_powitf2-compat.c: Likewise. * config/i386/64/eqtf2.c: Likewise. * config/i386/64/getf2.c: Likewise. * config/i386/64/letf2.c: Likewise. * config/i386/64/t-fprules-softfp: Likewise. 2008-07-02 H.J. Lu <hongjiu.lu@intel.com> * config.host: Add i386/${host_address}/t-fprules-softfp to tmake_file for i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*, x86_64-*-linux*. * configure.ac: Set host_address to 64 or 32 for x86. * configure: Regenerated. * Makefile.in (config.status): Also depend on $(srcdir)/config.host. * config/i386/32/t-fprules-softfp: New. * config/i386/32/tf-signs.c: Likewise. * config/i386/64/sfp-machine.h: New. Moved from gcc. 2008-07-02 H.J. Lu <hongjiu.lu@intel.com> Uros Bizjak <ubizjak@gmail.com> * config/i386/32/sfp-machine.h: New. Co-Authored-By: Uros Bizjak <ubizjak@gmail.com> From-SVN: r137369
137 lines
2.9 KiB
Awk
137 lines
2.9 KiB
Awk
# Generate an ELF symbol version map a-la Solaris and GNU ld.
|
|
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
|
# Contributed by Richard Henderson <rth@cygnus.com>
|
|
#
|
|
# This file is part of GCC.
|
|
#
|
|
# GCC is free software; you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License as published by the Free
|
|
# Software Foundation; either version 3, or (at your option) any later
|
|
# version.
|
|
#
|
|
# GCC is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
# License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GCC; see the file COPYING3. If not see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
BEGIN {
|
|
state = "nm";
|
|
sawsymbol = 0;
|
|
if (leading_underscore)
|
|
prefix = "_";
|
|
else
|
|
prefix = "";
|
|
}
|
|
|
|
# Remove comment and blank lines.
|
|
/^ *#/ || /^ *$/ {
|
|
next;
|
|
}
|
|
|
|
# We begin with nm input. Collect the set of symbols that are present
|
|
# so that we can not emit them into the final version script -- Solaris
|
|
# complains at us if we do.
|
|
|
|
state == "nm" && /^%%/ {
|
|
state = "ver";
|
|
next;
|
|
}
|
|
|
|
state == "nm" && ($1 == "U" || $2 == "U") {
|
|
next;
|
|
}
|
|
|
|
state == "nm" && NF == 3 {
|
|
split ($3, s, "@")
|
|
def[s[1]] = 1;
|
|
sawsymbol = 1;
|
|
next;
|
|
}
|
|
|
|
state == "nm" {
|
|
next;
|
|
}
|
|
|
|
# Now we process a simplified variant of the Solaris symbol version
|
|
# script. We have one symbol per line, no semicolons, simple markers
|
|
# for beginning and ending each section, and %inherit markers for
|
|
# describing version inheritance. A symbol may appear in more than
|
|
# one symbol version, and the last seen takes effect.
|
|
# The magic version name '%exclude' causes all the symbols given that
|
|
# version to be dropped from the output (unless a later version overrides).
|
|
|
|
NF == 3 && $1 == "%inherit" {
|
|
inherit[$2] = $3;
|
|
next;
|
|
}
|
|
|
|
NF == 2 && $2 == "{" {
|
|
if ($1 != "%exclude")
|
|
libs[$1] = 1;
|
|
thislib = $1;
|
|
next;
|
|
}
|
|
|
|
$1 == "}" {
|
|
thislib = "";
|
|
next;
|
|
}
|
|
|
|
{
|
|
sym = prefix $1;
|
|
symbols[sym] = 1
|
|
if (thislib != "%exclude")
|
|
ver[sym, thislib] = 1;
|
|
else {
|
|
for (l in libs)
|
|
ver[sym, l] = 0;
|
|
}
|
|
next;
|
|
}
|
|
|
|
END {
|
|
if (!sawsymbol)
|
|
{
|
|
print "No symbols seen -- broken or mis-installed nm?" | "cat 1>&2";
|
|
exit 1;
|
|
}
|
|
for (l in libs)
|
|
output(l);
|
|
}
|
|
|
|
function output(lib) {
|
|
if (done[lib])
|
|
return;
|
|
done[lib] = 1;
|
|
if (inherit[lib])
|
|
output(inherit[lib]);
|
|
|
|
empty=1
|
|
for (sym in symbols)
|
|
if ((ver[sym, lib] != 0) && (sym in def))
|
|
{
|
|
if (empty)
|
|
{
|
|
printf("%s {\n", lib);
|
|
printf(" global:\n");
|
|
empty = 0;
|
|
}
|
|
printf("\t%s;\n", sym);
|
|
}
|
|
|
|
if (empty)
|
|
{
|
|
for (l in libs)
|
|
if (inherit[l] == lib)
|
|
inherit[l] = inherit[lib];
|
|
}
|
|
else if (inherit[lib])
|
|
printf("} %s;\n", inherit[lib]);
|
|
else
|
|
printf ("\n local:\n\t*;\n};\n");
|
|
}
|