Janis Johnson <janis187@us.ibm.com>
* lib/compat.exp (compat-get-options-main, compat-get-options):
Handle dg-prune-output in source file.
* lib/gcc-defs.exp (${tool}_check_compile): Process prune requests.
* gcc.dg/compat/struct-layout-1_main.c: Use dg-prune for warning.
* gcc.dg/compat/struct-layout-1_generate.c: Use -Wno-abi, prune
two warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144971
138bc75d-0d04-0410-961f-
82ee72b054a4
2009-03-19 Jakub Jelinek <jakub@redhat.com>
+ Janis Johnson <janis187@us.ibm.com>
+
+ * lib/compat.exp (compat-get-options-main, compat-get-options):
+ Handle dg-prune-output in source file.
+ * lib/gcc-defs.exp (${tool}_check_compile): Process prune requests.
+ * gcc.dg/compat/struct-layout-1_main.c: Use dg-prune for warning.
+ * gcc.dg/compat/struct-layout-1_generate.c: Use -Wno-abi, prune
+ two warnings.
+
+2009-03-19 Jakub Jelinek <jakub@redhat.com>
PR c/39495
* gcc.dg/gomp/pr39495-1.c: New test.
const char *dg_options[] = {
"/* { dg-options \"%s-I%s\" } */\n",
+"/* { dg-options \"%s-I%s -Wno-abi\" } */\n",
"/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n",
"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n",
"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* } } */\n",
fprintf (outfile, "/* { dg-require-effective-target int32plus } */\n");
for (i = 0; i < NDG_OPTIONS; i++)
fprintf (outfile, dg_options[i], "", srcdir_safe);
+ fprintf (outfile, "/* { dg-prune-output \".*-Wno-abi.*\" } */\n");
+ fprintf (outfile, "/* { dg-prune-output \".*Offset of packed bit-field.*\" } */\n");
fprintf (outfile, "\
#include \"struct-layout-1.h\"\n\
\n\
+/* { dg-prune-output ".*-Wno-abi.*" } */
+
#include "struct-layout-1.h"
#define TX(n, type, attrs, fields, ops) extern void test##n (void);
foreach op $tmp {
set cmd [lindex $op 0]
if { ![string compare "dg-options" $cmd] \
+ || [string match "dg-prune-output" $cmd] \
|| [string match "dg-skip-if" $cmd] \
|| [string match "dg-require-*" $cmd] } {
set status [catch "$op" errmsg]
foreach op $tmp {
set cmd [lindex $op 0]
if { ![string compare "dg-options" $cmd] \
+ || ![string compare "dg-prune-output" $cmd] \
|| ![string compare "dg-xfail-if" $cmd] } {
set status [catch "$op" errmsg]
if { $status != 0 } {
set gcc_output [prune_warnings $gcc_output]
+ if { [info proc ${tool}-dg-prune] != "" } {
+ global target_triplet
+ set gcc_output [${tool}-dg-prune $target_triplet $gcc_output]
+ }
+
set unsupported_message [${tool}_check_unsupported_p $gcc_output]
if { $unsupported_message != "" } {
unsupported "$testcase: $unsupported_message"