re PR bootstrap/18804 (lib2funcs.vis:1: Error: unknown pseudo-op: `.hidden')
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 4 Dec 2004 20:32:51 +0000 (20:32 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 4 Dec 2004 20:32:51 +0000 (20:32 +0000)
PR bootstrap/18804
* mklibgcc.in (vis_hide): Use implementation instead of declaration
for test function.

From-SVN: r91732

gcc/ChangeLog
gcc/mklibgcc.in

index 2b45485607a05340ce009b38302e8826681967c2..3e609a37c2357e24f3b0f22e5418d2be46016c11 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR bootstrap/18804
+       * mklibgcc.in (vis_hide): Use implementation instead of declaration
+       for test function.
+
 2004-12-04  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
index 9729f2b41d10891025e7dcef77fd22c70cbec949..535420b91017e910c097a6904d4231b01d15beed 100644 (file)
@@ -99,7 +99,7 @@ if [ "$SHLIB_LINK" ]; then
   # overriding that with #pragmas.  The dance with @ is to prevent
   # echo from seeing anything it might take for an option.
   echo "vis_hide := \$(strip \$(subst @,-,\\"
-  echo "    \$(shell if echo 'void foo(void);' | \\"
+  echo "    \$(shell if echo 'void foo(void) {}' | \\"
   echo "          $gcc_compile -fvisibility=hidden -Werror \\"
   echo "          -c -xc - -o /dev/null 2> /dev/null; \\"
   echo "          then echo @fvisibility=hidden @DHIDE_EXPORTS; \\"