c-common.c (c_common_type_for_mode): Pass the mode's precision to make_[un]signed_type, not the mode itself.

* c-common.c (c_common_type_for_mode): Pass the mode's precision
to make_[un]signed_type, not the mode itself.

From-SVN: r95412
This commit is contained in:
DJ Delorie 2005-02-22 15:10:45 -05:00 committed by DJ Delorie
parent 118ca7d014
commit 19b3ffbcaf
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-02-22 DJ Delorie <dj@redhat.com>
* c-common.c (c_common_type_for_mode): Pass the mode's precision
to make_[un]signed_type, not the mode itself.
2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
* cfg.c (cached_make_edge): Call make_edge if edge cache is

View file

@ -1606,10 +1606,14 @@ c_common_type_for_mode (enum machine_mode mode, int unsignedp)
return void_type_node;
if (mode == TYPE_MODE (build_pointer_type (char_type_node)))
return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);
return (unsignedp
? make_unsigned_type (GET_MODE_PRECISION (mode))
: make_signed_type (GET_MODE_PRECISION (mode)));
if (mode == TYPE_MODE (build_pointer_type (integer_type_node)))
return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);
return (unsignedp
? make_unsigned_type (GET_MODE_PRECISION (mode))
: make_signed_type (GET_MODE_PRECISION (mode)));
if (COMPLEX_MODE_P (mode))
{