This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] final.c max_skip without p2align
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: dje at watson dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Cc: jh at suse dot cz
- Date: Thu, 20 Feb 2003 19:19:59 +0000
- Subject: Re: [PATCH] final.c max_skip without p2align
- Organization: SuperH UK Ltd.
+ #ifndef ASM_OUTPUT_MAX_SKIP_ALIGN
+ if ((new_address - insn_current_address)
+ <= LABEL_TO_MAX_SKIP (insn))
+ insn_lengths[uid] = new_address - insn_current_address;
+ else
+ LABEL_TO_ALIGNMENT (insn) = 0;
+ #else
insn_lengths[uid] = new_address - insn_current_address;
+ #endif
This violates the assumption that the location counter is aligned after
an alignment. As a result, you might see out-of-range branches and
shorten_branches looping forever.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658