m68k.opt (mxgot): New option.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 4 Jun 2008 12:17:50 +0000 (13:17 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 4 Jun 2008 12:17:50 +0000 (13:17 +0100)
commit884316ff5dd83bc8b9b38d276dcf62329ebe1681
tree34d800b5977091b32c2932a09d612fb5986fd13c
parent0e19bf429e8fdfe384b9dad2f3bbfd0c15524cda
m68k.opt (mxgot): New option.

2008-06-04  Joseph Myers  <joseph@codesourcery.com>
            Maxim Kuvyrkov  <maxim@codesourcery.com>

* config/m68k/m68k.opt (mxgot): New option.
* config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
(m68k_output_addr_const_extra): New.
* config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
* config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
* config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
* doc/invoke.texi (M680x0 Options): Document -mxgot.

testsuite:
2008-06-04  Joseph Myers  <joseph@codesourcery.com>
            Maxim Kuvyrkov  <maxim@codesourcery.com>

* gcc.target/m68k/xgot-1.c: New test.

Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com>
From-SVN: r136355
gcc/ChangeLog
gcc/config/m68k/m68k-protos.h
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h
gcc/config/m68k/m68k.md
gcc/config/m68k/m68k.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/m68k/xgot-1.c [new file with mode: 0644]