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
b5ecf629
Commit
b5ecf629
authored
Nov 21, 2000
by
Donald Lindsay
Committed by
Don Lindsay
Nov 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r37598
parent
e6afac94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
gcc/testsuite/ChangeLog
+6
-0
gcc/testsuite/gcc.dg/20000614-2.c
+9
-3
No files found.
gcc/testsuite/ChangeLog
View file @
b5ecf629
2000-11-20 Donald Lindsay <dlindsay@redhat.com>
* gcc.dg/20000614-2.c: Bug fix. This test expected an unitialized
local variable to be zero: I made the variable global. Now
uses abort() and exit() instead of relying on main's return value.
2000-11-20 Neil Booth <neilb@earthling.net>
* gcc.dg/cpp/paste2.c: Update test.
...
...
gcc/testsuite/gcc.dg/20000614-2.c
View file @
b5ecf629
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O2 -fno-strength-reduce" } */
extern
void
abort
(
void
);
extern
void
exit
(
int
);
char
buf
[
8
];
void
bar
(
char
*
p
)
{
}
...
...
@@ -11,9 +16,8 @@ int main()
unsigned
int
val
;
unsigned
char
p
[
4
];
}
serial
;
char
buf
[
8
];
int
i
;
int
i
;
serial
.
val
=
0
;
bar
(
buf
);
for
(
i
=
0
;
i
<
8
;
i
+=
4
)
...
...
@@ -23,5 +27,7 @@ int main()
serial
.
p
[
2
]
+=
buf
[
i
+
2
];
serial
.
p
[
3
]
+=
buf
[
i
+
3
];
}
return
serial
.
val
;
if
(
serial
.
val
)
abort
();
exit
(
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