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
42f3a0a0
Commit
42f3a0a0
authored
Oct 16, 2003
by
R. Kelley Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CRLF problem with 20031012-1.c
From-SVN: r72543
parent
4d67c199
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
gcc/testsuite/gcc.c-torture/execute/20031012-1.c
+32
-32
No files found.
gcc/testsuite/gcc.c-torture/execute/20031012-1.c
View file @
42f3a0a0
/* PR optimization/8750
Used to fail under Cygwin with
-O2 -fomit-frame-pointer
Testcase by David B. Trout */
#if defined(STACK_SIZE) && STACK_SIZE < 16000
#define ARRAY_SIZE (STACK_SIZE / 2)
#define STRLEN (ARRAY_SIZE - 9)
#else
#define ARRAY_SIZE 15000
#define STRLEN 13371
#endif
extern
void
*
memset
(
void
*
,
int
,
__SIZE_TYPE__
);
extern
void
abort
(
void
);
static
void
foo
()
{
char
a
[
ARRAY_SIZE
];
a
[
0
]
=
0
;
memset
(
&
a
[
0
],
0xCD
,
STRLEN
);
a
[
STRLEN
]
=
0
;
if
(
strlen
(
a
)
!=
STRLEN
)
abort
();
}
int
main
(
int
argc
,
char
*
argv
[]
)
{
foo
();
return
0
;
}
/* PR optimization/8750
Used to fail under Cygwin with
-O2 -fomit-frame-pointer
Testcase by David B. Trout */
#if defined(STACK_SIZE) && STACK_SIZE < 16000
#define ARRAY_SIZE (STACK_SIZE / 2)
#define STRLEN (ARRAY_SIZE - 9)
#else
#define ARRAY_SIZE 15000
#define STRLEN 13371
#endif
extern
void
*
memset
(
void
*
,
int
,
__SIZE_TYPE__
);
extern
void
abort
(
void
);
static
void
foo
()
{
char
a
[
ARRAY_SIZE
];
a
[
0
]
=
0
;
memset
(
&
a
[
0
],
0xCD
,
STRLEN
);
a
[
STRLEN
]
=
0
;
if
(
strlen
(
a
)
!=
STRLEN
)
abort
();
}
int
main
(
int
argc
,
char
*
argv
[]
)
{
foo
();
return
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