* [patch committed] SH: Use as_bad_where in sh_handle_align
@ 2007-04-16 14:19 Kaz Kojima
0 siblings, 0 replies; only message in thread
From: Kaz Kojima @ 2007-04-16 14:19 UTC (permalink / raw)
To: binutils
I've committed the attached tiny patch. It makes a misaligned
data to be an error in sh_handle_align. The patch is regtested
on sh-elf and sh4-unknown-linux-gnu with no new failures.
Regards,
kaz
--
2007-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* config/tc-sh.c (sh_handle_align): Call as_bad_where instead
of as_warn_where for misaligned data.
diff -up ORIG/src/gas/config/tc-sh.c LOCAL/src/gas/config/tc-sh.c
--- ORIG/src/gas/config/tc-sh.c 2007-04-16 09:02:54.000000000 +0900
+++ LOCAL/src/gas/config/tc-sh.c 2007-04-16 11:59:51.000000000 +0900
@@ -3777,7 +3777,7 @@ sh_handle_align (fragS *frag)
else if (frag->fr_type == rs_align_test)
{
if (bytes != 0)
- as_warn_where (frag->fr_file, frag->fr_line, _("misaligned data"));
+ as_bad_where (frag->fr_file, frag->fr_line, _("misaligned data"));
}
if (sh_relax
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-16 13:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 14:19 [patch committed] SH: Use as_bad_where in sh_handle_align Kaz Kojima
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).