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
a48bb578
Commit
a48bb578
authored
Sep 22, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate -fbuiltin/-fno-builtin hacks & enable OSF/rose shared libs.
From-SVN: r2208
parent
9bbd6c3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
42 deletions
+69
-42
gcc/config/i386/osfrose.h
+69
-42
No files found.
gcc/config/i386/osfrose.h
View file @
a48bb578
...
@@ -30,16 +30,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -30,16 +30,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define abort fancy_abort
#define abort fancy_abort
#endif
#endif
#define MASK_HALF_PIC 0x00000100
/* Mask for half-pic code */
#define MASK_HALF_PIC 0x40000000
/* Mask for half-pic code */
#define TARGET_HALF_PIC (target_flags & MASK_HALF_PIC)
#define MASK_HALF_PIC_DEBUG 0x20000000
/* Debug flag */
#define TARGET_HALF_PIC (target_flags & MASK_HALF_PIC)
#define TARGET_DEBUG (target_flags & MASK_HALF_PIC_DEBUG)
#define HALF_PIC_DEBUG TARGET_DEBUG
#ifdef SUBTARGET_SWITCHES
#ifdef SUBTARGET_SWITCHES
#undef SUBTARGET_SWITCHES
#undef SUBTARGET_SWITCHES
#endif
#endif
#define SUBTARGET_SWITCHES \
#define SUBTARGET_SWITCHES \
{ "half-pic", MASK_HALF_PIC}, \
{ "half-pic", MASK_HALF_PIC}, \
{ "no-half-pic", -MASK_HALF_PIC},
{ "no-half-pic", -MASK_HALF_PIC}, \
{ "debugb", MASK_HALF_PIC_DEBUG},
/* Prefix that appears before all global/static identifiers, except for
/* Prefix that appears before all global/static identifiers, except for
temporary labels. */
temporary labels. */
...
@@ -65,36 +70,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -65,36 +70,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}} \
%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
%{!fbuiltin: %{!fno-builtin: %{O*: \
-Dmemcpy=__builtin_memcpy \
-Dmemcmp=__builtin_memcmp \
-Dstrcpy=__builtin_strcpy \
-Dstrlen=__builtin_strlen }}}"
#ifdef CC1_SPEC
#ifdef CC1_SPEC
#undef CC1_SPEC
#undef CC1_SPEC
#endif
#endif
#ifndef NO_HALF_PIC
/* Turn on -mpic-extern by default. */
/* Turn on -mpic-extern and -fno-builtin by default. */
#define CC1_SPEC "\
#define CC1_SPEC "\
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{pic-none: -mno-half-pic} \
%{pic-none: -mno-half-pic} \
%{pic-lib: -mhalf-pic} \
%{pic-lib: -mhalf-pic} \
%{pic-extern: -mhalf-pic} \
%{pic-extern: -mhalf-pic} \
%{pic-calls: -mhalf-pic} \
%{pic-calls: -mhalf-pic} \
%{!pic-*: -mhalf-pic} \
%{!pic-*: -mhalf-pic}"
%{!fbuiltin: %{!fno-builtin: -fno-builtin}} \
%{save-temps: }"
#else
/* Turn on -fno-builtin by default. */
#define CC1_SPEC "\
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
%{!fbuiltin: %{!fno-builtin: -fno-builtin}} \
%{save-temps: }"
#endif
#ifdef ASM_SPEC
#ifdef ASM_SPEC
#undef ASM_SPEC
#undef ASM_SPEC
...
@@ -159,26 +148,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -159,26 +148,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define OPTIMIZATION_OPTIONS(LEVEL) \
#define OPTIMIZATION_OPTIONS(LEVEL) \
{ \
{ \
flag_gnu_linker = FALSE; \
flag_gnu_linker = FALSE; \
\
if (LEVEL) \
{ \
flag_omit_frame_pointer = TRUE; \
flag_thread_jumps = TRUE; \
} \
\
if (LEVEL >= 2) \
{ \
flag_strength_reduce = TRUE; \
flag_cse_follow_jumps = TRUE; \
flag_expensive_optimizations = TRUE; \
flag_rerun_cse_after_loop = TRUE; \
} \
\
\
if (LEVEL >= 3) \
if (LEVEL >= 3) \
{ \
flag_inline_functions = TRUE; \
flag_inline_functions = TRUE; \
} \
}
}
/* A C expression that is 1 if the RTX X is a constant which is a
/* A C expression that is 1 if the RTX X is a constant which is a
...
@@ -197,6 +170,51 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -197,6 +170,51 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CONSTANT_ADDRESS_P(X) \
#define CONSTANT_ADDRESS_P(X) \
(CONSTANT_P (X) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
(CONSTANT_P (X) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
that is a valid memory address for an instruction.
The MODE argument is the machine mode for the MEM expression
that wants to use this address. */
#undef GO_IF_LEGITIMATE_ADDRESS
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \
{ \
if (CONSTANT_P (X)) \
{ \
if (! HALF_PIC_P () || ! HALF_PIC_ADDRESS_P (X)) \
goto ADDR; \
} \
else \
{ \
GO_IF_INDEXING (X, ADDR); \
\
if (GET_CODE (X) == PLUS) \
{ \
rtx x1 = XEXP (X, 1); \
\
if (CONSTANT_P (x1)) \
{ \
if (! HALF_PIC_P () || ! HALF_PIC_ADDRESS_P (x1)) \
{ \
rtx x0 = XEXP (X, 0); \
GO_IF_INDEXING (x0, ADDR); \
} \
} \
} \
} \
}
/* Sometimes certain combinations of command options do not make sense
on a particular target machine. You can define a macro
`OVERRIDE_OPTIONS' to take account of this. This macro, if
defined, is executed once just after all the command options have
been parsed. */
#define OVERRIDE_OPTIONS \
{ \
if (TARGET_HALF_PIC) \
half_pic_init (); \
}
/* Define this macro if references to a symbol must be treated
/* Define this macro if references to a symbol must be treated
differently depending on something about the variable or
differently depending on something about the variable or
function named by the symbol (such as what section it is in).
function named by the symbol (such as what section it is in).
...
@@ -264,6 +282,15 @@ do \
...
@@ -264,6 +282,15 @@ do \
} \
} \
while (0)
while (0)
/* This says what to print at the end of the assembly file */
#define ASM_FILE_END(STREAM) \
do \
{ \
if (HALF_PIC_P ()) \
HALF_PIC_FINISH (STREAM); \
} \
while (0)
/* Tell collect that the object format is OSF/rose. */
/* Tell collect that the object format is OSF/rose. */
#define OBJECT_FORMAT_ROSE
#define OBJECT_FORMAT_ROSE
...
...
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