Commit 309d8365 by J"orn Rennecke Committed by Joern Rennecke

sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.

        * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.

testsuite:

        * gcc.dg/20020312-2.c: Add SH target.

From-SVN: r52733
parent 51214775
Wed Apr 24 21:25:59 2002 J"orn Rennecke <joern.rennecke@superh.com> Wed Apr 24 21:35:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
* sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
* sh.md (divsi3_i4_media): Use match_operand for input values * sh.md (divsi3_i4_media): Use match_operand for input values
rather than hard registers. rather than hard registers.
......
...@@ -898,7 +898,7 @@ extern char sh_additional_register_names[ADDREGNAMES_SIZE] \ ...@@ -898,7 +898,7 @@ extern char sh_additional_register_names[ADDREGNAMES_SIZE] \
/* Register to hold the addressing base for position independent /* Register to hold the addressing base for position independent
code access to data items. */ code access to data items. */
#define PIC_OFFSET_TABLE_REGNUM PIC_REG #define PIC_OFFSET_TABLE_REGNUM (flag_pic ? PIC_REG : INVALID_REGNUM)
#define GOT_SYMBOL_NAME "*_GLOBAL_OFFSET_TABLE_" #define GOT_SYMBOL_NAME "*_GLOBAL_OFFSET_TABLE_"
......
Wed Apr 24 21:38:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
* gcc.dg/20020312-2.c: Add SH target.
2002-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2002-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.c-torture/compile/labels-3.x: New file, don't assemble the * gcc.c-torture/compile/labels-3.x: New file, don't assemble the
......
...@@ -94,6 +94,8 @@ ...@@ -94,6 +94,8 @@
/* No pic register. */ /* No pic register. */
#elif defined(__XTENSA__) #elif defined(__XTENSA__)
/* No pic register. */ /* No pic register. */
#elif defined(__sh__)
# define PIC_REG "r12"
#else #else
# error "Modify the test for your target." # error "Modify the test for your target."
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment