[SPARC] Recognize the load when accessing the GOT
authorDaniel Cederman <cederman@gaisler.com>
Wed, 29 Nov 2017 15:45:41 +0000 (15:45 +0000)
committerDaniel Hellstrom <danielh@gcc.gnu.org>
Wed, 29 Nov 2017 15:45:41 +0000 (16:45 +0100)
commit9d52da2f217d5b9a4fef5090251025f6a99bb108
tree0c8bea143aebc27850e32f59e7ab965457e32546
parent6f9bc5a70fb1066611e42efea9547fa36f398065
[SPARC] Recognize the load when accessing the GOT

Needed for the UT699 errata workaround to function correctly when
compiling with -fPIC.

2017-11-29  Daniel Cederman  <cederman@gaisler.com>

gcc/
* config/sparc/sparc.c (sparc_do_work_around_errata): Treat the
        movsi_pic_gotdata_op instruction as a load for the UT699 errata
        workaround.

From-SVN: r255239
gcc/ChangeLog
gcc/config/sparc/sparc.c