summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>1997-09-27 03:42:59 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-26 21:42:59 -0600
commit3ba104945bc26252fbe5bb6cbeb67a5a33cf90f2 (patch)
tree986a573e777798654e808636724349caa9dd1772 /gcc/integrate.c
parentb9620d0e58740e9b0ab5879cb9f1ac4df09e8d48 (diff)
downloadgcc-3ba104945bc26252fbe5bb6cbeb67a5a33cf90f2.tar.gz
integrate.c (expand_inline_function): Make sure there is at least one insn that can be used as an insertion point.
* integrate.c (expand_inline_function): Make sure there is at least one insn that can be used as an insertion point. From-SVN: r15738
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 4b99eac49b2..5ab8f59bb23 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -1431,8 +1431,11 @@ expand_inline_function (fndecl, parms, target, ignore, type,
map->const_age = 0;
/* Record the current insn in case we have to set up pointers to frame
- and argument memory blocks. */
+ and argument memory blocks. If there are no insns yet, add a dummy
+ insn that can be used as an insertion point. */
map->insns_at_start = get_last_insn ();
+ if (!map->insns_at_start)
+ map->insns_at_start = emit_note (NULL_PTR, NOTE_INSN_DELETED);
map->regno_pointer_flag = INLINE_REGNO_POINTER_FLAG (header);
map->regno_pointer_align = INLINE_REGNO_POINTER_ALIGN (header);