PATCH: Update (*_FREEBSD_*) config/rs6000/sysv4.h to match initial system compiler
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Tue Apr 29 12:29:00 GMT 2003
Attn: David Edelsohn or Geoff Keating
Under private cover, David O'Brien sent me a few patches developed
while he ported/stabilized gcc 3.2.X/3.3 to new CPUs members of the
FreeBSD family. I believe that the second and third hunks I could
perhaps technically self-approve now. But since this patch covers
stuff outside a freebsd-specific configuration file, I'd like an
RS6000 maintainer to OK it as well for mainline and 3.3. I will only
defend the first thunk weakly since my analysis is that some ports
(e.g. netbsd) have started to define only the __X__ style
configuration macros. The other two thunks are merely updating to
match a refinement that hit all other FreeBSD/CPU ports.
Thanks,
Loren
2003-04-29 David O'Brien <obrien@FreeBSD.org>
* config/rs6000/sysv4.h (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
(CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror other FreeBSD ports.
(LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
Index: gcc/config/rs6000/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.121
diff -c -r1.121 sysv4.h
*** gcc/config/rs6000/sysv4.h 17 Apr 2003 23:18:57 -0000 1.121
--- gcc/config/rs6000/sysv4.h 29 Apr 2003 12:08:19 -0000
***************
*** 322,328 ****
/* Define this to set the endianness to use in libgcc2.c, which can
not depend on target_flags. */
! #if !defined(_LITTLE_ENDIAN) && !defined(__sun__)
#define LIBGCC2_WORDS_BIG_ENDIAN 1
#else
#define LIBGCC2_WORDS_BIG_ENDIAN 0
--- 322,328 ----
/* Define this to set the endianness to use in libgcc2.c, which can
not depend on target_flags. */
! #if !defined(__LITTLE_ENDIAN__) && !defined(__sun__)
#define LIBGCC2_WORDS_BIG_ENDIAN 1
#else
#define LIBGCC2_WORDS_BIG_ENDIAN 0
***************
*** 1085,1091 ****
/* FreeBSD support. */
#define CPP_OS_FREEBSD_SPEC "\
! -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \
-Acpu=powerpc -Amachine=powerpc"
#define STARTFILE_FREEBSD_SPEC FBSD_STARTFILE_SPEC
--- 1085,1091 ----
/* FreeBSD support. */
#define CPP_OS_FREEBSD_SPEC "\
! -D__ELF__ -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \
-Acpu=powerpc -Amachine=powerpc"
#define STARTFILE_FREEBSD_SPEC FBSD_STARTFILE_SPEC
***************
*** 1094,1100 ****
#define LINK_START_FREEBSD_SPEC ""
#define LINK_OS_FREEBSD_SPEC "\
! %{symbolic:-Bsymbolic}"
/* GNU/Linux support. */
#ifdef USE_GNULIBC_1
--- 1094,1110 ----
#define LINK_START_FREEBSD_SPEC ""
#define LINK_OS_FREEBSD_SPEC "\
! %{p:%e`-p' not supported; use `-pg' and gprof(1)} \
! %{Wl,*:%*} \
! %{v:-V} \
! %{assert*} %{R*} %{rpath*} %{defsym*} \
! %{shared:-Bshareable %{h*} %{soname*}} \
! %{!shared: \
! %{!static: \
! %{rdynamic: -export-dynamic} \
! %{!dynamic-linker: -dynamic-linker /usr/libexec/ld-elf.so.1}} \
! %{static:-Bstatic}} \
! %{symbolic:-Bsymbolic}"
/* GNU/Linux support. */
#ifdef USE_GNULIBC_1
More information about the Gcc-patches
mailing list