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
7f070d5e
Commit
7f070d5e
authored
Sep 29, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_asm_operands): Fix errors in previous patches.
From-SVN: r12860
parent
8f6b2c91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
+10
-26
gcc/stmt.c
+10
-26
No files found.
gcc/stmt.c
View file @
7f070d5e
...
@@ -1422,12 +1422,12 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
...
@@ -1422,12 +1422,12 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
the worst that happens if we get it wrong is we issue an error
the worst that happens if we get it wrong is we issue an error
message. */
message. */
for
(
j
=
0
;
j
<
TREE_STRING_LENGTH
(
TREE_PURPOSE
(
tail
));
j
++
)
for
(
j
=
0
;
j
<
TREE_STRING_LENGTH
(
TREE_PURPOSE
(
tail
))
-
1
;
j
++
)
switch
(
TREE_STRING_POINTER
(
TREE_PURPOSE
(
tail
))[
j
])
switch
(
TREE_STRING_POINTER
(
TREE_PURPOSE
(
tail
))[
j
])
{
{
case
'+'
:
case
'+'
:
/* Make sure we can specify the matching operand. */
/* Make sure we can specify the matching operand. */
if
(
i
>
=
'0'
&&
i
<=
'9'
)
if
(
i
>
9
)
{
{
error
(
"output operand constraint %d contains `+'"
,
i
);
error
(
"output operand constraint %d contains `+'"
,
i
);
return
;
return
;
...
@@ -1545,7 +1545,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
...
@@ -1545,7 +1545,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
/* Make sure constraint has neither `=' nor `+'. */
/* Make sure constraint has neither `=' nor `+'. */
for
(
j
=
0
;
j
<
TREE_STRING_LENGTH
(
TREE_PURPOSE
(
tail
));
j
++
)
for
(
j
=
0
;
j
<
TREE_STRING_LENGTH
(
TREE_PURPOSE
(
tail
))
-
1
;
j
++
)
switch
(
TREE_STRING_POINTER
(
TREE_PURPOSE
(
tail
))[
j
])
switch
(
TREE_STRING_POINTER
(
TREE_PURPOSE
(
tail
))[
j
])
{
{
case
'+'
:
case
'='
:
case
'+'
:
case
'='
:
...
@@ -3448,29 +3448,13 @@ expand_decl (decl)
...
@@ -3448,29 +3448,13 @@ expand_decl (decl)
enum
machine_mode
reg_mode
enum
machine_mode
reg_mode
=
promote_mode
(
type
,
DECL_MODE
(
decl
),
&
unsignedp
,
0
);
=
promote_mode
(
type
,
DECL_MODE
(
decl
),
&
unsignedp
,
0
);
if
(
TREE_CODE
(
type
)
==
COMPLEX_TYPE
)
DECL_RTL
(
decl
)
=
gen_reg_rtx
(
reg_mode
);
{
mark_user_reg
(
DECL_RTL
(
decl
));
rtx
realpart
,
imagpart
;
enum
machine_mode
partmode
=
TYPE_MODE
(
TREE_TYPE
(
type
));
if
(
TREE_CODE
(
type
)
==
POINTER_TYPE
)
mark_reg_pointer
(
DECL_RTL
(
decl
),
/* For a complex type variable, make a CONCAT of two pseudos
(
TYPE_ALIGN
(
TREE_TYPE
(
TREE_TYPE
(
decl
)))
so that the real and imaginary parts
/
BITS_PER_UNIT
));
can be allocated separately. */
realpart
=
gen_reg_rtx
(
partmode
);
REG_USERVAR_P
(
realpart
)
=
1
;
imagpart
=
gen_reg_rtx
(
partmode
);
REG_USERVAR_P
(
imagpart
)
=
1
;
DECL_RTL
(
decl
)
=
gen_rtx
(
CONCAT
,
reg_mode
,
realpart
,
imagpart
);
}
else
{
DECL_RTL
(
decl
)
=
gen_reg_rtx
(
reg_mode
);
if
(
TREE_CODE
(
type
)
==
POINTER_TYPE
)
mark_reg_pointer
(
DECL_RTL
(
decl
),
(
TYPE_ALIGN
(
TREE_TYPE
(
TREE_TYPE
(
decl
)))
/
BITS_PER_UNIT
));
REG_USERVAR_P
(
DECL_RTL
(
decl
))
=
1
;
}
}
}
else
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
==
INTEGER_CST
)
else
if
(
TREE_CODE
(
DECL_SIZE
(
decl
))
==
INTEGER_CST
)
{
{
...
...
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