function.c (assign_parms): Don't put args of inline functions into registers when...
authorJason Merrill <jason@redhat.com>
Wed, 23 Jan 2002 12:39:30 +0000 (07:39 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 23 Jan 2002 12:39:30 +0000 (07:39 -0500)
        * function.c (assign_parms): Don't put args of inline functions
        into registers when not optimizing.
        * cp/decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.

From-SVN: r49131

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/function.c

index 5c5da99da5a8994735d9a8056f36135fac275b91..7d0e69cb7bc779e515d39d17a2839ac63ac95bf8 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Jason Merrill  <jason@redhat.com>
+
+       * function.c (assign_parms): Don't put args of inline functions
+       into registers when not optimizing.
+
 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
index 7c88cace7fd89aaca893760d64ffb434d5c87d48..ff79b13382792203c7dd18eaecea88a38207b5f8 100644 (file)
@@ -1,5 +1,7 @@
 2002-01-22  Jason Merrill  <jason@redhat.com>
 
+       * decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
+
        * parse.y (function_body): Suppress the block for the outermost
        curly braces.
        * decl.c (pushdecl): Don't try to skip it.
index c384f86ccfc87ab1cc92299f7ce74bcb2369cc9b..1c7b579a9ec1a0718898b6be453a46f444766960 100644 (file)
@@ -983,10 +983,6 @@ grokclassfn (ctype, function, flags, quals)
       qual_type = cp_build_qualified_type (type, this_quals);
       parm = build_artificial_parm (this_identifier, qual_type);
       c_apply_type_quals_to_decl (this_quals, parm);
-
-      /* We can make this a register, so long as we don't
-        accidentally complain if someone tries to take its address.  */
-      DECL_REGISTER (parm) = 1;
       TREE_CHAIN (parm) = last_function_parms;
       last_function_parms = parm;
     }
index bf294ea7c344f54736905f34702fb4760be2f83e..d304b309c4e0eb58001818f5154217f82c174d05 100644 (file)
@@ -4650,8 +4650,7 @@ assign_parms (fndecl)
          SET_DECL_RTL (parm, stack_parm);
        }
       else if (! ((! optimize
-                  && ! DECL_REGISTER (parm)
-                  && ! DECL_INLINE (fndecl))
+                  && ! DECL_REGISTER (parm))
                  || TREE_SIDE_EFFECTS (parm)
                  /* If -ffloat-store specified, don't put explicit
                     float variables into registers.  */
@@ -4751,8 +4750,7 @@ assign_parms (fndecl)
             can safely live in a register, put it in one.  */
          if (passed_pointer && TYPE_MODE (TREE_TYPE (parm)) != BLKmode
              && ! ((! optimize
-                    && ! DECL_REGISTER (parm)
-                    && ! DECL_INLINE (fndecl))
+                    && ! DECL_REGISTER (parm))
                    || TREE_SIDE_EFFECTS (parm)
                    /* If -ffloat-store specified, don't put explicit
                       float variables into registers.  */