This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 May 2012 19:46:22 +0000
- Subject: [Bug target/53219] inline function erroneously clobbers %i0 register on 64 bit sparc compile of perls regcomp.c
- Auto-submitted: auto-generated
- References: <bug-53219-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53219
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-05-05
CC| |ebotcazou at gcc dot
| |gnu.org
Ever Confirmed|0 |1
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-05 19:46:22 UTC ---
> This is the generated assembler code:
>
> 0x4058f560 <Perl_re_compile+128>:
> brnz %g1, 0x4058f570 <Perl_re_compile+144>
> 0x4058f564 <Perl_re_compile+132>: add %l3, %g1, %l5
> 0x4058f568 <Perl_re_compile+136>: clr [ %fp + 0x66b ]
> 0x4058f56c <Perl_re_compile+140>: clr [ %fp + 0x88f ], %i0
> 0x4058f574 <Perl_re_compile+148>: and %i0, 0xe0, %g1
> 0x4058f578 <Perl_re_compile+152>: srl %g1, 5, %g1
> 0x4058f57c <Perl_re_compile+156>: cmp %g1, 1
> 0x4058f580 <Perl_re_compile+160>:
> be,pn %icc, 0x40590ecc <Perl_re_compile+6636>
>
> Note at the ==> marker, %i0 is reloaded without save before nor any restore
> later.
The assembly has apparently been mangled, please repost a correct version.