diff options
author | Richard Guenther <rguenther@suse.de> | 2011-05-04 14:56:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-05-04 14:56:14 +0000 |
commit | c62c040f163cb557936e5b680dbb822d31c2e8e7 (patch) | |
tree | 01becb52afb237122f45f55265ad89d0694041de /gcc/c-decl.c | |
parent | 1e3287d0e91ae7f1c19ecc3031fbb548f06db652 (diff) | |
download | gcc-c62c040f163cb557936e5b680dbb822d31c2e8e7.zip gcc-c62c040f163cb557936e5b680dbb822d31c2e8e7.tar.gz gcc-c62c040f163cb557936e5b680dbb822d31c2e8e7.tar.bz2 |
c-decl.c (check_bitfield_type_and_width): Do not pass NULL to build_int_cst.
2011-05-04 Richard Guenther <rguenther@suse.de>
* c-decl.c (check_bitfield_type_and_width): Do not pass NULL
to build_int_cst.
* c-typeck.c (really_start_incremental_init): Use bitsize_int
for constructor indices.
(push_init_level): Likewise.
c-family/
* c-common.c (fix_string_type): Use size_int for index type bounds.
(start_fname_decls): Do not pass NULL to build_int_cst.
(c_init_attributes): Likewise.
* c-lex.c (c_lex_with_flags): Likewise.
From-SVN: r173378
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 008f4c6..9b217d2 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4717,7 +4717,7 @@ check_bitfield_type_and_width (tree *type, tree *width, tree orig_name) { error ("width of %qs exceeds its type", name); w = max_width; - *width = build_int_cst (NULL_TREE, w); + *width = build_int_cst (integer_type_node, w); } else w = tree_low_cst (*width, 1); |