Thu Sep 4 15:02:27 1997 Jim Wilson <wilson@cygnus.com>
+ * profile.c (output_arc_profiler): Check next_insert_after for non
+ NULL before deferencing it.
+
* i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
Thu Sep 4 14:51:57 1997 Jeffrey A Law (law@cygnus.com)
rtx next_insert_after = next_nonnote_insn (insert_after);
/* The first insn after the call may be a stack pop, skip it. */
- if (GET_CODE (next_insert_after) == INSN
+ if (next_insert_after
+ && GET_CODE (next_insert_after) == INSN
&& GET_CODE (PATTERN (next_insert_after)) == SET
&& SET_DEST (PATTERN (next_insert_after)) == stack_pointer_rtx)
next_insert_after = next_nonnote_insn (next_insert_after);
- if (GET_CODE (next_insert_after) == INSN)
+ if (next_insert_after
+ && GET_CODE (next_insert_after) == INSN)
{
if (GET_CODE (PATTERN (insert_after)) == SET)
return_reg = SET_DEST (PATTERN (insert_after));