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
e43634ef
Commit
e43634ef
authored
Sep 16, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(GO_IF_LEGITIMATE_ADDRESS): Disallow SYMBOL_REF for current function.
From-SVN: r10369
parent
a5dfb4ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
gcc/config/alpha/alpha.h
+0
-9
No files found.
gcc/config/alpha/alpha.h
View file @
e43634ef
...
@@ -1170,10 +1170,6 @@ __enable_execute_stack (addr) \
...
@@ -1170,10 +1170,6 @@ __enable_execute_stack (addr) \
forms can be surrounded with an AND that clear the low-order three bits;
forms can be surrounded with an AND that clear the low-order three bits;
this is an "unaligned" access.
this is an "unaligned" access.
We also allow a SYMBOL_REF that is the name of the current function as
valid address. This is for CALL_INSNs. It cannot be used in any other
context.
First define the basic valid address. */
First define the basic valid address. */
#define GO_IF_LEGITIMATE_SIMPLE_ADDRESS(MODE, X, ADDR) \
#define GO_IF_LEGITIMATE_SIMPLE_ADDRESS(MODE, X, ADDR) \
...
@@ -1191,8 +1187,6 @@ __enable_execute_stack (addr) \
...
@@ -1191,8 +1187,6 @@ __enable_execute_stack (addr) \
/* Now accept the simple address, or, for DImode only, an AND of a simple
/* Now accept the simple address, or, for DImode only, an AND of a simple
address that turns off the low three bits. */
address that turns off the low three bits. */
extern
char
*
current_function_name
;
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \
#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \
{ GO_IF_LEGITIMATE_SIMPLE_ADDRESS (MODE, X, ADDR); \
{ GO_IF_LEGITIMATE_SIMPLE_ADDRESS (MODE, X, ADDR); \
if ((MODE) == DImode \
if ((MODE) == DImode \
...
@@ -1200,9 +1194,6 @@ extern char *current_function_name;
...
@@ -1200,9 +1194,6 @@ extern char *current_function_name;
&& GET_CODE (XEXP (X, 1)) == CONST_INT \
&& GET_CODE (XEXP (X, 1)) == CONST_INT \
&& INTVAL (XEXP (X, 1)) == -8) \
&& INTVAL (XEXP (X, 1)) == -8) \
GO_IF_LEGITIMATE_SIMPLE_ADDRESS (MODE, XEXP (X, 0), ADDR); \
GO_IF_LEGITIMATE_SIMPLE_ADDRESS (MODE, XEXP (X, 0), ADDR); \
if ((MODE) == Pmode && GET_CODE (X) == SYMBOL_REF \
&& ! strcmp (XSTR (X, 0), current_function_name)) \
goto ADDR; \
}
}
/* Try machine-dependent ways of modifying an illegitimate address
/* Try machine-dependent ways of modifying an illegitimate address
...
...
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