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
1bef1e7c
Commit
1bef1e7c
authored
Oct 20, 1999
by
Mark Mitchell
Committed by
Mark Mitchell
Oct 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (c_expand_asm_operands): Fix typo.
From-SVN: r30095
parent
92115015
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletions
+16
-1
gcc/ChangeLog
+4
-0
gcc/c-typeck.c
+1
-1
gcc/testsuite/gcc.dg/asm-1.c
+11
-0
No files found.
gcc/ChangeLog
View file @
1bef1e7c
Tue
Oct
19
17
:
22
:
39
1999
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
c
-
typeck
.
c
(
c_expand_asm_operands
)
:
Fix
typo
.
Tue
Oct
19
18
:
42
:
58
1999
Bernd
Schmidt
<
bernds
@cygnus
.
co
.
uk
>
Tue
Oct
19
18
:
42
:
58
1999
Bernd
Schmidt
<
bernds
@cygnus
.
co
.
uk
>
*
arm
.
c
(
fpu_rhs_operand
)
:
Verify
modes
.
*
arm
.
c
(
fpu_rhs_operand
)
:
Verify
modes
.
...
...
gcc/c-typeck.c
View file @
1bef1e7c
...
@@ -6538,7 +6538,7 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
...
@@ -6538,7 +6538,7 @@ c_expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
||
TREE_CODE
(
output
)
==
FIX_FLOOR_EXPR
||
TREE_CODE
(
output
)
==
FIX_FLOOR_EXPR
||
TREE_CODE
(
output
)
==
FIX_ROUND_EXPR
||
TREE_CODE
(
output
)
==
FIX_ROUND_EXPR
||
TREE_CODE
(
output
)
==
FIX_CEIL_EXPR
)
||
TREE_CODE
(
output
)
==
FIX_CEIL_EXPR
)
output
=
TREE_OPERAND
(
output
,
1
);
output
=
TREE_OPERAND
(
output
,
0
);
lvalue_or_else
(
o
[
i
],
"invalid lvalue in asm statement"
);
lvalue_or_else
(
o
[
i
],
"invalid lvalue in asm statement"
);
}
}
...
...
gcc/testsuite/gcc.dg/asm-1.c
0 → 100644
View file @
1bef1e7c
/* { dg-do compile { target i?86-*-* } } */
struct
x
{
int
selector
;
};
void
f
()
{
struct
x
*
addr
;
__asm__
(
"mov %%gs,%0"
:
"=r"
((
unsigned
short
)
addr
->
selector
));
/* { dg-error "lvalue" "casts make rvalues" } */
}
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