This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] 4.0: config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C)
- From: Matt Thomas <matt at 3am-software dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Apr 2005 22:27:34 -0700
- Subject: [PATCH] 4.0: config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C)
Due to
2004-12-07 Eric Christopher <echristo@redhat.com>
PR target/16317
* config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
when building powerpc--netbsd, this results in:
In file included from tm.h:11,
from /u1/toolchain/gcc/gcc/genmddeps.c:21:
/u1/toolchain/gcc/gcc/config/rs6000/sysv4.h:24:1: warning: "NO_IMPLICIT_EXTERN_C
" redefined
In file included from tm.h:8,
from /u1/toolchain/gcc/gcc/genmddeps.c:21:
/u1/toolchain/gcc/gcc/config/netbsd.h:172:1: warning: this is the location of th
e previous definition
2005-04-11 Matt Thomas <matt@3am-software.com>
* config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
defining.
Index: gcc/config/rs6000/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.158
diff -c -3 -p -r1.158 sysv4.h
*** gcc/config/rs6000/sysv4.h 15 Feb 2005 15:53:52 -0000 1.158
--- gcc/config/rs6000/sysv4.h 12 Apr 2005 03:54:51 -0000
***************
*** 21,26 ****
--- 21,27 ----
MA 02111-1307, USA. */
/* Header files should be C++ aware in general. */
+ #undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C
/* Yes! We are ELF. */