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
fb0a2460
Commit
fb0a2460
authored
Mar 09, 2007
by
Alexandre Oliva
Committed by
Alexandre Oliva
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* recog.c (decode_asm_operands): No mixed declarations and code.
From-SVN: r122746
parent
8e4425d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
gcc/ChangeLog
+4
-0
gcc/recog.c
+9
-4
No files found.
gcc/ChangeLog
View file @
fb0a2460
2007-03-09 Alexandre Oliva <aoliva@redhat.com>
* recog.c (decode_asm_operands): No mixed declarations and code.
2007-03-09 Alexandre Oliva <aoliva@redhat.com>
* rtl.def (ASM_INPUT): Add location.
* rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
(ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
...
...
gcc/recog.c
View file @
fb0a2460
/* Subroutines used by or related to instruction recognition.
Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
This file is part of GCC.
...
...
@@ -1554,11 +1555,13 @@ decode_asm_operands (rtx body, rtx *operands, rtx **operand_locs,
&&
GET_CODE
(
XVECEXP
(
body
,
0
,
0
))
==
SET
&&
GET_CODE
(
SET_SRC
(
XVECEXP
(
body
,
0
,
0
)))
==
ASM_OPERANDS
)
{
asmop
=
SET_SRC
(
XVECEXP
(
body
,
0
,
0
));
int
nparallel
=
XVECLEN
(
body
,
0
);
/* Includes CLOBBERs. */
int
nin
=
ASM_OPERANDS_INPUT_LENGTH
(
asmop
)
;
int
nin
;
int
nout
=
0
;
/* Does not include CLOBBERs. */
asmop
=
SET_SRC
(
XVECEXP
(
body
,
0
,
0
));
nin
=
ASM_OPERANDS_INPUT_LENGTH
(
asmop
);
/* At least one output, plus some CLOBBERs. */
/* The outputs are in the SETs.
...
...
@@ -1596,8 +1599,10 @@ decode_asm_operands (rtx body, rtx *operands, rtx **operand_locs,
{
/* No outputs, but some CLOBBERs. */
int
nin
;
asmop
=
XVECEXP
(
body
,
0
,
0
);
int
nin
=
ASM_OPERANDS_INPUT_LENGTH
(
asmop
);
nin
=
ASM_OPERANDS_INPUT_LENGTH
(
asmop
);
for
(
i
=
0
;
i
<
nin
;
i
++
)
{
...
...
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