3.1 bootstrap failure on irix6.5: as error - must give attribute values for new section

Richard Henderson rth@redhat.com
Sun May 20 20:16:00 GMT 2001


On Mon, May 21, 2001 at 01:40:40AM -0000, Billinghurst, David (CRTS) wrote:
> as: Error: /var/tmp//ccS1gjee.s, line 5: must give attribute values for new
> section
>       .section .debug_loc

Should be fixed thus.  It's bigger than strictly necessary,
but I think fixing the defines to match the actual section
name is a good thing.

We _really_ need to fix the ASM_OUTPUT_SECTION_NAME interface...


r~


        * dwarf2out.c (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION,
        DEBUG_STR_SECTION): Rename from s/DEBUG_//.  Update all users.
        * dwarfout.c (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION):
        Likewise.
        * config/mips/iris6.h (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_FRAME_SECTION, DEBUG_ABBREV_SECTION): Rename as above.
        (DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.
        * config/ia64/ia64.h (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_PUBNAMES_SECTION): Rename as above.
        (DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.

Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.270
diff -c -p -d -r1.270 dwarf2out.c
*** dwarf2out.c	2001/05/18 15:39:11	1.270
--- dwarf2out.c	2001/05/21 03:07:31
*************** static int file_info_cmp		PARAMS ((const
*** 3558,3583 ****
  #ifndef DEBUG_INFO_SECTION
  #define DEBUG_INFO_SECTION	".debug_info"
  #endif
! #ifndef ABBREV_SECTION
! #define ABBREV_SECTION		".debug_abbrev"
  #endif
! #ifndef ARANGES_SECTION
! #define ARANGES_SECTION		".debug_aranges"
  #endif
! #ifndef DW_MACINFO_SECTION
! #define DW_MACINFO_SECTION	".debug_macinfo"
  #endif
  #ifndef DEBUG_LINE_SECTION
  #define DEBUG_LINE_SECTION	".debug_line"
  #endif
! #ifndef LOC_SECTION
! #define LOC_SECTION		".debug_loc"
  #endif
! #ifndef PUBNAMES_SECTION
! #define PUBNAMES_SECTION	".debug_pubnames"
  #endif
! #ifndef STR_SECTION
! #define STR_SECTION		".debug_str"
  #endif
  
  /* Standard ELF section names for compiled code and data.  */
--- 3558,3583 ----
  #ifndef DEBUG_INFO_SECTION
  #define DEBUG_INFO_SECTION	".debug_info"
  #endif
! #ifndef DEBUG_ABBREV_SECTION
! #define DEBUG_ABBREV_SECTION	".debug_abbrev"
  #endif
! #ifndef DEBUG_ARANGES_SECTION
! #define DEBUG_ARANGES_SECTION	".debug_aranges"
  #endif
! #ifndef DEBUG_MACINFO_SECTION
! #define DEBUG_MACINFO_SECTION	".debug_macinfo"
  #endif
  #ifndef DEBUG_LINE_SECTION
  #define DEBUG_LINE_SECTION	".debug_line"
  #endif
! #ifndef DEBUG_LOC_SECTION
! #define DEBUG_LOC_SECTION	".debug_loc"
  #endif
! #ifndef DEBUG_PUBNAMES_SECTION
! #define DEBUG_PUBNAMES_SECTION	".debug_pubnames"
  #endif
! #ifndef DEBUG_STR_SECTION
! #define DEBUG_STR_SECTION	".debug_str"
  #endif
  
  /* Standard ELF section names for compiled code and data.  */
*************** static int file_info_cmp		PARAMS ((const
*** 3595,3613 ****
     the section names themselves.  */
  
  #ifndef TEXT_SECTION_LABEL
! #define TEXT_SECTION_LABEL	 "Ltext"
  #endif
  #ifndef DEBUG_LINE_SECTION_LABEL
! #define DEBUG_LINE_SECTION_LABEL "Ldebug_line"
  #endif
  #ifndef DEBUG_INFO_SECTION_LABEL
! #define DEBUG_INFO_SECTION_LABEL "Ldebug_info"
  #endif
! #ifndef ABBREV_SECTION_LABEL
! #define ABBREV_SECTION_LABEL     "Ldebug_abbrev"
  #endif
! #ifndef LOC_SECTION_LABEL
! #define LOC_SECTION_LABEL	 "Ldebug_loc"
  #endif
  
  /* Definitions of defaults for formats and names of various special
--- 3595,3613 ----
     the section names themselves.  */
  
  #ifndef TEXT_SECTION_LABEL
! #define TEXT_SECTION_LABEL		"Ltext"
  #endif
  #ifndef DEBUG_LINE_SECTION_LABEL
! #define DEBUG_LINE_SECTION_LABEL	"Ldebug_line"
  #endif
  #ifndef DEBUG_INFO_SECTION_LABEL
! #define DEBUG_INFO_SECTION_LABEL	"Ldebug_info"
  #endif
! #ifndef DEBUG_ABBREV_SECTION_LABEL
! #define DEBUG_ABBREV_SECTION_LABEL	"Ldebug_abbrev"
  #endif
! #ifndef DEBUG_LOC_SECTION_LABEL
! #define DEBUG_LOC_SECTION_LABEL		"Ldebug_loc"
  #endif
  
  /* Definitions of defaults for formats and names of various special
*************** value_format (a)
*** 5771,5777 ****
      case dw_val_class_addr:
        return DW_FORM_addr;
      case dw_val_class_loc_list:
! 	return DW_FORM_data4; /* FIXME: Could be DW_FORM_data8, with a > 32 bit size .debug_loc section */
      case dw_val_class_loc:
        switch (constant_size (size_of_locs (AT_loc (a))))
  	{
--- 5771,5779 ----
      case dw_val_class_addr:
        return DW_FORM_addr;
      case dw_val_class_loc_list:
!       /* FIXME: Could be DW_FORM_data8, with a > 32 bit size
! 	 .debug_loc section */
!       return DW_FORM_data4;
      case dw_val_class_loc:
        switch (constant_size (size_of_locs (AT_loc (a))))
  	{
*************** dwarf2out_init (asm_out_file, main_input
*** 11332,11338 ****
    ggc_add_rtx_varray_root (&used_rtx_varray, 1);
  
    ASM_GENERATE_INTERNAL_LABEL (text_end_label, TEXT_END_LABEL, 0);
!   ASM_GENERATE_INTERNAL_LABEL (abbrev_section_label, ABBREV_SECTION_LABEL, 0);
    if (DWARF2_GENERATE_TEXT_SECTION_LABEL)
      ASM_GENERATE_INTERNAL_LABEL (text_section_label, TEXT_SECTION_LABEL, 0);
    else
--- 11334,11341 ----
    ggc_add_rtx_varray_root (&used_rtx_varray, 1);
  
    ASM_GENERATE_INTERNAL_LABEL (text_end_label, TEXT_END_LABEL, 0);
!   ASM_GENERATE_INTERNAL_LABEL (abbrev_section_label,
! 			       DEBUG_ABBREV_SECTION_LABEL, 0);
    if (DWARF2_GENERATE_TEXT_SECTION_LABEL)
      ASM_GENERATE_INTERNAL_LABEL (text_section_label, TEXT_SECTION_LABEL, 0);
    else
*************** dwarf2out_init (asm_out_file, main_input
*** 11341,11350 ****
  			       DEBUG_INFO_SECTION_LABEL, 0);
    ASM_GENERATE_INTERNAL_LABEL (debug_line_section_label,
  			       DEBUG_LINE_SECTION_LABEL, 0);
!   ASM_GENERATE_INTERNAL_LABEL (loc_section_label, LOC_SECTION_LABEL, 0);
!   ASM_OUTPUT_SECTION (asm_out_file, LOC_SECTION);
    ASM_OUTPUT_LABEL (asm_out_file, loc_section_label);
!   ASM_OUTPUT_SECTION (asm_out_file, ABBREV_SECTION);
    ASM_OUTPUT_LABEL (asm_out_file, abbrev_section_label);
    if (DWARF2_GENERATE_TEXT_SECTION_LABEL)
      {
--- 11344,11353 ----
  			       DEBUG_INFO_SECTION_LABEL, 0);
    ASM_GENERATE_INTERNAL_LABEL (debug_line_section_label,
  			       DEBUG_LINE_SECTION_LABEL, 0);
!   ASM_GENERATE_INTERNAL_LABEL (loc_section_label, DEBUG_LOC_SECTION_LABEL, 0);
!   ASM_OUTPUT_SECTION (asm_out_file, DEBUG_LOC_SECTION);
    ASM_OUTPUT_LABEL (asm_out_file, loc_section_label);
!   ASM_OUTPUT_SECTION (asm_out_file, DEBUG_ABBREV_SECTION);
    ASM_OUTPUT_LABEL (asm_out_file, abbrev_section_label);
    if (DWARF2_GENERATE_TEXT_SECTION_LABEL)
      {
*************** dwarf2out_finish ()
*** 11457,11469 ****
    output_comp_unit (comp_unit_die);
  
    /* Output the abbreviation table.  */
!   ASM_OUTPUT_SECTION (asm_out_file, ABBREV_SECTION);
    output_abbrev_section ();
  
    if (pubname_table_in_use)
      {
        /* Output public names table.  */
!       ASM_OUTPUT_SECTION (asm_out_file, PUBNAMES_SECTION);
        output_pubnames ();
      }
  
--- 11460,11472 ----
    output_comp_unit (comp_unit_die);
  
    /* Output the abbreviation table.  */
!   ASM_OUTPUT_SECTION (asm_out_file, DEBUG_ABBREV_SECTION);
    output_abbrev_section ();
  
    if (pubname_table_in_use)
      {
        /* Output public names table.  */
!       ASM_OUTPUT_SECTION (asm_out_file, DEBUG_PUBNAMES_SECTION);
        output_pubnames ();
      }
  
*************** dwarf2out_finish ()
*** 11472,11485 ****
    if (fde_table_in_use)
      {
        /* Output the address range information.  */
!       ASM_OUTPUT_SECTION (asm_out_file, ARANGES_SECTION);
        output_aranges ();
      }
    /* Output location list section if necessary */
    if (have_location_lists)
      {
        /* Output the location lists info. */
!       ASM_OUTPUT_SECTION (asm_out_file, LOC_SECTION);
        output_location_lists (die);
        have_location_lists = 0;
      }
--- 11475,11488 ----
    if (fde_table_in_use)
      {
        /* Output the address range information.  */
!       ASM_OUTPUT_SECTION (asm_out_file, DEBUG_ARANGES_SECTION);
        output_aranges ();
      }
    /* Output location list section if necessary */
    if (have_location_lists)
      {
        /* Output the location lists info. */
!       ASM_OUTPUT_SECTION (asm_out_file, DEBUG_LOC_SECTION);
        output_location_lists (die);
        have_location_lists = 0;
      }
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarfout.c,v
retrieving revision 1.85
diff -c -p -d -r1.85 dwarfout.c
*** dwarfout.c	2001/05/18 22:39:37	1.85
--- dwarfout.c	2001/05/21 03:07:32
*************** static void retry_incomplete_types	PARAM
*** 976,995 ****
  #ifndef LINE_SECTION
  #define LINE_SECTION		".line"
  #endif
! #ifndef SFNAMES_SECTION
! #define SFNAMES_SECTION		".debug_sfnames"
  #endif
! #ifndef SRCINFO_SECTION
! #define SRCINFO_SECTION		".debug_srcinfo"
  #endif
! #ifndef MACINFO_SECTION
! #define MACINFO_SECTION		".debug_macinfo"
  #endif
! #ifndef PUBNAMES_SECTION
! #define PUBNAMES_SECTION	".debug_pubnames"
  #endif
! #ifndef ARANGES_SECTION
! #define ARANGES_SECTION		".debug_aranges"
  #endif
  #ifndef TEXT_SECTION
  #define TEXT_SECTION		".text"
--- 976,995 ----
  #ifndef LINE_SECTION
  #define LINE_SECTION		".line"
  #endif
! #ifndef DEBUG_SFNAMES_SECTION
! #define DEBUG_SFNAMES_SECTION	".debug_sfnames"
  #endif
! #ifndef DEBUG_SRCINFO_SECTION
! #define DEBUG_SRCINFO_SECTION	".debug_srcinfo"
  #endif
! #ifndef DEBUG_MACINFO_SECTION
! #define DEBUG_MACINFO_SECTION	".debug_macinfo"
  #endif
! #ifndef DEBUG_PUBNAMES_SECTION
! #define DEBUG_PUBNAMES_SECTION	".debug_pubnames"
  #endif
! #ifndef DEBUG_ARANGES_SECTION
! #define DEBUG_ARANGES_SECTION	".debug_aranges"
  #endif
  #ifndef TEXT_SECTION
  #define TEXT_SECTION		".text"
*************** dwarfout_file_scope_decl (decl, set_fina
*** 5664,5670 ****
  	     defined in this compilation unit.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, PUBNAMES_SECTION);
  	  sprintf (label, PUB_DIE_LABEL_FMT, next_pubname_number);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, label);
  	  ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
--- 5664,5670 ----
  	     defined in this compilation unit.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_PUBNAMES_SECTION);
  	  sprintf (label, PUB_DIE_LABEL_FMT, next_pubname_number);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, label);
  	  ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
*************** dwarfout_file_scope_decl (decl, set_fina
*** 5702,5708 ****
  	         defined in this compilation unit.  */
  
  	      fputc ('\n', asm_out_file);
! 	      ASM_OUTPUT_PUSH_SECTION (asm_out_file, PUBNAMES_SECTION);
  	      sprintf (label, PUB_DIE_LABEL_FMT, next_pubname_number);
  	      ASM_OUTPUT_DWARF_ADDR (asm_out_file, label);
  	      ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
--- 5702,5708 ----
  	         defined in this compilation unit.  */
  
  	      fputc ('\n', asm_out_file);
! 	      ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_PUBNAMES_SECTION);
  	      sprintf (label, PUB_DIE_LABEL_FMT, next_pubname_number);
  	      ASM_OUTPUT_DWARF_ADDR (asm_out_file, label);
  	      ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
*************** dwarfout_file_scope_decl (decl, set_fina
*** 5716,5722 ****
  		 which is tentatively defined in this compilation unit.  */
  
  	      fputc ('\n', asm_out_file);
! 	      ASM_OUTPUT_PUSH_SECTION (asm_out_file, ARANGES_SECTION);
  	      ASM_OUTPUT_DWARF_ADDR (asm_out_file,
  			      IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
  	      ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 
--- 5716,5722 ----
  		 which is tentatively defined in this compilation unit.  */
  
  	      fputc ('\n', asm_out_file);
! 	      ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_ARANGES_SECTION);
  	      ASM_OUTPUT_DWARF_ADDR (asm_out_file,
  			      IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
  	      ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 
*************** generate_new_sfname_entry ()
*** 5917,5923 ****
    char label[MAX_ARTIFICIAL_LABEL_BYTES];
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, SFNAMES_SECTION);
    sprintf (label, SFNAMES_ENTRY_LABEL_FMT, filename_table[0].number);
    ASM_OUTPUT_LABEL (asm_out_file, label);
    ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
--- 5917,5923 ----
    char label[MAX_ARTIFICIAL_LABEL_BYTES];
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SFNAMES_SECTION);
    sprintf (label, SFNAMES_ENTRY_LABEL_FMT, filename_table[0].number);
    ASM_OUTPUT_LABEL (asm_out_file, label);
    ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file,
*************** generate_srcinfo_entry (line_entry_num, 
*** 6017,6023 ****
    char label[MAX_ARTIFICIAL_LABEL_BYTES];
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, SRCINFO_SECTION);
    sprintf (label, LINE_ENTRY_LABEL_FMT, line_entry_num);
    ASM_OUTPUT_DWARF_DELTA4 (asm_out_file, label, LINE_BEGIN_LABEL);
    sprintf (label, SFNAMES_ENTRY_LABEL_FMT, files_entry_num);
--- 6017,6023 ----
    char label[MAX_ARTIFICIAL_LABEL_BYTES];
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SRCINFO_SECTION);
    sprintf (label, LINE_ENTRY_LABEL_FMT, line_entry_num);
    ASM_OUTPUT_DWARF_DELTA4 (asm_out_file, label, LINE_BEGIN_LABEL);
    sprintf (label, SFNAMES_ENTRY_LABEL_FMT, files_entry_num);
*************** generate_macinfo_entry (type_and_offset,
*** 6091,6097 ****
      return;
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, MACINFO_SECTION);
    fprintf (asm_out_file, "%s%s\n", UNALIGNED_INT_ASM_OP, type_and_offset);
    ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, string);
    ASM_OUTPUT_POP_SECTION (asm_out_file);
--- 6091,6097 ----
      return;
  
    fputc ('\n', asm_out_file);
!   ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_MACINFO_SECTION);
    fprintf (asm_out_file, "%s%s\n", UNALIGNED_INT_ASM_OP, type_and_offset);
    ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, string);
    ASM_OUTPUT_POP_SECTION (asm_out_file);
*************** dwarfout_init (asm_out_file, main_input_
*** 6259,6265 ****
  	     referenced by the initial entry in the .debug_srcinfo section.  */
      
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, SFNAMES_SECTION);
  	  ASM_OUTPUT_LABEL (asm_out_file, SFNAMES_BEGIN_LABEL);
  	  {
  	    register const char *pwd = getpwd ();
--- 6259,6265 ----
  	     referenced by the initial entry in the .debug_srcinfo section.  */
      
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SFNAMES_SECTION);
  	  ASM_OUTPUT_LABEL (asm_out_file, SFNAMES_BEGIN_LABEL);
  	  {
  	    register const char *pwd = getpwd ();
*************** dwarfout_init (asm_out_file, main_input_
*** 6283,6289 ****
  	     TAG_compile_unit DIE.  */
          
            fputc ('\n', asm_out_file);
!           ASM_OUTPUT_PUSH_SECTION (asm_out_file, MACINFO_SECTION);
            ASM_OUTPUT_LABEL (asm_out_file, MACINFO_BEGIN_LABEL);
            ASM_OUTPUT_POP_SECTION (asm_out_file);
  	}
--- 6283,6289 ----
  	     TAG_compile_unit DIE.  */
          
            fputc ('\n', asm_out_file);
!           ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_MACINFO_SECTION);
            ASM_OUTPUT_LABEL (asm_out_file, MACINFO_BEGIN_LABEL);
            ASM_OUTPUT_POP_SECTION (asm_out_file);
  	}
*************** dwarfout_init (asm_out_file, main_input_
*** 6302,6308 ****
  	  /* Generate the initial entry for the .debug_srcinfo section.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, SRCINFO_SECTION);
  	  ASM_OUTPUT_LABEL (asm_out_file, SRCINFO_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, LINE_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, SFNAMES_BEGIN_LABEL);
--- 6302,6308 ----
  	  /* Generate the initial entry for the .debug_srcinfo section.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SRCINFO_SECTION);
  	  ASM_OUTPUT_LABEL (asm_out_file, SRCINFO_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, LINE_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_ADDR (asm_out_file, SFNAMES_BEGIN_LABEL);
*************** dwarfout_init (asm_out_file, main_input_
*** 6319,6332 ****
        /* Generate the initial entry for the .debug_pubnames section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, PUBNAMES_SECTION);
        ASM_OUTPUT_DWARF_ADDR (asm_out_file, DEBUG_BEGIN_LABEL);
        ASM_OUTPUT_POP_SECTION (asm_out_file);
      
        /* Generate the initial entry for the .debug_aranges section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, ARANGES_SECTION);
        ASM_OUTPUT_DWARF_DELTA4 (asm_out_file,
  			       DEBUG_ARANGES_END_LABEL,
  			       DEBUG_ARANGES_BEGIN_LABEL);
--- 6319,6332 ----
        /* Generate the initial entry for the .debug_pubnames section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_PUBNAMES_SECTION);
        ASM_OUTPUT_DWARF_ADDR (asm_out_file, DEBUG_BEGIN_LABEL);
        ASM_OUTPUT_POP_SECTION (asm_out_file);
      
        /* Generate the initial entry for the .debug_aranges section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_ARANGES_SECTION);
        ASM_OUTPUT_DWARF_DELTA4 (asm_out_file,
  			       DEBUG_ARANGES_END_LABEL,
  			       DEBUG_ARANGES_BEGIN_LABEL);
*************** dwarfout_finish ()
*** 6464,6470 ****
  	  /* Output a terminating entry for the .debug_srcinfo section.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, SRCINFO_SECTION);
  	  ASM_OUTPUT_DWARF_DELTA4 (asm_out_file,
  				   LINE_LAST_ENTRY_LABEL, LINE_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_DATA4 (asm_out_file, -1);
--- 6464,6470 ----
  	  /* Output a terminating entry for the .debug_srcinfo section.  */
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SRCINFO_SECTION);
  	  ASM_OUTPUT_DWARF_DELTA4 (asm_out_file,
  				   LINE_LAST_ENTRY_LABEL, LINE_BEGIN_LABEL);
  	  ASM_OUTPUT_DWARF_DATA4 (asm_out_file, -1);
*************** dwarfout_finish ()
*** 6478,6484 ****
  	  dwarfout_resume_previous_source_file (0);
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, MACINFO_SECTION);
  	  ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 0);
  	  ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, "");
  	  ASM_OUTPUT_POP_SECTION (asm_out_file);
