mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
06114438c0
commit
dd107e6641
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue