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
5d597439
Commit
5d597439
authored
Jun 18, 2008
by
Andy Hutchinson
Committed by
Andy Hutchinson
Jun 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/20020619-1.c: Correct for targets without 32 bit int.
From-SVN: r136922
parent
8612ae05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.c-torture/execute/20020619-1.c
+10
-3
No files found.
gcc/testsuite/ChangeLog
View file @
5d597439
2008-06-18 Andy Hutchinson <hutchinsonandy@aim.com>
* gcc.c-torture/execute/20020619-1.c: Correct for targets
without 32 bit int.
2008-06-18 Andy Hutchinson <hutchinsonandy@aim.com>
* gcc.c-torture/execute/ieee/20000320-1.x: Skip for AVR target.
* gcc.c-torture/execute/ieee/rbug.x: Ditto.
* gcc.c-torture/execute/ieee/pr30704.x: Add new file. Skip for AVR
...
...
gcc/testsuite/gcc.c-torture/execute/20020619-1.c
View file @
5d597439
static
int
ref
(
void
)
#if (__SIZEOF_INT__ == 4)
typedef
int
int32
;
#elif (__SIZEOF_LONG__ == 4)
typedef
long
int32
;
#else
#error Add target support for int32
#endif
static
int32
ref
(
void
)
{
union
{
char
c
[
5
];
int
i
;
int
32
i
;
}
u
;
__builtin_memset
(
&
u
,
0
,
sizeof
(
u
));
...
...
@@ -16,7 +23,7 @@ static int ref(void)
int
main
()
{
int
b
=
ref
();
int
32
b
=
ref
();
if
(
b
!=
0x01020304
&&
b
!=
0x04030201
)
abort
();
...
...
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