re PR target/17751 (Undefined .LCTOC0 symbol)
authorJakub Jelinek <jakub@redhat.com>
Mon, 24 Jan 2005 17:39:37 +0000 (18:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 24 Jan 2005 17:39:37 +0000 (18:39 +0100)
commitb723e82f033108c4f2f1d839eb6b7b16ceab9dd6
tree2a915efe1f68021bbc7733a5b510e41243a2436a
parenta2fcf6734a9ec7dbcc2ad6dd02bd3aa8c4c82dcf
re PR target/17751 (Undefined .LCTOC0 symbol)

PR target/17751
* config/rs6000/rs6000.c (rs6000_file_start): Create toc section
for AIX ABI or ELF -fPIC.
(rs6000_emit_load_toc_table): Don't create toc_section here.
(rs6000_xcoff_file_start): Nor here.

* gcc.dg/ppc64-toc.c: New test.

From-SVN: r94166
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ppc64-toc.c [new file with mode: 0644]