This is the mail archive of the gcc-patches@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: Avoid bad entries in .debug_aranges


On Mon, 20 Aug 2007, David Edelsohn wrote:

> 	This patch appears to have caused a bootstrap failure on AIX:
> 
> In file included from /farm/dje/src/src/gcc/dwarf2out.c:14919:
> ./gt-dwarf2out.h:1705: error: 'cold_text_section' undeclared here (not in a function)
> ./gt-dwarf2out.h:1960: error: 'cold_text_section_used' undeclared here (not in a function)
> ./gt-dwarf2out.h:1960: error: initializer element is not constant
> ./gt-dwarf2out.h:1960: error: (near initialization for 'gt_pch_rs_gt_dwarf2out_h[0].base')
> ./gt-dwarf2out.h:1961: error: 'text_section_used' undeclared here (not in a function)
> ./gt-dwarf2out.h:1961: error: initializer element is not constant
> ./gt-dwarf2out.h:1961: error: (near initialization for 'gt_pch_rs_gt_dwarf2out_h[1].base')
> make[3]: *** [dwarf2out.o] Error 1

Try moving these declarations outside #ifdef DWARF2_DEBUGGING_INFO (i.e. 
moving them about 360 lines up the file) - it looks like gengtype not 
handling declarations (marked GTY(()) because they are needed for PCH) 
inside #ifdef.

-- 
Joseph S. Myers
joseph@codesourcery.com


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