OSDN Git Service

2008-10-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Oct 2008 17:16:46 +0000 (17:16 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Oct 2008 17:16:46 +0000 (17:16 +0000)
commit5485b95993fb050b72cda916567017a2e3698373
tree42ccc636ef21cba0db86051f05076ac6b24aa628
parent02c52e944f67987d3e2a506e9e3e9c60282db7ae
2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 11492
* c-common.c (min_precision): Move to...
* tree.c (tree_int_cst_min_precision): ... to here. Renamed.
* tree.h (tree_int_cst_min_precision): Declare.
* c-common.h (min_precision): Delete declaration.
* fold-const.c (tree_binary_nonnegative_warnv_p): Handle
multiplication of non-negative integer constants.
* c-decl.c (check_bitfield_type_and_width): Rename min_precision to
tree_int_cst_min_precision.
(finish_enum): Likewise.
cp/
* class.c (check_bitfield_decl): Rename min_precision to
tree_int_cst_min_precision.
* decl.c (finish_enum): Likewise.
testsuite/
* gcc.dg/pr11492.c: New.
* g++.dg/warn/pr11492.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141434 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr11492.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr11492.c [new file with mode: 0644]
gcc/tree.c
gcc/tree.h