summaryrefslogtreecommitdiff
path: root/gcc/fold-const.h
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-08 05:38:12 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-08 05:38:12 +0000
commit9aa78eb08fb058149e7127b62e96b98420361d63 (patch)
treee4f77420db83c7c0c601b3cce97560e8b1722155 /gcc/fold-const.h
parent07d56ea9078b4e1ab392ffbcac0a93955c2b07ef (diff)
downloadgcc-9aa78eb08fb058149e7127b62e96b98420361d63.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212346 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r--gcc/fold-const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h
index dcb97a17a31..3b5fd8476d6 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);