aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2006-11-18 23:17:33 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2006-11-18 23:17:33 +0000
commit30f421e5a50d253188351b538887e2081cfa0d7d (patch)
tree8a5d08e1ea9ec668587e6f01229d76eee95d25ee
parentb64d949c6145fb4936987d07fce6c9e9b043eb9a (diff)
downloadgcc-30f421e5a50d253188351b538887e2081cfa0d7d.zip
gcc-30f421e5a50d253188351b538887e2081cfa0d7d.tar.gz
gcc-30f421e5a50d253188351b538887e2081cfa0d7d.tar.bz2
re PR fortran/27885 (FAIL: libgomp.fortran/vla[1-7].f90 -O0 (test for excess errors))
PR fortran/27885 PR middle-end/28176 * stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types to MAX_FIXED_MODE_SIZE. From-SVN: r118977
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/stor-layout.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 86b2a37..f2aafc1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-11-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR fortran/27885
+ PR middle-end/28176
+ * stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types
+ to MAX_FIXED_MODE_SIZE.
+
2006-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (integer_valued_real_p): Handle fmin/fmax.
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index ccbf9f7..94ea457 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -1941,7 +1941,8 @@ set_sizetype (tree type)
calculating signed sizes / offsets in bits. However, when
cross-compiling from a 32 bit to a 64 bit host, we are limited to 64 bit
precision. */
- int precision = MIN (oprecision + BITS_PER_UNIT_LOG + 1,
+ int precision = MIN (MIN (oprecision + BITS_PER_UNIT_LOG + 1,
+ MAX_FIXED_MODE_SIZE),
2 * HOST_BITS_PER_WIDE_INT);
tree t;