This is the mail archive of the gcc-bugs@gcc.gnu.org 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: Problems with gcc on Darwin/Mac OS X


Darwin's asm/ld (linker) does not support dwarf.

Thanks,
Andrew Pinski


On Friday, Mar 28, 2003, at 17:52 US/Pacific, Adriaan van Os wrote:




(4) compiling any .c source with -ggdb or -gdwarf-2 (instead of -gstabs or -g) produces the following output:
Internal compiler error in default_no_named_section, at varasm.c:5305


As far as I understand it, dwarf2 debug info is stored in "named sections" in the assembler code (dwarf2out.c:3679). Some object formats support names sections, and some don't (default_no_named_section and the following 3 functions in varasm.c).

The Darwin backend claims to support dwarf2 (config/darwin.h:128), but doesn't set TARGET_ASM_NAMED_SECTION (either by omission, or correctly because its object format really doesn't support named sections).

So I think the error is in the Darwin backend. It should either set TARGET_ASM_NAMED_SECTION (if that's possible) or not set
DWARF2_DEBUGGING_INFO.


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