This is the mail archive of the gcc@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]

debug_hooks->end_prologue problem


The HP debugger on IA64 VMS defines a new Dwarf2 attribute that computes the
offset of the end of the prologue from the beginning of the function. To
implement this an end prologue label must be emitted and some related info
saved in dwarf2out.c. 

However I've noted that calling debug_hooks->end_prologue as it is now
results in a label at the beginning of the prologue, not the end. I've
attached the obvious fix below, but I fear it might mess up sdbout.c. Should
I create a new hook or investigate the impact on sdbout and try to fix it?

--Douglas Rupp
AdaCore
 

*** gcc/final.c     2006-01-26 00:39:12.000000000 -0800
--- gcc/final.c  2006-01-26 00:12:21.000000000 -0800
*************** final_scan_insn (rtx insn, FILE *file, i
*** 1704,1709 ****
--- 1704,1710 ----
        case NOTE_INSN_PROLOGUE_END:
          (*targetm.asm_out.function_end_prologue) (file);
          profile_after_prologue (file);
+         (*debug_hooks->end_prologue) (last_linenum, last_filename);
  
          if ((*seen & (SEEN_EMITTED | SEEN_NOTE)) == SEEN_NOTE)
            {
*************** final_scan_insn (rtx insn, FILE *file, i
*** 1716,1727 ****
          break;
  
        case NOTE_INSN_EPILOGUE_BEG:
          (*targetm.asm_out.function_begin_epilogue) (file);
          break;
  
        case NOTE_INSN_FUNCTION_BEG:
          app_disable ();
-         (*debug_hooks->end_prologue) (last_linenum, last_filename);
  
          if ((*seen & (SEEN_EMITTED | SEEN_NOTE)) == SEEN_NOTE)
            {


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