[patch] Fix bootstrap/18804

John David Anglin dave@hiauly1.hia.nrc.ca
Sat Dec 4 19:19:00 GMT 2004


We don't get an error or warning with just a declaration for foo
on hppa2.0w-hp-hpux11.11.  Changing foo to an implementation provides
the needed error.  The change allows libgcc to build sucessfully.

Ok?

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

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.

Index: mklibgcc.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mklibgcc.in,v
retrieving revision 1.77
diff -u -3 -p -r1.77 mklibgcc.in
--- mklibgcc.in	4 Dec 2004 09:22:30 -0000	1.77
+++ mklibgcc.in	4 Dec 2004 18:55:25 -0000
@@ -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; \\"



More information about the Gcc-patches mailing list