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
6b6ca844
Commit
6b6ca844
authored
Jan 13, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_insn): Ignore insns whose names begin with '*'.
From-SVN: r8742
parent
7eb23718
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
gcc/gencodes.c
+5
-4
gcc/genemit.c
+5
-4
gcc/genflags.c
+7
-5
No files found.
gcc/gencodes.c
View file @
6b6ca844
...
...
@@ -2,7 +2,7 @@
- some macros CODE_FOR_... giving the insn_code_number value
for each of the defined standard insn names.
Copyright (C) 1987, 1991 Free Software Foundation, Inc.
Copyright (C) 1987, 1991
, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -45,9 +45,10 @@ static void
gen_insn
(
insn
)
rtx
insn
;
{
/* Don't mention instructions whose names are the null string.
They are in the machine description just to be recognized. */
if
(
strlen
(
XSTR
(
insn
,
0
))
!=
0
)
/* Don't mention instructions whose names are the null string
or begin with '*'. They are in the machine description just
to be recognized. */
if
(
XSTR
(
insn
,
0
)[
0
]
!=
0
&&
XSTR
(
insn
,
0
)[
0
]
!=
'*'
)
printf
(
" CODE_FOR_%s = %d,
\n
"
,
XSTR
(
insn
,
0
),
insn_code_number
);
}
...
...
gcc/genemit.c
View file @
6b6ca844
/* Generate code from machine description to emit insns as rtl.
Copyright (C) 1987, 1988, 1991, 1994 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1991, 1994
, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -335,9 +335,10 @@ gen_insn (insn)
}
}
/* Don't mention instructions whose names are the null string.
They are in the machine description just to be recognized. */
if
(
strlen
(
XSTR
(
insn
,
0
))
==
0
)
/* Don't mention instructions whose names are the null string
or begin with '*'. They are in the machine description just
to be recognized. */
if
(
XSTR
(
insn
,
0
)[
0
]
==
0
||
XSTR
(
insn
,
0
)[
0
]
==
'*'
)
return
;
/* Find out how many operands this function has,
...
...
gcc/genflags.c
View file @
6b6ca844
...
...
@@ -2,7 +2,7 @@
- some flags HAVE_... saying which simple standard instructions are
available for this machine.
Copyright (C) 1987, 1991 Free Software Foundation, Inc.
Copyright (C) 1987, 1991
, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -123,12 +123,14 @@ gen_insn (insn)
struct
obstack
*
obstack_ptr
;
int
len
;
/* Don't mention instructions whose names are the null string
.
They are in the machine description just to be recognized. */
len
=
strlen
(
name
);
if
(
len
==
0
)
/* Don't mention instructions whose names are the null string
or begin with '*'. They are in the machine description just
to be recognized. */
if
(
name
[
0
]
==
0
||
name
[
0
]
==
'*'
)
return
;
len
=
strlen
(
name
);
if
(
len
>
max_id_len
)
max_id_len
=
len
;
...
...
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