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
08786603
Commit
08786603
authored
Dec 02, 2009
by
Ulrich Weigand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to add file with last commit.
From-SVN: r154909
parent
368a05d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
gcc/testsuite/gcc.target/s390/pr42224.c
+36
-0
No files found.
gcc/testsuite/gcc.target/s390/pr42224.c
0 → 100644
View file @
08786603
/* { dg-do compile } */
/* { dg-options "-O0" } */
typedef
char
*
__char_ptr32
__attribute__
((
mode
(
SI
)
));
typedef
__char_ptr32
*
__char_ptr_char_ptr32
__attribute__
((
mode
(
SI
)));
void
to_ptr32
(
int
x
)
{
__char_ptr32
ptr
=
(
__char_ptr32
)
x
;
}
void
to_int
(
__char_ptr32
ptr
)
{
int
x
=
(
int
)
ptr
;
}
__char_ptr_char_ptr32
to_ptr32_ptr32
(
char
**
ptr64
)
{
int
argc
;
__char_ptr_char_ptr32
short_argv
;
for
(
argc
=
0
;
ptr64
[
argc
];
argc
++
);
short_argv
=
(
__char_ptr_char_ptr32
)
malloc32
(
sizeof
(
__char_ptr32
)
*
(
argc
+
1
));
for
(
argc
=
0
;
ptr64
[
argc
];
argc
++
)
short_argv
[
argc
]
=
(
__char_ptr32
)
strdup32
(
ptr64
[
argc
]);
short_argv
[
argc
]
=
(
__char_ptr32
)
0
;
return
short_argv
;
}
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