comparison gcc/testsuite/gcc.dg/debug/dwarf2/prod-options.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Verify that the DW_AT_producer does not contain certain compiler options 1 /* Verify that the DW_AT_producer does not contain certain compiler options
2 such as -fdebug-prefix-map=; this is undesirable since path names make 2 such as -fdebug-prefix-map=; this is undesirable since path names make
3 the build not reproducible. Other skipped options could be tested here 3 the build not reproducible. Other skipped options could be tested here
4 as well. */ 4 as well. */
5 /* { dg-do compile } */ 5 /* { dg-do compile } */
6 /* { dg-options "-O2 -gdwarf -dA -fdebug-prefix-map=a=b" } */ 6 /* { dg-options "-O2 -gdwarf -dA -fno-merge-debug-strings -fdebug-prefix-map=a=b" } */
7 /* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" { target { { { ! *-*-solaris2* } || gas } && { { ! hppa*64*-*-* } && { ! powerpc-ibm-aix* } } } } } } */ 7 /* { dg-final { scan-assembler "\"GNU C\[^\\n\\r\]+ DW_AT_producer" } } */
8 /* { dg-final { scan-assembler "\"GNU C\[^\\n\\r\]+ DW_AT_producer" { target { { *-*-solaris2* && { ! gas } } || { hppa*64*-*-* } } } } } */
9 /* { dg-final { scan-assembler-not "debug-prefix-map" } } */ 8 /* { dg-final { scan-assembler-not "debug-prefix-map" } } */
10 9
11 void func (void) 10 void func (void)
12 { 11 {
13 } 12 }