From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32057 invoked by alias); 16 Apr 2007 13:07:27 -0000 Received: (qmail 31938 invoked by uid 22791); 16 Apr 2007 13:07:26 -0000 X-Spam-Check-By: sourceware.org Received: from mo10.iij4u.or.jp (HELO mo10.iij4u.or.jp) (210.138.174.78) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Apr 2007 14:07:23 +0100 Received: by mo.iij4u.or.jp (mo10) id l3GD7KuK028384; Mon, 16 Apr 2007 22:07:20 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (mbox10) id l3GD7Isv006833; Mon, 16 Apr 2007 22:07:18 +0900 Date: Mon, 16 Apr 2007 14:19:00 -0000 Message-Id: <20070416.220649.15257111.kkojima@rr.iij4u.or.jp> To: binutils@sources.redhat.com Subject: [patch committed] SH: Use as_bad_where in sh_handle_align From: Kaz Kojima X-Mailer: Mew version 3.3 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00210.txt.bz2 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 * 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