This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42841] [4.3/4.4/4.5 Regression] SH: Assembler complains pcrel too far.
- From: "christian dot bruel at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2010 11:47:53 -0000
- Subject: [Bug target/42841] [4.3/4.4/4.5 Regression] SH: Assembler complains pcrel too far.
- References: <bug-42841-18412@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from christian dot bruel at st dot com 2010-01-22 11:47 -------
Hello,
I had a similar problem a while ago, but was never able to reproduce on trunk.
I was a phasing problem between branch_shortening from sh_reorg and the
delayed branch scheduler, that would change the size of a bf (2) against a
bf/s+instruction (4). Thus breaking surrounding branch offsets.
-fno-delayed-branch is the workaround.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42841