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
a4781348
Commit
a4781348
authored
Dec 04, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cse.c (equiv_constant): Fix pasto.
From-SVN: r142432
parent
5ab9749e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletions
+32
-1
gcc/ChangeLog
+4
-0
gcc/cse.c
+1
-1
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/union-4.c
+23
-0
No files found.
gcc/ChangeLog
View file @
a4781348
2008
-
12
-
04
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
cse
.
c
(
equiv_constant
)
:
Fix
pasto
.
2008
-
12
-
04
Nick
Clifton
<
nickc
@redhat
.
com
>
*
config
/
stormy16
/
stormy16
.
md
:
Remove
extraneous
spaces
and
gcc/cse.c
View file @
a4781348
...
...
@@ -3651,7 +3651,7 @@ equiv_constant (rtx x)
if
(
REG_P
(
SUBREG_REG
(
x
))
&&
(
new_rtx
=
equiv_constant
(
SUBREG_REG
(
x
)))
!=
0
)
return
simplify_subreg
(
GET_MODE
(
x
),
SUBREG_REG
(
x
)
,
return
simplify_subreg
(
GET_MODE
(
x
),
new_rtx
,
GET_MODE
(
SUBREG_REG
(
x
)),
SUBREG_BYTE
(
x
));
return
0
;
...
...
gcc/testsuite/ChangeLog
View file @
a4781348
2008-12-04 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/union-4.c: New test.
2008-12-03 H.J. Lu <hongjiu.lu@intel.com>
* g++.old-deja/g++.eh/badalloc1.C: Add the missing "}".
...
...
gcc/testsuite/gcc.dg/union-4.c
0 → 100644
View file @
a4781348
/* { dg-do compile } */
/* { dg-options "-O -fdump-rtl-cse1" } */
extern
void
abort
(
void
);
typedef
unsigned
int
uint32
;
typedef
unsigned
long
long
uint64
;
typedef
union
{
uint32
i32
;
uint64
i64
;
}
u64
;
void
foo
(
void
)
{
u64
data
;
data
.
i64
=
1
;
if
(
data
.
i32
!=
1
)
abort
();
}
/* { dg-final { scan-rtl-dump-not "abort" "cse1" { target i?86-*-* } } } */
/* { dg-final { cleanup-rtl-dump "cse1" } } */
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