OSDN Git Service

* value.h (unop_promote, binop_promote): Add prototypes.
authoruweigand <uweigand>
Thu, 11 Sep 2008 14:14:20 +0000 (14:14 +0000)
committeruweigand <uweigand>
Thu, 11 Sep 2008 14:14:20 +0000 (14:14 +0000)
commit9f847a0c6a00065b466c0c7ba02d735f50bf3e5b
treefd0c0e81cb326dce3b1b4badaa8bc803ac9647df
parentde5ef9c8342b399807adfcec19fd46b647150815
* value.h (unop_promote, binop_promote): Add prototypes.
* eval.c (unop_promote, binop_promote): New functions.
* valarith.c (unop_result_type, binop_result_type): Remove.
(value_binop): Call binop_promote or unop_promote.
Inline remaining parts of binop_result_type.  Remove special
code to truncate integer values for unsigned operations.
(value_pos): Call unop_promote.  Inline remaining parts of
unop_result_type.
(value_neg, value_complement): Likewise.
gdb/ChangeLog
gdb/eval.c
gdb/valarith.c
gdb/value.h