[patch] Preserve return statements at -O0

Eric Botcazou ebotcazou@adacore.com
Wed Apr 6 07:03:00 GMT 2011


Hi,

this patchlet ensures that return statements are preserved at -O0 so that you 
can put a breakpoint on them in the debugger.

Bootstrapped/regtested on x86_64-suse-linux, OK for the mainline?


2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>

	* gimple-low.c (lower_gimple_return): When not optimizing, force
	labels associated with user returns to be preserved.


2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>

	* gnat.dg/return3.adb: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 593 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110406/6001438e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: return3.adb
Type: text/x-adasrc
Size: 166 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110406/6001438e/attachment-0001.bin>


More information about the Gcc-patches mailing list