rs6000: Don't forget to initialize the TOC (PR77957)
commit53f6e6c47bb4243fced4a222d8783e85c66499ab
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Nov 2016 15:13:14 +0000 (12 15:13 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Nov 2016 15:13:14 +0000 (12 15:13 +0000)
tree4f88af78effffd1f22988bd192edb3bc7aaae7f1
parentf7b2c82bbb2612226023c48b3ba62a45730e77f8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242336 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.c