aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-09-20 10:55:30 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-09-20 10:55:30 +0000
commitd0566a63a5bc7bc67cb6da5c51507c739ac34148 (patch)
tree2cb550256aaceb5db12954fcb2df475db20ff6ee /gcc
parentf8e25a2a6c60c672dbb674afc3563d6d695d0a86 (diff)
downloadgcc-d0566a63a5bc7bc67cb6da5c51507c739ac34148.zip
gcc-d0566a63a5bc7bc67cb6da5c51507c739ac34148.tar.gz
gcc-d0566a63a5bc7bc67cb6da5c51507c739ac34148.tar.bz2
* stor-layout.c (set_sizetype): Avoid useless type copy.
From-SVN: r151898
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/stor-layout.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 51b9fea..fceb967 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 47ce848..8ff286c 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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