This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/64833] [SH]: Error: pcrel too far when compiling imagemagick and graphicsmagick on Debian sh4
- From: "kkojima at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jun 2015 22:36:47 +0000
- Subject: [Bug target/64833] [SH]: Error: pcrel too far when compiling imagemagick and graphicsmagick on Debian sh4
- Auto-submitted: auto-generated
- References: <bug-64833-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64833
--- Comment #20 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
(In reply to Oleg Endo from comment #17)
> Increasing insn lengths unnecessarily might result in some unlucky constant
> pool placements and far branches and some code might get worse. On the
> other hand, constant pool placement and far branch code generation is "a
> matter of luck" anyway.
The tests for the patch in c#16 has been done successfully on trunk.
On second thought, you are right about "a matter of luck" which is
proved by this corner case bug itself reproduced only with rather
exotic options. Even the patch doesn't affect existing codes, a tiny
change of options or environment variables will perturb the results.
I'll apply the patch in c#16 on trunk and backport it to 4.9/5 if
the usual tests are OK for those branches.