utils2.c (build_binary_op): If operation's type is an enumeral or a boolean type...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 22 Apr 2009 22:32:54 +0000 (22:32 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 22 Apr 2009 22:32:54 +0000 (22:32 +0000)
commitb7babd5d428f7439b7cd83077b7c3d902570e0ea
treebeedd09a228d7c271f4269d3c601ccd2aa414c7e
parent5225a1389d0058ac8f64153efa64c8e07ec13c9a
utils2.c (build_binary_op): If operation's type is an enumeral or a boolean type...

* gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
type is an enumeral or a boolean type, change it to an integer type
with the same mode and signedness.

From-SVN: r146625
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/enum2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/enum2_pkg.ads [new file with mode: 0644]