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]

[patch] m68k dwarf2 minor fix



This has been broken (all unwind-related tests fail) since we started
avoiding marking the CFA register as "saved" in execute_cfa_insn.  The
dwarf2 insns are order sensitive because of that change.  OK to apply?

2001-02-27  DJ Delorie  <dj@redhat.com>

	* config/m68k/m68k.c (output_function_prologue): Save the new CFA
	register, *then* define it as the new CFA.
  
Index: config/m68k/m68k.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k.c,v
retrieving revision 1.39
diff -p -3 -r1.39 m68k.c
*** m68k.c	2001/02/04 22:44:12	1.39
--- m68k.c	2001/02/27 23:20:18
*************** output_function_prologue (stream, size)
*** 220,227 ****
            l = (char *) dwarf2out_cfi_label ();   
  	  cfa_store_offset += 4;
  	  cfa_offset = cfa_store_offset;
- 	  dwarf2out_def_cfa (l, FRAME_POINTER_REGNUM, cfa_offset);
  	  dwarf2out_reg_save (l, FRAME_POINTER_REGNUM, -cfa_store_offset);
  	  cfa_store_offset += fsize;
  	}
      }
--- 220,227 ----
            l = (char *) dwarf2out_cfi_label ();   
  	  cfa_store_offset += 4;
  	  cfa_offset = cfa_store_offset;
  	  dwarf2out_reg_save (l, FRAME_POINTER_REGNUM, -cfa_store_offset);
+ 	  dwarf2out_def_cfa (l, FRAME_POINTER_REGNUM, cfa_offset);
  	  cfa_store_offset += fsize;
  	}
      }


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