* Commit: 4.9 branch: Backport RX alignment fix
@ 2014-12-24 13:30 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2014-12-24 13:30 UTC (permalink / raw)
To: gcc-patches
Hi Guys,
I am backporting an RX-specific patch from the mainline to the 4.9
branch as this fixes an internal error in the assembler (!) when
running the gcc test gcc.c-torture/compile/pr53748.c.
Cheers
Nick
gcc/ChangeLog
2014-12-24 Nick Clifton <nickc@redhat.com>
Backport from mainline:
2014-06-13 Nick Clifton <nickc@redhat.com>
* config/rx/rx.h (JUMP_ALIGN): Return the log value if user
requested alignment is active.
(LABEL_ALIGN): Likewise.
(LOOP_ALIGN): Likewise.
Index: gcc/config/rx/rx.h
===================================================================
--- gcc/config/rx/rx.h (revision 219053)
+++ gcc/config/rx/rx.h (working copy)
@@ -433,9 +433,9 @@
/* Compute the alignment needed for label X in various situations.
If the user has specified an alignment then honour that, otherwise
use rx_align_for_label. */
-#define JUMP_ALIGN(x) (align_jumps ? align_jumps : rx_align_for_label (x, 0))
-#define LABEL_ALIGN(x) (align_labels ? align_labels : rx_align_for_label (x, 3))
-#define LOOP_ALIGN(x) (align_loops ? align_loops : rx_align_for_label (x, 2))
+#define JUMP_ALIGN(x) (align_jumps > 1 ? align_jumps_log : rx_align_for_label (x, 0))
+#define LABEL_ALIGN(x) (align_labels > 1 ? align_labels_log : rx_align_for_label (x, 3))
+#define LOOP_ALIGN(x) (align_loops > 1 ? align_loops_log : rx_align_for_label (x, 2))
#define LABEL_ALIGN_AFTER_BARRIER(x) rx_align_for_label (x, 0)
#define ASM_OUTPUT_MAX_SKIP_ALIGN(STREAM, LOG, MAX_SKIP) \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-24 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-24 13:30 Commit: 4.9 branch: Backport RX alignment fix Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).