From: Dimitar Dimitrov Date: Wed, 12 Jun 2019 19:36:34 +0000 (+0000) Subject: testsuite: Add check for overflowed IMEM region to testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31f1fa4e4083948c0a2953c28fca15f4f165b03e;p=gcc.git testsuite: Add check for overflowed IMEM region to testsuite gcc/testsuite/ChangeLog: 2019-06-12 Dimitar Dimitrov * lib/gcc-dg.exp: Bail on region overflow for tiny targets. * lib/target-utils.exp: Ditto. * lib/target-supports.exp: Declare PRU target as tiny. From-SVN: r272206 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 79f4952f141..10e6551f74c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-06-12 Dimitar Dimitrov + + * lib/gcc-dg.exp: Bail on region overflow for tiny targets. + * lib/target-utils.exp: Ditto. + * lib/target-supports.exp: Declare PRU target as tiny. + 2019-06-12 Dimitar Dimitrov * gcc.target/pru/abi-arg-struct.c: New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index b60eab6d75d..2b3290619dc 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8765,6 +8765,11 @@ proc check_effective_target_tiny {} { && [check_effective_target_avr_tiny] } { return 1 } + # PRU Program Counter is 16-bits, and trampolines are not supported. + # Hence directly declare as a tiny target. + if [istarget pru-*-*] { + return 1 + } return 0 }] } diff --git a/gcc/testsuite/lib/target-utils.exp b/gcc/testsuite/lib/target-utils.exp index e847fdd4279..23137d4702c 100644 --- a/gcc/testsuite/lib/target-utils.exp +++ b/gcc/testsuite/lib/target-utils.exp @@ -35,6 +35,10 @@ proc ${tool}_check_unsupported_p { output } { && [check_effective_target_tiny] } { return "memory full" } + if { [regexp "(^|\n)\[^\n\]*: region \[^\n\]* overflowed" $output] + && [check_effective_target_tiny] } { + return "memory full" + } if { [istarget spu-*-*] && \ [string match "*exceeds local store*" $output] } {