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:
parent
118ca7d014
commit
19b3ffbcaf
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
2005-02-22 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* cfg.c (cached_make_edge): Call make_edge if edge cache is
|
* cfg.c (cached_make_edge): Call make_edge if edge cache is
|
||||||
|
|
|
@ -1606,10 +1606,14 @@ c_common_type_for_mode (enum machine_mode mode, int unsignedp)
|
||||||
return void_type_node;
|
return void_type_node;
|
||||||
|
|
||||||
if (mode == TYPE_MODE (build_pointer_type (char_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)))
|
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))
|
if (COMPLEX_MODE_P (mode))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue