diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 07:40:38 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 07:40:38 +0000 |
commit | dd76621fd65db1958572949115035a8c3646d846 (patch) | |
tree | cf1f6850ba4b96170148a28dae5d43e1b6b73941 /gcc/c-family/c-common.c | |
parent | 81c6af2dc6f960f98ef064146de297755d6b0894 (diff) | |
download | gcc-dd76621fd65db1958572949115035a8c3646d846.tar.gz |
Remove tree_fits_hwi_p and the 2-argument tree_to_hwi.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r-- | gcc/c-family/c-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index f330fc5d92d..b8db750b60a 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -6056,8 +6056,10 @@ match_case_to_enum_1 (tree key, tree type, tree label) { char buf[WIDE_INT_PRINT_BUFFER_SIZE]; - if (tree_fits_hwi_p (key, TYPE_SIGN (type))) - print_dec (key, buf, TYPE_SIGN (type)); + if (tree_fits_uhwi_p (key)) + print_dec (key, buf, UNSIGNED); + else if (tree_fits_shwi_p (key)) + print_dec (key, buf, SIGNED); else print_hex (key, buf); |