> That's weird cause in dwarf2.exp: > > # If a testcase doesn't have special options, use these. > global DEFAULT_CFLAGS > if ![info exists DEFAULT_CFLAGS] then { > set DEFAULT_CFLAGS " -ansi -pedantic-errors -gdwarf-2" > } > > But anyway, shall I add the -gdwarf-2 option back to discriminator.c?
I think that gets overridden by dg-options. If you use { dg-additional-options "-O2" } instead, it should still pass -gdwarf-2 (along with the other two). -cary