This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25572] ppc64 -mminimal-toc trashes r30
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2005 03:03:34 -0000
- Subject: [Bug target/25572] ppc64 -mminimal-toc trashes r30
- References: <bug-25572-8090@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from amodra at bigpond dot net dot au 2005-12-28 03:03 -------
Happens at -O0 too. At -O0, r30 is used for the first time when reload decides
that the asm_operands in the following needs reloading. regs_ever_live[30]
isn't set.
(insn 8 6 10 3 (set (mem/c/i:DI (plus:DI (reg/f:DI 113 sfp)
(const_int 48 [0x30])) [0 __ptr+0 S8 A128])
(asm_operands/v:DI (";%0") ("=g") 0 [
(symbol_ref:DI ("per_cpu__kstat") <var_decl 0x80003499a0
per_cpu__kstat>)
]
[
(asm_input:DI ("0"))
] ("/src/tmp/pr25572.c") 7)) -1 (nil)
(nil))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25572