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
dd16cb7c
Commit
dd16cb7c
authored
Dec 21, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Dec 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New compilation test case.
From-SVN: r38414
parent
beed66d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/compile/20001221-1.c
+70
-0
No files found.
gcc/testsuite/ChangeLog
View file @
dd16cb7c
2000-12-21 Bernd Schmidt <bernds@redhat.com>
* gcc.c-torture/compile/20001221-1.c: New test.
2000-12-20 Richard Henderson <rth@redhat.com>
* g++.old-deja/g++.pt/crash36.C: Update error lines.
...
...
gcc/testsuite/gcc.c-torture/compile/20001221-1.c
0 → 100644
View file @
dd16cb7c
static
void
foo
()
{
long
maplength
;
int
type
;
{
const
long
nibbles
=
8
;
char
buf1
[
nibbles
+
1
];
char
buf2
[
nibbles
+
1
];
char
buf3
[
nibbles
+
1
];
buf1
[
nibbles
]
=
'\0'
;
buf2
[
nibbles
]
=
'\0'
;
buf3
[
nibbles
]
=
'\0'
;
((
nibbles
)
<=
16
?
(({
void
*
__s
=
(
buf1
);
union
{
unsigned
int
__ui
;
unsigned
short
int
__usi
;
unsigned
char
__uc
;
}
*
__u
=
__s
;
unsigned
char
__c
=
(
unsigned
char
)(
'0'
);
switch
((
unsigned
int
)
(
nibbles
))
{
case
16
:
__u
->
__ui
=
__c
*
0x01010101
;
__u
=
__extension__
((
void
*
)
__u
+
4
);
case
12
:
__u
->
__ui
=
__c
*
0x01010101
;
__u
=
__extension__
((
void
*
)
__u
+
4
);
case
0
:
break
;
}
__s
;
}))
:
0
);
((
nibbles
)
<=
16
?
(({
void
*
__s
=
(
buf2
);
union
{
unsigned
int
__ui
;
unsigned
short
int
__usi
;
unsigned
char
__uc
;
}
*
__u
=
__s
;
unsigned
char
__c
=
(
unsigned
char
)(
'0'
);
switch
((
unsigned
int
)
(
nibbles
))
{
case
16
:
__u
->
__ui
=
__c
*
0x01010101
;
__u
=
__extension__
((
void
*
)
__u
+
4
);
case
12
:
__u
->
__ui
=
__c
*
0x01010101
;
__u
=
__extension__
((
void
*
)
__u
+
4
);
case
8
:
__u
->
__ui
=
__c
*
0x01010101
;
__u
=
__extension__
((
void
*
)
__u
+
4
);
case
4
:
__u
->
__ui
=
__c
*
0x01010101
;
case
0
:
break
;
}
__s
;
}))
:
0
);
}
}
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