]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR ada/33788 (GNAT bug box in expand_expr_addr_expr_1, at expr.c:6862)
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 12 Jan 2008 22:39:49 +0000 (22:39 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 12 Jan 2008 22:39:49 +0000 (22:39 +0000)
commit52ef2874d251e7aafa267b9eaf9d5c6b24d29f4b
tree9fbe6956653b449d127488655bf8fc317363e50d
parenta60b56a48842de242a7d71cb32bcf5b9e0482e4a
re PR ada/33788 (GNAT bug box in expand_expr_addr_expr_1, at expr.c:6862)

PR ada/33788
* fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
NOP_EXPR if it is between integral types with the same precision.

From-SVN: r131493
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/utils.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/bit_packed_array.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/bit_packed_array.ads [new file with mode: 0644]