diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2012-09-06 14:07:23 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2012-09-06 10:07:23 -0400 |
commit | 81a14f1e73f545848cdd03fc568390a419686044 (patch) | |
tree | b69cffa755ad1aee5ef785de0402f9a867af3c14 /gcc | |
parent | 342f75af29f1edef49299eac42ae9c83aa32525d (diff) | |
download | gcc-81a14f1e73f545848cdd03fc568390a419686044.zip gcc-81a14f1e73f545848cdd03fc568390a419686044.tar.gz gcc-81a14f1e73f545848cdd03fc568390a419686044.tar.bz2 |
rs6000.c (rs6000_xcoff_asm_named_section): Add TLS section.
* config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
section.
* config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
arguments to TARGET_ADDRESS_COST call.
From-SVN: r191027
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 10 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92a302f..7c3d87a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-09-06 David Edelsohn <dje.gcc@gmail.com> + + * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS + section. + * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new + arguments to TARGET_ADDRESS_COST call. + 2012-09-06 Richard Guenther <rguenther@suse.de> * tree.h (MOVE_NONTEMPORAL): Remove. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 430125f..ac7e6f2 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -25547,10 +25547,12 @@ rs6000_xcoff_asm_named_section (const char *name, unsigned int flags, tree decl ATTRIBUTE_UNUSED) { int smclass; - static const char * const suffix[3] = { "PR", "RO", "RW" }; + static const char * const suffix[4] = { "PR", "RO", "RW", "TL" }; if (flags & SECTION_CODE) smclass = 0; + else if (flags & SECTION_TLS) + smclass = 3; else if (flags & SECTION_WRITE) smclass = 2; else @@ -26071,10 +26073,10 @@ rs6000_debug_rtx_costs (rtx x, int code, int outer_code, int opno, int *total, /* Debug form of ADDRESS_COST that is selected if -mdebug=cost. */ static int -rs6000_debug_address_cost (rtx x, enum machine_mode mode ATTRIBUTE_UNUSED, - addr_space_t as ATTRIBUTE_UNUSED, bool speed) +rs6000_debug_address_cost (rtx x, enum machine_mode mode, + addr_space_t as, bool speed) { - int ret = TARGET_ADDRESS_COST (x, speed); + int ret = TARGET_ADDRESS_COST (x, mode, as, speed); fprintf (stderr, "\nrs6000_address_cost, return = %d, speed = %s, x:\n", ret, speed ? "true" : "false"); |