]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-decl.c (duplicate_decls): Copy DECL_MODE too.
authorRichard Henderson <rth@cygnus.com>
Thu, 3 Feb 2000 18:54:23 +0000 (10:54 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 3 Feb 2000 18:54:23 +0000 (10:54 -0800)
        Wed Nov  3 10:10:58 1999  Richard Henderson  <rth@cygnus.com>
        * c-decl.c (duplicate_decls): Copy DECL_MODE too.

From-SVN: r31778

gcc/ChangeLog
gcc/c-decl.c

index b6b2b55a8257bf4fce1392ee2e1b0a53a2f720d8..3276b56077aca679074ad62916ea2774a7cc8db9 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb  3 10:53:45 2000  Richard Henderson  <rth@cygnus.com>
+
+       Wed Nov  3 10:10:58 1999  Richard Henderson  <rth@cygnus.com>
+        * c-decl.c (duplicate_decls): Copy DECL_MODE too.
+
 Thu Jan 20 10:02:07 2000  Richard Henderson  <rth@cygnus.com>
 
        2000-01-03  Anthony Green  <green@cygnus.com>
index a232217bc0a5ed452e4749f03d05d6c605b84f7c..8844988fa8f3b62336fba1067307f9d1be27864b 100644 (file)
@@ -1951,6 +1951,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
        {
          /* Since the type is OLDDECL's, make OLDDECL's size go with.  */
          DECL_SIZE (newdecl) = DECL_SIZE (olddecl);
+         DECL_MODE (newdecl) = DECL_MODE (olddecl);
          if (TREE_CODE (olddecl) != FUNCTION_DECL)
            if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl))
              DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl);