r140902 - in /trunk/gcc: ada/ChangeLog ada/gcc-...
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Mon Oct 6 07:09:00 GMT 2008
Author: ebotcazou
Date: Mon Oct 6 07:09:41 2008
New Revision: 140902
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140902
Log:
2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
(unchecked_convert): Use it to disable problematic folding with
VIEW_CONVERT_EXPR in the general case. Always disable it for the
special VIEW_CONVERT_EXPR built for integral types and cope with
its addressability issues by preserving the first conversion.
Added:
trunk/gcc/testsuite/gnat.dg/unchecked_convert2.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/utils.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list