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
3201f6d9
Commit
3201f6d9
authored
Aug 23, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make -fPIC the same as -mrelocatable-lib
From-SVN: r12670
parent
60a3d801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
gcc/config/rs6000/sol2.h
+1
-1
gcc/config/rs6000/sysv4.h
+10
-2
No files found.
gcc/config/rs6000/sol2.h
View file @
3201f6d9
...
@@ -26,7 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -26,7 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define RS6000_ABI_NAME "solaris"
#define RS6000_ABI_NAME "solaris"
#undef ASM_CPU_SPEC
#undef ASM_CPU_SPEC
#define ASM_CPU_SPEC "
%{fpic:-K PIC} %{fPIC:-K PIC}
-le -s"
#define ASM_CPU_SPEC "-le -s"
#undef TARGET_DEFAULT
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_POWERPC | \
#define TARGET_DEFAULT (MASK_POWERPC | \
...
...
gcc/config/rs6000/sysv4.h
View file @
3201f6d9
...
@@ -244,6 +244,14 @@ do { \
...
@@ -244,6 +244,14 @@ do { \
rs6000_abi_name); \
rs6000_abi_name); \
} \
} \
\
\
if (flag_pic > 1 && \
(rs6000_current_abi == ABI_AIX || rs6000_current_abi == ABI_NT)) \
{ \
flag_pic = 0; \
error ("-fPIC and -mcall-%s are incompatible.", \
rs6000_abi_name); \
} \
\
if (rs6000_current_abi == ABI_AIX && TARGET_LITTLE_ENDIAN) \
if (rs6000_current_abi == ABI_AIX && TARGET_LITTLE_ENDIAN) \
{ \
{ \
target_flags &= ~MASK_LITTLE_ENDIAN; \
target_flags &= ~MASK_LITTLE_ENDIAN; \
...
@@ -258,7 +266,7 @@ do { \
...
@@ -258,7 +266,7 @@ do { \
\
\
/* Treat -fPIC the same as -mrelocatable */
\
/* Treat -fPIC the same as -mrelocatable */
\
if (flag_pic > 1) \
if (flag_pic > 1) \
target_flags |= MASK_RELOCATABLE
;
\
target_flags |= MASK_RELOCATABLE
| MASK_MINIMAL_TOC | MASK_NO_FP_IN_TOC;
\
\
\
else if (TARGET_RELOCATABLE) \
else if (TARGET_RELOCATABLE) \
flag_pic = 2; \
flag_pic = 2; \
...
@@ -954,7 +962,7 @@ do { \
...
@@ -954,7 +962,7 @@ do { \
#undef ASM_SPEC
#undef ASM_SPEC
#define ASM_SPEC "%(asm_cpu) %{mregnames} %{mno-regnames} \
#define ASM_SPEC "%(asm_cpu) %{mregnames} %{mno-regnames} \
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \
%{mrelocatable} %{mrelocatable-lib} \
%{mrelocatable} %{mrelocatable-lib}
%{fpic:-K PIC} %{fPIC:-K PIC}
\
%{memb} %{!memb: %{msdata: -memb} %{msdata=eabi: -memb}} \
%{memb} %{!memb: %{msdata: -memb} %{msdata=eabi: -memb}} \
%{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian} \
%{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian} \
%{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
%{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
...
...
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