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
ed045bef
Commit
ed045bef
authored
21 years ago
by
Paolo Bonzini
Committed by
Paolo Bonzini
21 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/pr14092-1.c: Use intptr_t for the cast.
From-SVN: r77649
parent
c0689841
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/pr14092-1.c
+5
-2
No files found.
gcc/testsuite/ChangeLog
View file @
ed045bef
2004-02-11 Paolo Bonzini <bonzini@gnu.org>
* gcc.dg/pr14092-1.c: Use intptr_t for the cast.
2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
* gcc.dg/ppc64-abi-3.c: New test.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/pr14092-1.c
View file @
ed045bef
...
...
@@ -4,14 +4,17 @@
*/
/* { dg-do compile } */
/* Define this so that we are more portable. The testcase in the
PR failed on 64-bit hosts. */
typedef
int
__attribute__
((
mode
(
__pointer__
)))
intptr_t
;
typedef
struct
_PLCI
{
unsigned
char
x
;
unsigned
char
buf
[
1
];
}
PLCI
;
void
nl_ind
(
PLCI
*
plci
)
{
plci
->
x
=
-
((
int
)(
plci
->
buf
))
&
3
;
plci
->
x
=
-
((
int
ptr_t
)(
plci
->
buf
))
&
3
;
}
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