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
20d83a04
Commit
20d83a04
authored
26 years ago
by
Richard Henderson
Committed by
Richard Henderson
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/990208-1.c: New test.
From-SVN: r25101
parent
acd693d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/990208-1.c
+46
-0
No files found.
gcc/testsuite/ChangeLog
View file @
20d83a04
Mon Feb 8 21:42:57 1999 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/990208-1.c: New test.
1999-02-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
* g++.dg/special/ecos.exp: New driver for new tests with special
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.c-torture/execute/990208-1.c
0 → 100644
View file @
20d83a04
/* As a quality of implementation issue, we should not prevent inlining
of function explicitly marked inline just because a label therein had
its address taken. */
#ifndef NO_LABEL_VALUES
static
void
*
ptr1
,
*
ptr2
;
static
__inline__
void
doit
(
void
**
pptr
,
int
cond
)
{
if
(
cond
)
{
here:
*
pptr
=
&&
here
;
}
}
static
void
f
(
int
cond
)
{
doit
(
&
ptr1
,
cond
);
}
static
void
g
(
int
cond
)
{
doit
(
&
ptr2
,
cond
);
}
static
void
bar
(
void
);
int
main
()
{
f
(
1
);
bar
();
g
(
1
);
#ifdef __OPTIMIZE__
if
(
ptr1
==
ptr2
)
abort
();
#endif
exit
(
0
);
}
void
bar
(
void
)
{
}
#else
/* NO_LABEL_VALUES */
int
main
()
{
exit
(
0
);
}
#endif
This diff is collapsed.
Click to expand it.
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