]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Don't forget to initialize the TOC (PR77957)
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 7 Dec 2016 23:11:23 +0000 (00:11 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 7 Dec 2016 23:11:23 +0000 (00:11 +0100)
commit3841743088ab5fbcfd26238ec6f1ea4fc66ff63b
tree4c3d9d8135dec6f2a0f37940b73e1567d6c3d7e9
parent31ecce685371f1376c07991363c76b905b1e99a5
rs6000: Don't forget to initialize the TOC (PR77957)

The code generating traceback tables mistakenly does an early return
if !optional_tbtab, which causes it to miss the code generating the TOC
section.  This only matters if the TOC will be empty since otherwise
the section is created elsewhere.

This patch fixes it.

PR target/77957
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
return early if !optional_tbtab.

From-SVN: r243416
gcc/ChangeLog
gcc/config/rs6000/rs6000.c