diff options
author | Marek Polacek <polacek@redhat.com> | 2014-07-08 05:38:12 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-07-08 05:38:12 +0000 |
commit | 605f12f4dcb80940461150cfa9427a12653d8ed3 (patch) | |
tree | e4f77420db83c7c0c601b3cce97560e8b1722155 /gcc/fold-const.h | |
parent | 09aa4b1fac1f92c5d64bb21d5e51751786831186 (diff) | |
download | gcc-605f12f4dcb80940461150cfa9427a12653d8ed3.zip gcc-605f12f4dcb80940461150cfa9427a12653d8ed3.tar.gz gcc-605f12f4dcb80940461150cfa9427a12653d8ed3.tar.bz2 |
re PR middle-end/60226 (ICE initializing array of elements with too large alignment)
PR c/60226
* fold-const.c (round_up_loc): Change the parameter type.
Remove assert.
* fold-const.h (round_up_loc): Adjust declaration.
* stor-layout.c (finalize_record_size): Check for too large types.
* c-c++-common/pr60226.c: New test.
From-SVN: r212346
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r-- | gcc/fold-const.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h index dcb97a1..3b5fd84 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -144,7 +144,7 @@ extern tree combine_comparisons (location_t, enum tree_code, enum tree_code, extern void debug_fold_checksum (const_tree); extern bool may_negate_without_overflow_p (const_tree); #define round_up(T,N) round_up_loc (UNKNOWN_LOCATION, T, N) -extern tree round_up_loc (location_t, tree, int); +extern tree round_up_loc (location_t, tree, unsigned int); #define round_down(T,N) round_down_loc (UNKNOWN_LOCATION, T, N) extern tree round_down_loc (location_t, tree, int); extern tree size_int_kind (HOST_WIDE_INT, enum size_type_kind); |