This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54063] [4.8 regression] on powerpc64 gcc 4.8 generates larger code for global variable accesses than gcc 4.7
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jul 2012 18:47:30 +0000
- Subject: [Bug target/54063] [4.8 regression] on powerpc64 gcc 4.8 generates larger code for global variable accesses than gcc 4.7
- Auto-submitted: auto-generated
- References: <bug-54063-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54063
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gcc dot gnu.org
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-07-21 18:47:30 UTC ---
It's caused by Alan Modra's "rs6000 toc reference rtl again" change in r187699:
http://gcc.gnu.org/ml/gcc-cvs/2012-05/msg00696.html
http://gcc.gnu.org/ml/gcc-patches/2012-05/msg00006.html
Here's the diff in output from r187698 and r187699 on this test case:
--- glovar.s-r187698 2012-07-21 20:31:01.000000000 +0200
+++ glovar.s-r187699 2012-07-21 20:35:59.000000000 +0200
@@ -11,8 +11,9 @@
.previous
.type lookup, @function
.L.lookup:
+ addis 10,2,.LANCHOR0@toc@ha
addis 8,2,.LANCHOR0@toc@ha
- ld 9,.LANCHOR0@toc@l(8)
+ ld 9,.LANCHOR0@toc@l(10)
addi 8,8,.LANCHOR0@toc@l
cmpd 7,9,8
bne 7,.L4