--- 6478,6484 ----
  	  dwarfout_resume_previous_source_file (0);
  
  	  fputc ('\n', asm_out_file);
! 	  ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_MACINFO_SECTION);
  	  ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 0);
  	  ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, "");
  	  ASM_OUTPUT_POP_SECTION (asm_out_file);
*************** dwarfout_finish ()
*** 6487,6493 ****
        /* Generate the terminating entry for the .debug_pubnames section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, PUBNAMES_SECTION);
        ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 0);
        ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, "");
        ASM_OUTPUT_POP_SECTION (asm_out_file);
--- 6487,6493 ----
        /* Generate the terminating entry for the .debug_pubnames section.  */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_PUBNAMES_SECTION);
        ASM_OUTPUT_DWARF_DATA4 (asm_out_file, 0);
        ASM_OUTPUT_DWARF_STRING_NEWLINE (asm_out_file, "");
        ASM_OUTPUT_POP_SECTION (asm_out_file);
*************** dwarfout_finish ()
*** 6507,6513 ****
        */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, ARANGES_SECTION);
  
        ASM_OUTPUT_DWARF_ADDR (asm_out_file, TEXT_BEGIN_LABEL);
        ASM_OUTPUT_DWARF_DELTA4 (asm_out_file, TEXT_END_LABEL, TEXT_BEGIN_LABEL);
