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
b86db3eb
Commit
b86db3eb
authored
Jul 19, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Jul 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional ENABLE_CHECKING code.
From-SVN: r35136
parent
5cc80caa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
gcc/ChangeLog
+7
-0
gcc/gcse.c
+6
-2
No files found.
gcc/ChangeLog
View file @
b86db3eb
2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
* gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
larger than the array of cuids.
(alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
cuids.
2000-07-19 Bruce Korb <bkorb@gnu.org>
* fixinc/fixincl.c: Convert to using a table of environment variables
...
...
gcc/gcse.c
View file @
b86db3eb
...
...
@@ -386,7 +386,11 @@ static int *uid_cuid;
static
int
max_uid
;
/* Get the cuid of an insn. */
#ifdef ENABLE_CHECKING
#define INSN_CUID(INSN) (INSN_UID (INSN) > max_uid ? (abort (), 0) : uid_cuid[INSN_UID (INSN)])
#else
#define INSN_CUID(INSN) (uid_cuid[INSN_UID (INSN)])
#endif
/* Number of cuids. */
static
int
max_cuid
;
...
...
@@ -896,9 +900,9 @@ alloc_gcse_mem (f)
for
(
insn
=
f
,
i
=
0
;
insn
;
insn
=
NEXT_INSN
(
insn
))
{
if
(
GET_RTX_CLASS
(
GET_CODE
(
insn
))
==
'i'
)
INSN_CUID
(
insn
)
=
i
++
;
uid_cuid
[
INSN_UID
(
insn
)]
=
i
++
;
else
INSN_CUID
(
insn
)
=
i
;
uid_cuid
[
INSN_UID
(
insn
)]
=
i
;
}
/* Create a table mapping cuids to insns. */
...
...
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