]> gcc.gnu.org Git - gcc.git/commitdiff
expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing if (aggregate_valu...
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 25 Mar 1998 10:54:42 +0000 (10:54 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 Mar 1998 10:54:42 +0000 (05:54 -0500)
* expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing
if (aggregate_value_p (type)).

From-SVN: r18823

gcc/cp/ChangeLog
gcc/cp/expr.c

index 6fd67544e8827d6fd83f90556c94bb3ea79b283c..9bed584996c007bcda6398ad75885bd00c5fbb74 100644 (file)
@@ -1,5 +1,8 @@
 Wed Mar 25 02:01:02 1998  Jason Merrill  <jason@yorick.cygnus.com>
 
+       * expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing
+       if (aggregate_value_p (type)).
+
        * decl2.c (constructor_name_full): Handle TYPENAME_TYPE.
 
 Tue Mar 24 16:12:01 1998  Mark Mitchell  <mmitchell@usa.net>
index aa229d4330bbea405e8ff87675b8bea32089f220..50159cdbefd145b67fcf2fcec2f9b78193d05650 100644 (file)
@@ -114,11 +114,13 @@ cplus_expand_expr (exp, target, tmode, modifier)
          }
        else
          {
-#ifdef PCC_STATIC_STRUCT_RETURN
-           pcc_struct_return = 1;
-           call_target = 0;
-#else
            call_target = target;
+#ifdef PCC_STATIC_STRUCT_RETURN
+           if (aggregate_value_p (type))
+             {
+               pcc_struct_return = 1;
+               call_target = 0;
+             }
 #endif
          }
 
This page took 0.082039 seconds and 5 git commands to generate.