--- 6507,6513 ----
        */
      
        fputc ('\n', asm_out_file);
!       ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_ARANGES_SECTION);
  
        ASM_OUTPUT_DWARF_ADDR (asm_out_file, TEXT_BEGIN_LABEL);
        ASM_OUTPUT_DWARF_DELTA4 (asm_out_file, TEXT_END_LABEL, TEXT_BEGIN_LABEL);
Index: config/mips/iris6.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/iris6.h,v
retrieving revision 1.30
diff -c -p -d -r1.30 iris6.h
*** iris6.h	2001/04/27 19:59:53	1.30
--- iris6.h	2001/05/21 03:07:32
*************** Boston, MA 02111-1307, USA.  */
*** 212,224 ****
  
  #define DEBUG_INFO_SECTION	".debug_info,0x7000001e,0,0,1"
  #define DEBUG_LINE_SECTION	".debug_line,0x7000001e,0,0,1"
! #define SFNAMES_SECTION		".debug_sfnames,0x7000001e,0,0,1"
! #define SRCINFO_SECTION		".debug_srcinfo,0x7000001e,0,0,1"
! #define MACINFO_SECTION		".debug_macinfo,0x7000001e,0,0,1"
! #define PUBNAMES_SECTION	".debug_pubnames,0x7000001e,0,0,1"
! #define ARANGES_SECTION		".debug_aranges,0x7000001e,0,0,1"
! #define FRAME_SECTION		".debug_frame,0x7000001e,0x08000000,0,1"
! #define ABBREV_SECTION		".debug_abbrev,0x7000001e,0,0,1"
  
  /* ??? If no mabi=X option give, but a mipsX option is, then should depend
     on the mipsX option.  */
