gOlogy: skip dbranch at -Og
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 1 Nov 2018 01:23:08 +0000 (01:23 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 1 Nov 2018 01:23:08 +0000 (01:23 +0000)
commitf4baf89f7c7cef908c23081f35b3f9fc226c0d12
treea7962616c7cc7c1826eff04a8931a5fbc1eb2986
parent8ff3295bc7c28972f06a7743e005599b82aacea9
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.

From-SVN: r265708
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c