OSDN Git Service

* gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 22:32:54 +0000 (22:32 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 22:32:54 +0000 (22:32 +0000)
commiteac26e819860c68e5d5066821d257500a9f6bcc9
treebeedd09a228d7c271f4269d3c601ccd2aa414c7e
parent477305bf5b3a361ab982a71f0bed0a994f00cb57
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146625 138bc75d-0d04-0410-961f-82ee72b054a4
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]