--- 212,226 ----
  
  #define DEBUG_INFO_SECTION	".debug_info,0x7000001e,0,0,1"
  #define DEBUG_LINE_SECTION	".debug_line,0x7000001e,0,0,1"
! #define DEBUG_SFNAMES_SECTION	".debug_sfnames,0x7000001e,0,0,1"
! #define DEBUG_SRCINFO_SECTION	".debug_srcinfo,0x7000001e,0,0,1"
! #define DEBUG_MACINFO_SECTION	".debug_macinfo,0x7000001e,0,0,1"
! #define DEBUG_PUBNAMES_SECTION	".debug_pubnames,0x7000001e,0,0,1"
! #define DEBUG_ARANGES_SECTION	".debug_aranges,0x7000001e,0,0,1"
! #define DEBUG_FRAME_SECTION	".debug_frame,0x7000001e,0x08000000,0,1"
! #define DEBUG_ABBREV_SECTION	".debug_abbrev,0x7000001e,0,0,1"
! #define DEBUG_LOC_SECTION	".debug_loc,0x7000001e,0,0,1"
! #define DEBUG_STR_SECTION	".debug_str,0x7000001e,0,0,1"
  
  /* ??? If no mabi=X option give, but a mipsX option is, then should depend
     on the mipsX option.  */
