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
1a1e6a9d
Commit
1a1e6a9d
authored
Aug 24, 2005
by
Fariborz Jahanian
Committed by
Fariborz Jahanian
Aug 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define __PIC__ for darwin targets.
OKed by Mike Stump. From-SVN: r103447
parent
130869aa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
gcc/ChangeLog
+6
-0
gcc/config/darwin.h
+8
-0
gcc/config/rs6000/darwin.h
+1
-0
gcc/testsuite/gcc.dg/pic-macro-define.c
+10
-0
No files found.
gcc/ChangeLog
View file @
1a1e6a9d
2005
-
08
-
24
Fariborz
Jahanian
<
fjahanian
@apple
.
com
>
*
config
/
darwin
.
h
:
define
__PIC__
*
config
/
rs6000
/
darwin
.
h
:
Add
SUBTARGET_OS_CPP_BUILTINS
to
TARGET_OS_CPP_BUILTINS
macro
.
2005
-
08
-
24
Paolo
Bonzini
<
bonzini
@gnu
.
org
>
*
config
/
rs6000
/
rs6000
.
md
:
Fix
thinko
in
the
peephole2
I
added
...
...
gcc/config/darwin.h
View file @
1a1e6a9d
...
...
@@ -140,6 +140,14 @@ Boston, MA 02110-1301, USA. */
{ "-unexported_symbols_list", "-Zunexported_symbols_list" }, \
SUBTARGET_OPTION_TRANSLATE_TABLE
#define SUBTARGET_OS_CPP_BUILTINS() \
do \
{ \
if (flag_pic) \
builtin_define ("__PIC__"); \
} \
while (0)
/* These compiler options take n arguments. */
#undef WORD_SWITCH_TAKES_ARG
...
...
gcc/config/rs6000/darwin.h
View file @
1a1e6a9d
...
...
@@ -55,6 +55,7 @@
builtin_define ("__POWERPC__"); \
builtin_define ("__NATURAL_ALIGNMENT__"); \
darwin_cpp_builtins (pfile); \
SUBTARGET_OS_CPP_BUILTINS (); \
} \
while (0)
...
...
gcc/testsuite/gcc.dg/pic-macro-define.c
0 → 100644
View file @
1a1e6a9d
/* { dg-do run { target "i?86-*-*-darwin" powerpc*-*-darwin* } } */
/* { dg-options "-fPIC" } */
#if defined __PIC__
int
main
()
{
return
0
;
}
#else
error
"NO __PIC__ DEFINED"
#endif
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