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
15ec0729
Commit
15ec0729
authored
Nov 18, 1997
by
Jeff Law
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various changes from devo.
From-SVN: r16568
parent
8677f987
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
137 additions
and
29 deletions
+137
-29
gcc/testsuite/ChangeLog
+36
-6
gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
+1
-1
gcc/testsuite/g++.old-deja/g++.mike/eh1.C
+2
-1
gcc/testsuite/g++.old-deja/g++.mike/eh10.C
+1
-1
gcc/testsuite/g++.old-deja/g++.mike/p7325.C
+1
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+19
-1
gcc/testsuite/gcc.c-torture/execute/conversion.c
+16
-0
gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp
+8
-2
gcc/testsuite/lib/c-torture.exp
+48
-15
gcc/testsuite/lib/old-dejagnu.exp
+5
-2
No files found.
gcc/testsuite/ChangeLog
View file @
15ec0729
Mon Oct 6 12:03:10 1997 Jeffrey A Law (law@cygnus.com)
Fri Sep 26 10:50:53 1997 Bob Manson <manson@charmed.cygnus.com>
* lib/g77.exp, lib/f-torture.exp: New files.
* lib/c-torture.exp(c-torture-execute): Fix typo.
* lib/old-dejagnu.exp(old-dejagnu): Use a name derived from the
testcase as the executable name. Keep the executable around if
the test fails.
Fri Sep 19 17:19:53 1997 Bob Manson <manson@charmed.cygnus.com>
* lib/c-torture.exp (TORTURE_OPTIONS): Removed unnecessary
changes. Only test one -g option, and move it to the end of the
list of options to test.
Fri Sep 19 17:58:00 1997 Michael Meissner <meissner@cygnus.com>
* lib/c-torture.exp (TORTURE_OPTIONS): Check for the environment
variable GCC_TORTURE_OPTIONS to supply default switches separated
by colons. If no environment variable, run tests with -O0 -g, -O1
-g, and -O2 -g as well.
Wed Sep 17 10:12:26 1997 Bob Manson <manson@charmed.cygnus.com>
* lib/plumhall.exp: Don't set PHSRC in this file. Add a few
explanatory comments. Fix indentation.
Mon Sep 15 00:36:53 1997 Jeffrey A Law (law@cygnus.com)
Mon Sep 15 00:36:53 1997 Jeffrey A Law (law@cygnus.com)
* lib/g++.exp (g++_init): Look for xgcc in $basedir too.
* lib/g++.exp (g++_init): Look for xgcc in $basedir too.
Thu Sep 11 13:5
2:01
1997 Jeffrey A Law (law@cygnus.com)
Thu Sep 11 13:5
4:47
1997 Jeffrey A Law (law@cygnus.com)
* g++.old-deja/g++.brendan/scope4.C: No longer expected to fail.
* g++.old-deja/g++.brendan/scope4.C: No longer expected to fail.
* g++.old-deja/g++.mike/p7325.C: Likewise.
* g++.old-deja/g++.mike/p7325.C: Likewise.
...
@@ -25,9 +47,17 @@ Thu Sep 11 09:53:40 1997 Joe Buck (jbuck@synopsys.com)
...
@@ -25,9 +47,17 @@ Thu Sep 11 09:53:40 1997 Joe Buck (jbuck@synopsys.com)
* g++.old-deja/g++.mike/p784.C: Ditto.
* g++.old-deja/g++.mike/p784.C: Ditto.
* g++.old-deja/g++.mike/p785.C: Ditto.
* g++.old-deja/g++.mike/p785.C: Ditto.
Fri Sep 5 00:20:39 1997 Richard Henderson (rth@cygnus.com)
Fri Sep 5 00:21:42 1997 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/cbrt.c: Tweak to work on more targets.
Wed Sep 3 17:15:00 1997 Bob Manson <manson@charmed.cygnus.com>
* cbrt.c: Tweak to work on more targets.
* lib/c-torture.exp(c-torture-execute): If the previous and the
current executables being tested are identical, we don't need to
run the executable again. Try to make the executable names
unique. Add an optional argument for passing additional compiler
flags.
Tue Sep 2 16:34:31 1997 Doug Evans <dje@canuck.cygnus.com>
Tue Sep 2 16:34:31 1997 Doug Evans <dje@canuck.cygnus.com>
...
...
gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
View file @
15ec0729
// Build don't link:
// Build don't link:
// Special g++ Options: -S
// Special g++ Options: -S
// GROUPS passed asm-extension
// GROUPS passed asm-extension
// excess errors test - XFAIL a29k-*-*
// excess errors test - XFAIL a29k-*-*
mn10300-elf
// This used to crash because c_expand_asm_keyword didn't know what to
// This used to crash because c_expand_asm_keyword didn't know what to
// do with this. The parser rules were changed to accept an expr, instead
// do with this. The parser rules were changed to accept an expr, instead
// of a stmt.
// of a stmt.
...
...
gcc/testsuite/g++.old-deja/g++.mike/eh1.C
View file @
15ec0729
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
extern
"C"
void
printf
(
char
*
,
...);
extern
"C"
void
printf
(
char
*
,
...);
extern
"C"
int
atoi
(
const
char
*
);
extern
"C"
int
atoi
(
const
char
*
);
extern
"C"
void
exit
(
int
);
struct
Exception
struct
Exception
{
{
...
@@ -10,7 +11,7 @@ struct Exception
...
@@ -10,7 +11,7 @@ struct Exception
Exception
(
int
i
)
{
v
=
i
;
};
Exception
(
int
i
)
{
v
=
i
;
};
};
};
inc
(
int
&
i
)
void
inc
(
int
&
i
)
{
{
try
{
try
{
if
(
i
==
0
)
if
(
i
==
0
)
...
...
gcc/testsuite/g++.old-deja/g++.mike/eh10.C
View file @
15ec0729
...
@@ -9,7 +9,7 @@ void foo() {
...
@@ -9,7 +9,7 @@ void foo() {
void
ee
(
int
*
);
void
ee
(
int
*
);
bar
()
{
void
bar
()
{
int
i
=
2
;
int
i
=
2
;
ee
(
&
i
);
ee
(
&
i
);
}
}
...
...
gcc/testsuite/g++.old-deja/g++.mike/p7325.C
View file @
15ec0729
// I hate this type of test case. I'm not sure how to code it better.
// I hate this type of test case. I'm not sure how to code it better.
// See the PR for what this tests.
// See the PR for what this tests.
// prms-id: 7325
// prms-id: 7325
// execution test fails *-*-*
int
fail
=
0
;
int
fail
=
0
;
...
...
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
15ec0729
Fri Aug 29 12:46:05 1997 Jeffrey A Law (law@cygnus.com)
Wed Sep 3 17:29:35 1997 Bob Manson <manson@charmed.cygnus.com>
* execute/ieee/ieee.exp: Check for ieee_multilib_flags target
feature; pass this to c-torture-execute as needed.
Fri Aug 29 12:48:09 1997 Jeffrey A Law (law@cygnus.com)
* execute/921007-1.c: Make strcmp static.
* execute/921007-1.c: Make strcmp static.
Tue Jul 29 00:40:38 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* conversion.c (test_float_to_integer): Make double precision tests
dependent on sizeof (double).
Tue Jun 17 22:11:16 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* compile/961203-1.cexp: New script.
Wed Jun 4 03:38:50 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* execute/ieee/ieee.exp: Set -mieee for SH.
Thu May 15 14:00:04 1997 Mike Meissner <meissner@cygnus.com>
Thu May 15 14:00:04 1997 Mike Meissner <meissner@cygnus.com>
* execute/va-arg-3.c: If NO_VARARGS is defined, nop test.
* execute/va-arg-3.c: If NO_VARARGS is defined, nop test.
...
...
gcc/testsuite/gcc.c-torture/execute/conversion.c
View file @
15ec0729
...
@@ -207,6 +207,11 @@ test_float_to_integer()
...
@@ -207,6 +207,11 @@ test_float_to_integer()
if
(
f2u
((
float
)
~
((
~
0U
)
>>
1
))
!=
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
if
(
f2u
((
float
)
~
((
~
0U
)
>>
1
))
!=
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
abort
();
abort
();
/* CYGNUS LOCAL -- amylaar/32bit doubles */
/* These tests require double precision, so for hosts that don't offer
that much precision, just ignore these test. */
if
(
sizeof
(
double
)
>=
8
)
{
/* END CYGNUS LOCAL -- amylaar/32bit doubles */
if
(
d2u
(
0
.
0
)
!=
0
)
if
(
d2u
(
0
.
0
)
!=
0
)
abort
();
abort
();
if
(
d2u
(
0
.
999
)
!=
0
)
if
(
d2u
(
0
.
999
)
!=
0
)
...
@@ -221,6 +226,9 @@ test_float_to_integer()
...
@@ -221,6 +226,9 @@ test_float_to_integer()
abort
();
abort
();
if
(
d2u
((
double
)
~
((
~
0U
)
>>
1
))
!=
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
if
(
d2u
((
double
)
~
((
~
0U
)
>>
1
))
!=
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
abort
();
abort
();
/* CYGNUS LOCAL -- amylaar/32bit doubles */
}
/* END CYGNUS LOCAL -- amylaar/32bit doubles */
if
(
f2s
(
0
.
0
)
!=
0
)
if
(
f2s
(
0
.
0
)
!=
0
)
...
@@ -240,6 +248,11 @@ test_float_to_integer()
...
@@ -240,6 +248,11 @@ test_float_to_integer()
if
(
f2s
((
float
)(
int
)
~
((
~
0U
)
>>
1
))
!=
(
int
)
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
if
(
f2s
((
float
)(
int
)
~
((
~
0U
)
>>
1
))
!=
(
int
)
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
abort
();
abort
();
/* CYGNUS LOCAL -- amylaar/32bit doubles */
/* These tests require double precision, so for hosts that don't offer
that much precision, just ignore these test. */
if
(
sizeof
(
double
)
>=
8
)
{
/* END CYGNUS LOCAL -- amylaar/32bit doubles */
if
(
d2s
(
0
.
0
)
!=
0
)
if
(
d2s
(
0
.
0
)
!=
0
)
abort
();
abort
();
if
(
d2s
(
0
.
999
)
!=
0
)
if
(
d2s
(
0
.
999
)
!=
0
)
...
@@ -258,6 +271,9 @@ test_float_to_integer()
...
@@ -258,6 +271,9 @@ test_float_to_integer()
abort
();
abort
();
if
(
d2s
((
double
)(
int
)
~
((
~
0U
)
>>
1
))
!=
(
int
)
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
if
(
d2s
((
double
)(
int
)
~
((
~
0U
)
>>
1
))
!=
(
int
)
~
((
~
0U
)
>>
1
))
/* 0x80000000 */
abort
();
abort
();
/* CYGNUS LOCAL -- amylaar/32bit doubles */
}
/* END CYGNUS LOCAL -- amylaar/32bit doubles */
}
}
#if __GNUC__
#if __GNUC__
...
...
gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp
View file @
15ec0729
...
@@ -28,11 +28,17 @@ if $tracelevel then {
...
@@ -28,11 +28,17 @@ if $tracelevel then {
strace $tracelevel
strace $tracelevel
}
}
if [target_info exists ieee_multilib_flags] {
set additional_flags [target_info ieee_multilib_flags];
} else {
set additional_flags "";
}
# load support procs
# load support procs
load_lib c-torture.exp
load_lib c-torture.exp
# initialize harness
# initialize harness
gcc_init
gcc_init
#
#
# main test loop
# main test loop
...
@@ -44,7 +50,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
...
@@ -44,7 +50,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
continue
continue
}
}
c-torture-execute $src
c-torture-execute $src
$additional_flags
}
}
# All done.
# All done.
...
...
gcc/testsuite/lib/c-torture.exp
View file @
15ec0729
...
@@ -23,12 +23,16 @@
...
@@ -23,12 +23,16 @@
# TORTURE_OPTIONS="{ { list1 } ... { listN } }"
# TORTURE_OPTIONS="{ { list1 } ... { listN } }"
if ![info exists TORTURE_OPTIONS] {
if ![info exists TORTURE_OPTIONS] {
# FIXME: We should test -g at least once.
# It is theoretically beneficial to group all of the O2 options together,
# as in many cases the compiler will generate identical executables for
# all of them--and the c-torture testsuite will skip testing identical
# executables multiple times.
set TORTURE_OPTIONS [list \
set TORTURE_OPTIONS [list \
{ -O0 } { -O1 } { -O2 } \
{ -O0 } { -O1 } { -O2 } \
{ -O2 -fomit-frame-pointer -finline-functions } \
{ -O2 -fomit-frame-pointer -finline-functions } \
{ -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
{ -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
{ -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops }]
{ -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops } \
{ -O2 -g } ]
}
}
...
@@ -130,9 +134,14 @@ proc c-torture-compile { src option } {
...
@@ -130,9 +134,14 @@ proc c-torture-compile { src option } {
# run the compile.exp tests for example - one need only pass compile.exp to
# run the compile.exp tests for example - one need only pass compile.exp to
# dejagnu, and not compile.exp, foo1.exp, foo2.exp, etc.).
# dejagnu, and not compile.exp, foo1.exp, foo2.exp, etc.).
#
#
proc c-torture-execute { src } {
proc c-torture-execute { src
args
} {
global tmpdir tool srcdir output
global tmpdir tool srcdir output
if { [llength $args] > 0 } {
set additional_flags [lindex $args 0];
} else {
set additional_flags "";
}
# Check for alternate driver.
# Check for alternate driver.
if [file exists [file rootname $src].cexp] {
if [file exists [file rootname $src].cexp] {
verbose "Using alternate driver [file rootname [file tail $src]].cexp" 2
verbose "Using alternate driver [file rootname [file tail $src]].cexp" 2
...
@@ -163,31 +172,42 @@ proc c-torture-execute { src } {
...
@@ -163,31 +172,42 @@ proc c-torture-execute { src } {
set testcase "[file tail [file dirname $src]]/[file tail $src]"
set testcase "[file tail [file dirname $src]]/[file tail $src]"
}
}
set count 0;
set oldstatus "foo";
foreach option $option_list {
foreach option $option_list {
if { $count > 0 } {
set oldexec $execname;
}
set execname "${executable}${count}";
incr count;
# torture_{compile,execute}_xfail are set by the .cexp script
# torture_{compile,execute}_xfail are set by the .cexp script
# (if present)
# (if present)
if [info exists torture_compile_xfail] {
if [info exists torture_compile_xfail] {
setup_xfail $torture_compile_xfail
setup_xfail $torture_compile_xfail
}
}
remote_file build delete $exec
utable
remote_file build delete $exec
name;
verbose "Testing $testcase, $option" 1
verbose "Testing $testcase, $option" 1
set options ""
set options ""
lappend options "additional_flags=-w $option"
lappend options "additional_flags=-w $option"
set comp_output [gcc_target_compile "$src" "$executable" executable $options];
if { $additional_flags != "" } {
lappend options "additional_flags=$additional_flags";
}
set comp_output [gcc_target_compile "$src" "${execname}" executable $options];
# Set a few common compiler messages.
# Set a few common compiler messages.
set fatal_signal "*cc: Internal compiler error: program*got fatal signal"
set fatal_signal "*cc: Internal compiler error: program*got fatal signal"
if [string match "$fatal_signal 6" $comp_output] then {
if [string match "$fatal_signal 6" $comp_output] then {
gcc_fail $testcase "Got Signal 6, $option"
gcc_fail $testcase "Got Signal 6, $option"
remote_file build delete $exec
utabl
e
remote_file build delete $exec
nam
e
continue
continue
}
}
if [string match "$fatal_signal 11" $comp_output] then {
if [string match "$fatal_signal 11" $comp_output] then {
gcc_fail $testcase "Got Signal 11, $option"
gcc_fail $testcase "Got Signal 11, $option"
remote_file build delete $exec
utabl
e
remote_file build delete $exec
nam
e
continue
continue
}
}
...
@@ -196,7 +216,7 @@ proc c-torture-execute { src } {
...
@@ -196,7 +216,7 @@ proc c-torture-execute { src } {
warning "$testcase: (with warnings) $option"
warning "$testcase: (with warnings) $option"
send_log "$comp_output\n"
send_log "$comp_output\n"
unresolved "$testcase, $option"
unresolved "$testcase, $option"
remote_file build delete $exec
utabl
e
remote_file build delete $exec
nam
e
continue
continue
}
}
...
@@ -207,7 +227,7 @@ proc c-torture-execute { src } {
...
@@ -207,7 +227,7 @@ proc c-torture-execute { src } {
if { $unsupported_message != "" } {
if { $unsupported_message != "" } {
unsupported "$testcase: $unsupported_message"
unsupported "$testcase: $unsupported_message"
continue
continue
} elseif ![file exists $exec
utabl
e] {
} elseif ![file exists $exec
nam
e] {
if ![is3way] {
if ![is3way] {
fail "$testcase compilation, $option"
fail "$testcase compilation, $option"
untested "$testcase execution, $option"
untested "$testcase execution, $option"
...
@@ -234,14 +254,27 @@ proc c-torture-execute { src } {
...
@@ -234,14 +254,27 @@ proc c-torture-execute { src } {
if [info exists torture_execute_xfail] {
if [info exists torture_execute_xfail] {
setup_xfail $torture_execute_xfail
setup_xfail $torture_execute_xfail
}
}
set skip 0;
set result [gcc_load "$executable" "" ""]
if [info exists oldexec] {
set status [lindex $result 0];
if { [remote_file build cmp $oldexec $execname] == 0 } {
set output [lindex $result 1];
set skip 1;
if { $status == "pass" } {
}
remote_file build delete $executable
}
if { $skip == 0 } {
set result [gcc_load "$execname" "" ""]
set status [lindex $result 0];
set output [lindex $result 1];
}
if { $oldstatus == "pass" } {
remote_file build delete $oldexec;
}
}
$status "$testcase execution, $option"
$status "$testcase execution, $option"
set oldstatus $status;
}
if [info exists status] {
if { $status == "pass" } {
remote_file build delete $execname;
}
}
}
}
}
...
...
gcc/testsuite/lib/old-dejagnu.exp
View file @
15ec0729
...
@@ -230,7 +230,8 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
...
@@ -230,7 +230,8 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
lappend cflags "compiler=$compiler"
lappend cflags "compiler=$compiler"
set output "$tmpdir/a.out"
regsub -all "\[./\]" "$name" "-" output;
set output "$tmpdir/$output";
set compile_type "executable"
set compile_type "executable"
set tmp [lindex [grep $prog "Build don.t link:"] 0]
set tmp [lindex [grep $prog "Build don.t link:"] 0]
...
@@ -522,7 +523,9 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
...
@@ -522,7 +523,9 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
set result [eval [format "%s_load %s" $tool $executable]]
set result [eval [format "%s_load %s" $tool $executable]]
set status [lindex $result 0];
set status [lindex $result 0];
set output [lindex $result 1];
set output [lindex $result 1];
remote_file build delete $executable;
if { $status == "pass" } {
remote_file build delete $executable;
}
if { $execbug_flag || $excessbug_flag } then {
if { $execbug_flag || $excessbug_flag } then {
setup_xfail "*-*-*"
setup_xfail "*-*-*"
}
}
...
...
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