* com.c (duplicate_decls): Synchronize with C's duplicate_decls.
authorRoger Sayle <roger@eyesopen.com>
Mon, 10 Mar 2003 23:28:08 +0000 (23:28 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 10 Mar 2003 23:28:08 +0000 (23:28 +0000)
From-SVN: r64142

gcc/f/ChangeLog
gcc/f/com.c

index 53216b83d0807674d0ad44b972a9bea2afe476aa..25d34a77598d01fab5734000d689394b4566c86f 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-10  Roger Sayle  <roger@eyesopen.com>
+
+       * com.c (duplicate_decls): Synchronize with C's duplicate_decls.
+
 Sat Mar  8 21:11:40 2003  Neil Booth  <neil@daikokuya.co.uk>
 
        * com.c (ffe_init): Update prototype; move code to ffe_post_options.
index 9c71841c543cc26dd2d8f1bc620b6ba089fdf184..08954852c95e547b20f0a447f08b50d55c4ca555 100644 (file)
@@ -1,5 +1,5 @@
 /* com.c -- Implementation File (module.c template V1.0)
-   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
    Contributed by James Craig Burley.
 
@@ -13220,9 +13220,6 @@ duplicate_decls (tree newdecl, tree olddecl)
       COPY_DECL_RTL (olddecl, newdecl);
 
       /* Merge the type qualifiers.  */
-      if (DECL_BUILT_IN_NONANSI (olddecl) && TREE_THIS_VOLATILE (olddecl)
-         && !TREE_THIS_VOLATILE (newdecl))
-       TREE_THIS_VOLATILE (olddecl) = 0;
       if (TREE_READONLY (newdecl))
        TREE_READONLY (olddecl) = 1;
       if (TREE_THIS_VOLATILE (newdecl))