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
3c7471ff
Commit
3c7471ff
authored
Jul 21, 2007
by
Rask Ingemann Lambertsen
Committed by
Rask Ingemann Lambertsen
Jul 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/inline-23.c: Use pointer sized type for cast from pointer.
From-SVN: r126809
parent
a2c996f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/inline-23.c
+3
-2
No files found.
gcc/testsuite/ChangeLog
View file @
3c7471ff
2007
-
07
-
21
Rask
Ingemann
Lambertsen
<
rask
@sygehus
.
dk
>
*
gcc
.
dg
/
inline
-
23
.
c
:
Use
pointer
sized
type
for
cast
from
pointer
.
2007
-
07
-
20
Richard
Sandiford
<
richard
@codesourcery
.
com
>
2007
-
07
-
20
Richard
Sandiford
<
richard
@codesourcery
.
com
>
*
gcc
.
target
/
mips
/
mips
.
exp
(
is_gp32_flag
)
:
Return
true
for
-
msmartmips
.
*
gcc
.
target
/
mips
/
mips
.
exp
(
is_gp32_flag
)
:
Return
true
for
-
msmartmips
.
gcc/testsuite/gcc.dg/inline-23.c
View file @
3c7471ff
...
@@ -2,16 +2,17 @@
...
@@ -2,16 +2,17 @@
/* { dg-options "-std=gnu89" } */
/* { dg-options "-std=gnu89" } */
/* Make sure we can inline a varargs function whose variable arguments
/* Make sure we can inline a varargs function whose variable arguments
are not used. See PR32493. */
are not used. See PR32493. */
#include <stddef.h>
static
inline
__attribute__
((
always_inline
))
void
__check_printsym_format
(
const
static
inline
__attribute__
((
always_inline
))
void
__check_printsym_format
(
const
char
*
fmt
,
...)
char
*
fmt
,
...)
{
{
}
}
static
inline
__attribute__
((
always_inline
))
void
print_symbol
(
const
char
*
fmt
,
static
inline
__attribute__
((
always_inline
))
void
print_symbol
(
const
char
*
fmt
,
unsigned
long
addr
)
ptrdiff_t
addr
)
{
{
__check_printsym_format
(
fmt
,
""
);
__check_printsym_format
(
fmt
,
""
);
}
}
void
do_initcalls
(
void
**
call
)
void
do_initcalls
(
void
**
call
)
{
{
print_symbol
(
": %s()"
,
(
unsigned
long
)
*
call
);
print_symbol
(
": %s()"
,
(
ptrdiff_t
)
*
call
);
}
}
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