testsuite: aix testsuite adjustments
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 19 Jan 2021 19:58:35 +0000 (14:58 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 19 Jan 2021 23:50:29 +0000 (18:50 -0500)
This patch re-enables the DWARF5 tests that seem to be functioning again.
It adds a comment to pr41445-7.c that any changes in lines need to be
reflected in the expected output.

The patch also allows for additional failures in ucs.c and reflects that
builtin-sprintf-warn-20.c requires 4 byte wide char support.

gcc/testsuite/ChangeLog:

* gcc.dg/cpp/ucs.c: Expect Invalid warning for 2byte wchar.
* gcc.dg/debug/dwarf2/inline6.c: Remove skip AIX.
* gcc.dg/debug/dwarf2/lang-c11.c: Remove skip AIX.
* gcc.dg/debug/dwarf2/pr41445-7.c: Remove skip AIX.
* gcc.dg/debug/dwarf2/pr41445-8.c: Remove skip AIX.
* gcc.dg/tree-ssa/builtin-sprintf-warn-20.c: Require 4byte wchar.

gcc/testsuite/gcc.dg/cpp/ucs.c
gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c
gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-7.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-8.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-20.c

index f52cd5712587f34b0c38d213bfd50d5664cb9555..0fdd23bffb54c3f9587b8f06e1df7aeccc3c763d 100644 (file)
@@ -43,7 +43,7 @@
 #endif
 
 #if WCHAR_MAX >= 0x7ffffff
-# if L'\U1234abcd' != 0x1234abcd /* { dg-warning "outside" "" } */
+# if L'\U1234abcd' != 0x1234abcd /* { dg-warning "outside" "" { xfail powerpc-ibm-aix* } } */
 #  error bad long ucs  /* { dg-bogus "bad" "bad U1234abcd evaluation" } */
 # endif
 #endif
@@ -69,5 +69,5 @@ void foo ()
   c = L"\uD800"[0];    /* { dg-error "not a valid" "D800 invalid UCN" } */
   c = L'\U0000DFFF';   /* { dg-error "not a valid" "DFFF invalid UCN" } */
 
-  c = L'\U00110000';   /* { dg-warning "outside" "110000 outside UCS" } */
+  c = L'\U00110000';   /* { dg-warning "outside|Invalid" "110000 outside UCS" } */
 }
index 4e6f7a7e8ba26ada8fc9766b7eb4c0528e1ad53c..fde8c27820da60aa42a24f20b8c7b84189c3b101 100644 (file)
@@ -17,7 +17,6 @@
 /* Explicitly use dwarf-5 which uses DW_FORM_implicit_const.  */
 /* { dg-do compile } */
 /* { dg-options "-O -g3 -gdwarf-5 -dA -fgnu89-inline" } */
-/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */
 
 /* There are 6 inlined subroutines:
    - One for each subroutine inlined into main, that's 3.
index 6b0d45b9885383b80429fa5fe126d227019258b0..f14c49fd3d336fa7ca01df19e3b9a9cddf10c927 100644 (file)
@@ -1,6 +1,5 @@
 // { dg-do compile }
 // { dg-options "-O -std=c11 -gdwarf-5 -dA" }
-// { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } }
 // DW_LANG_C11 = 0x001d
 // { dg-final { scan-assembler "0x1d.*DW_AT_language" } } */
 
index 1120c6db24d07fb887020afbd5f0b0fe7c397093..1aa600560a92839891825113197ec8391fbb9e64 100644 (file)
@@ -1,9 +1,9 @@
 /* PR preprocessor/41445 DWARF5 variant */
 /* Test that token after multi-line function-like macro use
-   gets correct locus even when preprocessing separately.  */
+   gets correct locus even when preprocessing separately.
+   If lines are inserted, the expected line number must be updated.  */
 /* { dg-do compile } */
 /* { dg-options "-save-temps -gdwarf-5 -O0 -dA -fno-merge-debug-strings" } */
-/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */
 
 #define A(x) vari x
 #define vari(x)
index 7667f7a2c12d67809e9658c4f6ad48e1b3362470..3a6eeb530968ee0e0e7c7ca34551ee2b2d61827d 100644 (file)
@@ -1,7 +1,6 @@
 /* PR preprocessor/41445 DWARF5 variant*/
 /* { dg-do compile } */
 /* { dg-options "-gdwarf-5 -O0 -dA -fno-merge-debug-strings" } */
-/* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */
 
 #include "pr41445-5.c"
 
index 5966eab03d03b9b1811e1c7c2d30dadafa8c3cd2..ec14057f6d67f43b4d453cf1ffbb19c5e0b329b0 100644 (file)
@@ -1,7 +1,8 @@
 /* PR tree-optimization/87034 - missing -Wformat-overflow on a sprintf
-   %s with a wide string
-   { dg-do compile }
-   { dg-options "-O2 -Wall -Wformat-overflow -ftrack-macro-expansion=0" } */
+   %s with a wide string.  */
+/* { dg-do compile } */
+/* { dg-require-effective-target 4byte_wchar_t } */
+/* { dg-options "-O2 -Wall -Wformat-overflow -ftrack-macro-expansion=0" } */
 
 typedef __WCHAR_TYPE__ wchar_t;