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
f8c8d811
Commit
f8c8d811
authored
Mar 21, 2003
by
Alan Modra
Committed by
Alan Modra
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test.
From-SVN: r64635
parent
4bddea4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/compile/20030320-1.c
+44
-0
No files found.
gcc/testsuite/ChangeLog
View file @
f8c8d811
2003-03-21 Alan Modra <amodra@bigpond.net.au>
* gcc.c-torture/compile/20030320-1.c: New.
2003-03-20 Roger Sayle <roger@eyesopen.com>
* gcc.dg/builtins-6.c: New test case.
...
...
gcc/testsuite/gcc.c-torture/compile/20030320-1.c
0 → 100644
View file @
f8c8d811
/* Failed on powerpc64-linux with a segfault due to ifcvt generating
conditional returns without updating dominance info.
Extracted from glibc's dl-load.c. */
typedef
unsigned
long
size_t
;
static
size_t
is_dst
(
const
char
*
start
,
const
char
*
name
,
const
char
*
str
,
int
is_path
,
int
secure
)
{
size_t
len
;
_Bool
is_curly
=
0
;
if
(
name
[
0
]
==
'{'
)
{
is_curly
=
1
;
++
name
;
}
len
=
0
;
while
(
name
[
len
]
==
str
[
len
]
&&
name
[
len
]
!=
'\0'
)
++
len
;
if
(
is_curly
)
{
if
(
name
[
len
]
!=
'}'
)
return
0
;
--
name
;
len
+=
2
;
}
else
if
(
name
[
len
]
!=
'\0'
&&
name
[
len
]
!=
'/'
&&
(
!
is_path
||
name
[
len
]
!=
':'
))
return
0
;
if
(
__builtin_expect
(
secure
,
0
)
&&
((
name
[
len
]
!=
'\0'
&&
(
!
is_path
||
name
[
len
]
!=
':'
))
||
(
name
!=
start
+
1
&&
(
!
is_path
||
name
[
-
2
]
!=
':'
))))
return
0
;
return
len
;
}
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