Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9a57586f
Commit
9a57586f
authored
Apr 24, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update last change
From-SVN: r11876
parent
6001ecc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
10 deletions
+57
-10
gcc/config/rs6000/linux.h
+45
-0
gcc/config/rs6000/sol2.h
+2
-6
gcc/config/rs6000/sysv4.h
+10
-4
No files found.
gcc/config/rs6000/linux.h
0 → 100644
View file @
9a57586f
/* 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)");
gcc/config/rs6000/sol2.h
View file @
9a57586f
/* 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) 199
3
Free Software Foundation, Inc.
Copyright (C) 199
6
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
...
...
gcc/config/rs6000/sysv4.h
View file @
9a57586f
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment