This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with gcc on Darwin/Mac OS X
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Adriaan van Os <gcc at microbizz dot nl>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Mar 2003 20:47:42 -0800
- Subject: 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.