Commit dd107e66 by Nathan Sidwell Committed by Nathan Sidwell

rtl.h (NOTE_DATA): Refer to whole union.

	* rtl.h (NOTE_DATA): Refer to whole union.
	* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.

From-SVN: r68874
parent 06114438
2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
* rtl.h (NOTE_DATA): Refer to whole union.
* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/11381
......
......@@ -4733,7 +4733,7 @@ emit_note (int note_no)
note = rtx_alloc (NOTE);
INSN_UID (note) = cur_insn_uid++;
NOTE_LINE_NUMBER (note) = note_no;
NOTE_DATA (note) = 0;
memset (&NOTE_DATA (note), 0, sizeof (NOTE_DATA (note)));
BLOCK_FOR_INSN (note) = NULL;
add_insn (note);
return note;
......
......@@ -778,7 +778,7 @@ extern const char * const reg_note_name[];
*/
/* Opaque data. */
#define NOTE_DATA(INSN) XCINT (INSN, 4, NOTE)
#define NOTE_DATA(INSN) RTL_CHECKC1 (INSN, 4, NOTE)
#define NOTE_SOURCE_FILE(INSN) XCSTR (INSN, 4, NOTE)
#define NOTE_BLOCK(INSN) XCTREE (INSN, 4, NOTE)
#define NOTE_EH_HANDLER(INSN) XCINT (INSN, 4, NOTE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment