This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix Bootstrap because of warning in c-cppbuiltin.c


> I still get the following warning on hppa64-hp-hpux11.11:
> 
> stage1/xgcc -Bstage1/ -B/opt/gnu64/hppa64-hp-hpux11.11/bin/ -c   -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -Werror   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/c-cppbuiltin.c -o c-cppbuiltin.o
> ../../gcc/gcc/c-cppbuiltin.c:399: warning: `builtin_define_std' defined but not used
> make[2]: *** [c-cppbuiltin.o] Error 1

Fixed thus.

Neil.

	* c-cppbuiltin.c (builtin_define_std): Make non-static.

Index: c-cppbuiltin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-cppbuiltin.c,v
retrieving revision 1.3
diff -u -p -r1.3 c-cppbuiltin.c
--- c-cppbuiltin.c	12 Mar 2003 01:51:28 -0000	1.3
+++ c-cppbuiltin.c	12 Mar 2003 06:56:38 -0000
@@ -36,7 +36,8 @@ Software Foundation, 59 Temple Place - S
 #define REGISTER_PREFIX ""
 #endif
 
-static void builtin_define_std PARAMS ((const char *)) ATTRIBUTE_UNUSED;
+/* Non-static as some targets don't use it.  */
+void builtin_define_std PARAMS ((const char *)) ATTRIBUTE_UNUSED;
 static void builtin_define_with_value_n PARAMS ((const char *, const char *,
 						 size_t));
 static void builtin_define_with_int_value PARAMS ((const char *,
@@ -393,7 +394,7 @@ cb_register_builtins (pfile)
    e.g. passing "unix" defines "__unix", "__unix__" and possibly
    "unix".  Passing "_mips" defines "__mips", "__mips__" and possibly
    "_mips".  */
-static void
+void
 builtin_define_std (macro)
      const char *macro;
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]