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.
#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
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" } */
}
/* 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.
// { 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" } } */
/* 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)
/* 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"
/* 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;