[Ada] Fix overzealous renaming optimization
Eric Botcazou
ebotcazou@adacore.com
Mon Jan 12 19:21:00 GMT 2009
This was exposed very recently because of some front-end changes. And the
comment already says what to do.
Tested on i586-suse-linux, applied on the mainline.
2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
only useless conversions around renamed objects.
2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert3.adb: New test.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 666 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090112/a56b2c9e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unchecked_convert3.adb
Type: text/x-adasrc
Size: 355 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090112/a56b2c9e/attachment-0001.bin>
More information about the Gcc-patches
mailing list