This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, testsuite] Fix PR37033, gcc.dg/pch/valid-1b.c failures

Joseph S. Myers wrote:
On Tue, 18 Nov 2008, Uros Bizjak wrote:

The problem is, that -g now generates __GCC_HAVE_DWARF2_CFI_ASM with
-g flag (and not with -g0) on dwarf2 targets. So this testcase is

That sounds like a bug; the set of preprocessor macros defined should not depend on -g options at all.

So we hit the problem in:

dwarf2out_do_frame (void)
 /* We want to emit correct CFA location expressions or lists, so we
    have to return true if we're going to output debug info, even if
    we're not going to output frame or unwind info.  */
 return (write_symbols == DWARF2_DEBUG
     || write_symbols == VMS_AND_DWARF2_DEBUG
         && (flag_unwind_tables
         || (flag_exceptions && ! USING_SJLJ_EXCEPTIONS)))

since __GCC_HAVE_DWARF2_CFI_ASM depends on the result of dwarf2out_do_cfi_asm () which further depends on dwarf2out_do_frame (). This function returns 1 with -g (write_symbols == DWARF2_DEBUG) and 0 with -g0 (write_symbols == NO_DEBUG) on i686 targets.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]