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
1f3b6a3e
Commit
1f3b6a3e
authored
Apr 03, 1998
by
Jim Wilson
Committed by
Jim Wilson
Apr 03, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86 regex.c failure from Jim Meyering.
* compile/980329-1.c: New test. From-SVN: r18975
parent
b3e401c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+3
-0
gcc/testsuite/gcc.c-torture/compile/980329-1.c
+72
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
1f3b6a3e
Fri Apr 3 12:27:49 1998 Jim Wilson <wilson@cygnus.com>
* compile/980329-1.c: New test.
Mon Feb 23 15:16:53 1998 Robert Lipe <robertl@dgii.com>
From Bruno Haible <haible@ilog.fr>:
...
...
gcc/testsuite/gcc.c-torture/compile/980329-1.c
0 → 100644
View file @
1f3b6a3e
typedef
unsigned
long
int
size_t
;
struct
re_pattern_buffer
{
unsigned
char
*
buffer
;
unsigned
long
int
used
;
};
struct
re_registers
{
int
*
start
;
};
static
const
char
**
regstart
,
**
regend
;
static
const
char
**
old_regend
;
static
int
re_match_2_internal
(
struct
re_pattern_buffer
*
bufp
,
struct
re_registers
*
regs
)
{
unsigned
char
*
p
=
bufp
->
buffer
;
unsigned
char
*
pend
=
p
+
bufp
->
used
;
for
(;;)
{
int
highest_active_reg
=
1
;
if
(
bufp
)
{
int
i
;
for
(
i
=
1
;;
i
++
)
regs
->
start
[
i
]
=
0
;
}
switch
((
unsigned
int
)
*
p
++
)
{
case
1
:
{
unsigned
char
r
=
*
p
;
if
(
r
)
highest_active_reg
=
r
;
}
if
(
p
+
2
==
pend
)
{
char
is_a_jump_n
=
0
;
int
mcnt
=
0
;
unsigned
char
*
p1
;
p1
=
p
+
2
;
switch
(
*
p1
++
)
{
case
2
:
is_a_jump_n
=
1
;
case
1
:
do
{
do
{
mcnt
=
*
p1
;
}
while
(
0
);
p1
+=
2
;
}
while
(
0
);
if
(
is_a_jump_n
)
p1
=
0
;
}
if
(
mcnt
&&
*
p1
==
0
)
{
unsigned
r
;
for
(
r
=
0
;
r
<
(
unsigned
)
*
p
+
(
unsigned
)
*
(
p
+
1
);
r
++
)
{
if
(
regend
[
0
]
>=
regstart
[
r
])
regend
[
r
]
=
old_regend
[
r
];
}
do
{
while
(
0
<
highest_active_reg
+
1
)
{
}
}
while
(
0
);
}
}
}
}
return
-
1
;
}
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