Commit 1494f93a by Stephane Carrez Committed by Stephane Carrez

920501-12.x: New file, must pass -mshort for HC11/HC12 (array is too large otherwise).

	* gcc.c-torture/compile/920501-12.x: New file, must pass -mshort
	for HC11/HC12 (array is too large otherwise).
	* gcc.c-torture/compile/920501-4.x: New file, likewise.
	* gcc.c-torture/compile/20010518-2.x: Likewise.
	* gcc.c-torture/compile/980506-1.x: Don't execute this test on
	HC11/HC12 (array is too large).

From-SVN: r63693
parent 82f6e3eb
2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
* gcc.c-torture/compile/920501-12.x: New file, must pass -mshort
for HC11/HC12 (array is too large otherwise).
* gcc.c-torture/compile/920501-4.x: New file, likewise.
* gcc.c-torture/compile/20010518-2.x: Likewise.
* gcc.c-torture/compile/980506-1.x: Don't execute this test on
HC11/HC12 (array is too large).
2003-03-01 Geoffrey Keating <geoffk@apple.com> 2003-03-01 Geoffrey Keating <geoffk@apple.com>
* lib/gcc-dg.exp (gcc-dg-test): Change .pch to .gch. * lib/gcc-dg.exp (gcc-dg-test): Change .pch to .gch.
......
set options "-S" # This test fails on HC11/HC12 when it is compiled without -mshort because
# the array is too large (INT_MAX/2 > 64K). Force to use 16-bit ints for it.
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
set options "-S -mshort"
} else {
set options "-S"
}
return 0 return 0
# This test fails on HC11/HC12 when it is compiled without -mshort because
# the stack arrays are too large. Force to use 16-bit ints for it.
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
set options "-mshort"
}
return 0
# This test fails on HC11/HC12 when it is compiled without -mshort because
# the 'r0' array is too large. Force to use 16-bit ints for it.
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
set options "-mshort"
}
return 0
...@@ -7,4 +7,7 @@ if { [istarget "h8300-*-*"] } { ...@@ -7,4 +7,7 @@ if { [istarget "h8300-*-*"] } {
return 1; return 1;
} }
if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
return 1
}
return 0 return 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment