From 0e6b2107ca04f7ea045bf9456a12178d2133fbfe Mon Sep 17 00:00:00 2001 From: Gavin Romig-Koch Date: Thu, 18 Nov 1999 15:12:51 +0000 Subject: [PATCH] * integrate.c (expand_inline_function): Add necessary check for NULL. From-SVN: r30575 --- gcc/ChangeLog | 4 ++++ gcc/integrate.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52af71432a6..829318e1e77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +1999-11-18 Gavin Romig-Koch + + * integrate.c (expand_inline_function): Add necessary check for NULL. + 1999-11-18 Nick Clifton * toplev.c (main): Correctly detect an unrecognised option. diff --git a/gcc/integrate.c b/gcc/integrate.c index 30f9ed0370b..adf03cc12bf 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1342,7 +1342,8 @@ expand_inline_function (fndecl, parms, target, ignore, type, /* If the function returns a BLKmode object in a register, copy it out of the temp register into a BLKmode memory object. */ - if (TYPE_MODE (TREE_TYPE (TREE_TYPE (fndecl))) == BLKmode + if (target + && TYPE_MODE (TREE_TYPE (TREE_TYPE (fndecl))) == BLKmode && ! aggregate_value_p (TREE_TYPE (TREE_TYPE (fndecl)))) target = copy_blkmode_from_reg (0, target, TREE_TYPE (TREE_TYPE (fndecl))); -- 2.30.2