OSDN Git Service

* stor-layout.c (set_sizetype): Avoid useless type copy.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Sep 2009 10:55:30 +0000 (10:55 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Sep 2009 10:55:30 +0000 (10:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151898 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stor-layout.c

index 51b9fea..fceb967 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * stor-layout.c (set_sizetype): Avoid useless type copy.
+
 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
index 47ce848..8ff286c 100644 (file)
@@ -2310,9 +2310,9 @@ set_sizetype (tree type)
   if (TYPE_UNSIGNED (type))
     {
       fixup_unsigned_type (bitsizetype);
-      ssizetype = build_distinct_type_copy (make_signed_type (oprecision));
+      ssizetype = make_signed_type (oprecision);
       TYPE_IS_SIZETYPE (ssizetype) = 1;
-      sbitsizetype = build_distinct_type_copy (make_signed_type (precision));
+      sbitsizetype = make_signed_type (precision);
       TYPE_IS_SIZETYPE (sbitsizetype) = 1;
     }
   else