Index: config/ia64/ia64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.h,v
retrieving revision 1.66
diff -c -p -d -r1.66 ia64.h
*** ia64.h	2001/05/12 06:03:20	1.66
--- ia64.h	2001/05/21 03:07:32
*************** do {									\
*** 2560,2569 ****
  /* Section names for DWARF2 debug info.  */
  
  #define DEBUG_INFO_SECTION	".debug_info, \"\", \"progbits\""
! #define ABBREV_SECTION		".debug_abbrev, \"\", \"progbits\""
! #define ARANGES_SECTION		".debug_aranges, \"\", \"progbits\""
  #define DEBUG_LINE_SECTION	".debug_line, \"\", \"progbits\""
! #define PUBNAMES_SECTION	".debug_pubnames, \"\", \"progbits\""
  
  /* C string constants giving the pseudo-op to use for a sequence of
     2, 4, and 8 byte unaligned constants.  dwarf2out.c needs these.  */
--- 2560,2572 ----
  /* Section names for DWARF2 debug info.  */
  
  #define DEBUG_INFO_SECTION	".debug_info, \"\", \"progbits\""
! #define DEBUG_ABBREV_SECTION	".debug_abbrev, \"\", \"progbits\""
! #define DEBUG_ARANGES_SECTION	".debug_aranges, \"\", \"progbits\""
! #define DEBUG_MACINFO_SECTION	".debug_macinfo, \"\", \"progbits\""
  #define DEBUG_LINE_SECTION	".debug_line, \"\", \"progbits\""
! #define DEBUG_LOC_SECTION	".debug_loc, \"\", \"progbits\""
! #define DEBUG_PUBNAMES_SECTION	".debug_pubnames, \"\", \"progbits\""
! #define DEBUG_STR_SECTION	".debug_str, \"\", \"progbits\""
  
  /* C string constants giving the pseudo-op to use for a sequence of
     2, 4, and 8 byte unaligned constants.  dwarf2out.c needs these.  */



More information about the Gcc-patches mailing list