Commit 9a57586f by Michael Meissner

update last change

From-SVN: r11876
parent 6001ecc1
/* Definitions of target machine for GNU compiler,
for IBM RS/6000 running AIX version 3.1.
Copyright (C) 1996 Free Software Foundation, Inc.
Contributed by Michael Meissner (meissner@cygnus.com).
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "rs6000/sysv4.h"
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \
"-DPPC -Dunix -Dlinux -Dpowerpc -Asystem(unix) -Asystem(linux) -Acpu(powerpc) -Amachine(powerpc)"
/* For now, remove most of the System V.4 stuff */
#undef LINK_SPEC
#define LINK_SPEC ""
#undef LIB_DEFAULT_SPEC
#define LIB_DEFAULT_SPEC LIB_LINUX_SPEC
#undef STARTFILE_DEFAULT_SPEC
#define STARTFILE_DEFAULT_SPEC STARTFILE_LINUX_SPEC
#undef ENDFILE_DEFAULT_SPEC
#define ENDFILE_DEFAULT_SPEC ENDFILE_LINUX_SPEC
#undef LINK_START_DEFAULT_SPEC
#define LINK_START_DEFAULT_SPEC LINK_START_LINUX_SPEC
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC Linux)");
/* Definitions of target machine for GNU compiler, /* Definitions of target machine for GNU compiler,
for IBM RS/6000 running AIX version 3.1. for IBM RS/6000 running AIX version 3.1.
Copyright (C) 1993 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.edu) Contributed by David Reese (Dave.Reese@East.Sun.COM)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -49,14 +49,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -49,14 +49,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{!p:-Y P,/usr/ccs/lib:/usr/lib}}} \ %{!p:-Y P,/usr/ccs/lib:/usr/lib}}} \
%{Qy:} %{!Qn:-Qy}" %{Qy:} %{!Qn:-Qy}"
/* This defines which switch letters take arguments.
It is as in svr4.h but with -R added. */
#undef TARGET_DEFAULT #undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_POWERPC | \ #define TARGET_DEFAULT (MASK_POWERPC | \
MASK_NEW_MNEMONICS | \ MASK_NEW_MNEMONICS | \
MASK_LITTLE_ENDIAN | \ MASK_LITTLE_ENDIAN | \
MASK_NO_MAIN_INIT | \
MASK_REGNAMES) MASK_REGNAMES)
#undef LIB_DEFAULT_SPEC #undef LIB_DEFAULT_SPEC
......
...@@ -95,7 +95,7 @@ extern char *rs6000_abi_name; ...@@ -95,7 +95,7 @@ extern char *rs6000_abi_name;
/* Default ABI to use */ /* Default ABI to use */
#define RS6000_ABI_NAME "sysv" #define RS6000_ABI_NAME "sysv"
#define SUBTARGET_OPTIONS {"call-", &rs6000_abi_name} #define SUBTARGET_OPTIONS {"call-", &rs6000_abi_name}
/* Max # of bytes for variables to automatically be put into the .sdata /* Max # of bytes for variables to automatically be put into the .sdata
or .sdata2 sections. */ or .sdata2 sections. */
...@@ -149,6 +149,11 @@ do { \ ...@@ -149,6 +149,11 @@ do { \
error ("Bad value for -mcall-%s", rs6000_abi_name); \ error ("Bad value for -mcall-%s", rs6000_abi_name); \
} \ } \
\ \
/* CYGNUS LOCAL -fcombine-statics vs. -msdata */ \
if (TARGET_SDATA) \
flag_combine_statics = 0; \
/* END CYGNUS LOCAL -fcombine-statics vs. -msdata */ \
\
if (TARGET_RELOCATABLE && TARGET_SDATA) \ if (TARGET_RELOCATABLE && TARGET_SDATA) \
{ \ { \
target_flags &= ~MASK_SDATA; \ target_flags &= ~MASK_SDATA; \
...@@ -1012,11 +1017,12 @@ do { \ ...@@ -1012,11 +1017,12 @@ do { \
#endif #endif
#ifndef STARTFILE_LINUX_SPEC #ifndef STARTFILE_LINUX_SPEC
#define STARTFILE_LINUX_SPEC "crt0.o%s" #define STARTFILE_LINUX_SPEC "\
#endif %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
scrti.o%s"
#ifndef ENDFILE_LINUX_SPEC #ifndef ENDFILE_LINUX_SPEC
#define ENDFILE_LINUX_SPEC "" #define ENDFILE_LINUX_SPEC "scrtn.o%s"
#endif #endif
#ifndef LINK_START_LINUX_SPEC #ifndef LINK_START_LINUX_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment