rs6000: Don't forget to initialize the TOC (PR77957)
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 12 Nov 2016 15:13:14 +0000 (16:13 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 12 Nov 2016 15:13:14 +0000 (16:13 +0100)
commitc0d6cb1a6f2ccb052ca538ac49d82abec7ef60d8
tree4f88af78effffd1f22988bd192edb3bc7aaae7f1
parentb93d8a3f16bc7582254edf988b14009587fe00a6
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: r242336
gcc/ChangeLog
gcc/config/rs6000/rs6000.c