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
59608fe5
Commit
59608fe5
authored
Mar 16, 2016
by
H.J. Lu
Committed by
H.J. Lu
Mar 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run dos2unix on gcc.dg/uninit-19.c
* gcc.dg/uninit-19.c: Run dos2unix. From-SVN: r234260
parent
ab4c578f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
26 deletions
+30
-26
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/uninit-19.c
+26
-26
No files found.
gcc/testsuite/ChangeLog
View file @
59608fe5
2016-03-16 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/uninit-19.c: Run dos2unix.
2016-03-16 Marek Polacek <polacek@redhat.com>
PR c/70093
...
...
gcc/testsuite/gcc.dg/uninit-19.c
View file @
59608fe5
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
int
a
,
l
,
m
;
float
*
b
;
float
c
,
d
,
e
,
g
,
h
;
unsigned
char
i
,
k
;
void
fn1
(
int
p1
,
float
*
f1
,
float
*
f2
,
float
*
f3
,
unsigned
char
*
c1
,
float
*
f4
,
unsigned
char
*
c2
,
float
*
p10
)
{
if
(
p1
&
8
)
b
[
3
]
=
p10
[
a
];
/* 13. */
}
void
fn2
()
{
float
*
n
;
if
(
l
&
6
)
n
=
&
c
+
m
;
fn1
(
l
,
&
d
,
&
e
,
&
g
,
&
i
,
&
h
,
&
k
,
n
);
/* 22. */
}
/* { dg-warning "may be used uninitialized" "" { target nonpic } 13 } */
/* { dg-warning "may be used uninitialized" "" { target { ! nonpic } } 22 } */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
int
a
,
l
,
m
;
float
*
b
;
float
c
,
d
,
e
,
g
,
h
;
unsigned
char
i
,
k
;
void
fn1
(
int
p1
,
float
*
f1
,
float
*
f2
,
float
*
f3
,
unsigned
char
*
c1
,
float
*
f4
,
unsigned
char
*
c2
,
float
*
p10
)
{
if
(
p1
&
8
)
b
[
3
]
=
p10
[
a
];
/* 13. */
}
void
fn2
()
{
float
*
n
;
if
(
l
&
6
)
n
=
&
c
+
m
;
fn1
(
l
,
&
d
,
&
e
,
&
g
,
&
i
,
&
h
,
&
k
,
n
);
/* 22. */
}
/* { dg-warning "may be used uninitialized" "" { target nonpic } 13 } */
/* { dg-warning "may be used uninitialized" "" { target { ! nonpic } } 22 } */
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