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
b552441b
Commit
b552441b
authored
Apr 20, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r805
parent
7f211789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
gcc/expr.c
+26
-7
No files found.
gcc/expr.c
View file @
b552441b
...
...
@@ -2935,11 +2935,27 @@ expand_expr (exp, target, tmode, modifier)
switch
(
code
)
{
case
LABEL_DECL
:
if
(
modifier
==
EXPAND_INITIALIZER
)
forced_labels
=
gen_rtx
(
EXPR_LIST
,
VOIDmode
,
label_rtx
(
exp
),
forced_labels
);
return
gen_rtx
(
MEM
,
FUNCTION_MODE
,
gen_rtx
(
LABEL_REF
,
Pmode
,
label_rtx
(
exp
)));
{
tree
function
=
decl_function_context
(
exp
);
/* Handle using a label in a containing function. */
if
(
function
!=
current_function_decl
&&
function
!=
0
)
{
struct
function
*
p
=
find_function_data
(
function
);
/* Allocate in the memory associated with the function
that the label is in. */
push_obstacks
(
p
->
function_obstack
,
p
->
function_maybepermanent_obstack
);
p
->
forced_labels
=
gen_rtx
(
EXPR_LIST
,
VOIDmode
,
label_rtx
(
exp
),
p
->
forced_labels
);
pop_obstacks
();
}
else
if
(
modifier
==
EXPAND_INITIALIZER
)
forced_labels
=
gen_rtx
(
EXPR_LIST
,
VOIDmode
,
label_rtx
(
exp
),
forced_labels
);
return
gen_rtx
(
MEM
,
FUNCTION_MODE
,
gen_rtx
(
LABEL_REF
,
Pmode
,
label_rtx
(
exp
)));
}
case
PARM_DECL
:
if
(
DECL_RTL
(
exp
)
==
0
)
...
...
@@ -3148,8 +3164,11 @@ expand_expr (exp, target, tmode, modifier)
if
(
TREE_STATIC
(
exp
)
&&
(
mode
==
BLKmode
||
TREE_ADDRESSABLE
(
exp
)))
{
rtx
constructor
=
output_constant_def
(
exp
);
if
(
!
memory_address_p
(
GET_MODE
(
constructor
),
XEXP
(
constructor
,
0
)))
if
(
modifier
!=
EXPAND_CONST_ADDRESS
&&
modifier
!=
EXPAND_INITIALIZER
&&
modifier
!=
EXPAND_SUM
&&
!
memory_address_p
(
GET_MODE
(
constructor
),
XEXP
(
constructor
,
0
)))
constructor
=
change_address
(
constructor
,
VOIDmode
,
XEXP
(
constructor
,
0
));
return
constructor
;
...
...
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