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
771151dc
Commit
771151dc
authored
Jun 19, 2005
by
Richard Henderson
Committed by
Richard Henderson
Jun 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/tree-ssa/pr21985.c: Use size_t.
From-SVN: r101196
parent
7f7b1718
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/tree-ssa/pr21985.c
+6
-5
No files found.
gcc/testsuite/ChangeLog
View file @
771151dc
2005
-
06
-
19
Richard
Henderson
<
rth
@redhat
.
com
>
*
gcc
.
dg
/
tree
-
ssa
/
pr21985
.
c
:
Use
size_t
.
2005
-
06
-
19
Joseph
S
.
Myers
<
joseph
@codesourcery
.
com
>
2005
-
06
-
19
Joseph
S
.
Myers
<
joseph
@codesourcery
.
com
>
*
g
++
.
dg
/
abi
/
mangle24
.
C
,
g
++
.
dg
/
abi
/
mangle25
.
C
:
New
tests
.
*
g
++
.
dg
/
abi
/
mangle24
.
C
,
g
++
.
dg
/
abi
/
mangle25
.
C
:
New
tests
.
...
...
gcc/testsuite/gcc.dg/tree-ssa/pr21985.c
View file @
771151dc
...
@@ -10,20 +10,21 @@ struct
...
@@ -10,20 +10,21 @@ struct
}
a
[
100
];
}
a
[
100
];
}
a
;
}
a
;
void
foo
(
unsigned
);
typedef
__SIZE_TYPE__
size_t
;
unsigned
*
bar
(
void
);
void
foo
(
size_t
);
size_t
*
bar
(
void
);
int
int
main
(
void
)
main
(
void
)
{
{
unsigned
*
b
=
bar
();
size_t
*
b
=
bar
();
/* This should be folded. */
/* This should be folded. */
foo
(
&
a
.
a
[
50
].
a
-
&
a
.
a
[
33
].
b
);
foo
(
&
a
.
a
[
50
].
a
-
&
a
.
a
[
33
].
b
);
foo
((
unsigned
)
&
a
.
a
[
50
].
b
-
(
unsigned
)
&
a
);
foo
((
size_t
)
&
a
.
a
[
50
].
b
-
(
size_t
)
&
a
);
/* And this should not. */
/* And this should not. */
foo
((
unsigned
)
&
b
-
(
unsigned
)
b
);
foo
((
size_t
)
&
b
-
(
size_t
)
b
);
return
0
;
return
0
;
}
}
...
...
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