This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/60039] sh3 optimisation bug with -O2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039

--- Comment #8 from Nick Hudson <skrll at netbsd dot org> ---
On 03/18/14 02:34, kkojima at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039
>
> --- Comment #7 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
> Ugh, then this is an old problem and we've missed to give a correct
> clobber information to udivsi3_i1 insn for PIC.  Does the patch
> below fix the issue?
>
> --- gcc/config/sh/sh.md.orig    2013-09-13 17:38:22.000000000 +0900
> +++ gcc/config/sh/sh.md    2014-03-18 11:08:19.868887133 +0900
> @@ -2152,6 +2152,7 @@
>       (udiv:SI (reg:SI R4_REG) (reg:SI R5_REG)))
>      (clobber (reg:SI T_REG))
>      (clobber (reg:SI PR_REG))
> +   (clobber (reg:SI R1_REG))
>      (clobber (reg:SI R4_REG))
>      (use (match_operand:SI 1 "arith_reg_operand" "r"))]
>     "TARGET_SH1 && TARGET_DIVIDE_CALL_DIV1"
>
yes, this patch helps ld.elf_so.

I seem to have a different problem in libc now.

Thanks,
Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]