gOlogy: skip dbranch at -Og
commitfd5974a6f2bc4229ce599142e2b8a8e9d6c49fa1
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Nov 2018 01:23:08 +0000 (1 01:23 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Nov 2018 01:23:08 +0000 (1 01:23 +0000)
treea7962616c7cc7c1826eff04a8931a5fbc1eb2986
parente766658e7fceefb455728338fdbab084d04a8ac2
gOlogy: skip dbranch at -Og

Delayed slot filling moves insns without any regard to variable
location notes, causing the location information in them to become
incorrect.

Fixing that appears to be quite difficult, but filling delay slots is
hardly an essential optimization to run at -Og, so if the user wants
to privilege debuggability, skip delay slot filling.

for  gcc/ChangeLog

* opts.c (default_options_table): Do not enable
OPT_fdelayed_branch at -Og.
* doc/invoke.texi (-fdelayed-branch): Document it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265708 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c