From 64a08b7f989fa4a1bace97187e5665ebeb6ea586 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Wed, 3 Sep 2014 08:02:37 +0000 Subject: [PATCH] [NDS32] Define PIC_OFFSET_TABLE_REGNUM to $gp register. * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define. From-SVN: r214849 --- gcc/ChangeLog | 4 ++++ gcc/config/nds32/nds32.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca786c20efc..00603fa4f9a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-09-03 Chung-Ju Wu + + * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define. + 2014-09-02 Trevor Saunders * cfgexpand.c (label_rtx_for_bb): Change type to diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index bbcf1005e02..22593fe4bbb 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -813,6 +813,8 @@ enum reg_class /* Position Independent Code. */ +#define PIC_OFFSET_TABLE_REGNUM GP_REGNUM + /* Defining the Output Assembler Language. */ -- 2.30.2