From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14965 invoked by alias); 21 Mar 2012 09:01:56 -0000 Received: (qmail 14949 invoked by uid 22791); 21 Mar 2012 09:01:54 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Mar 2012 09:01:36 +0000 Received: from nat-dem.mentorg.com ([195.212.93.2] helo=eu2-mail.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1SAHQD-0001F9-Ng from Thomas_Schwinge@mentor.com ; Wed, 21 Mar 2012 02:01:33 -0700 Received: from feldtkeller.schwinge.homeip.net ([172.30.64.78]) by eu2-mail.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 21 Mar 2012 10:01:32 +0100 From: Thomas Schwinge To: Kaz Kojima Cc: binutils@sourceware.org, aoliva@redhat.com, gdb-patches@sourceware.org, kevinb@redhat.com Subject: Re: [SH] .8byte directive (for DWARF data) In-Reply-To: <20120321.121127.243831052.kkojima@rr.iij4u.or.jp> References: <87vclzgvfx.fsf@schwinge.name> <20120321.121127.243831052.kkojima@rr.iij4u.or.jp> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 21 Mar 2012 09:01:00 -0000 Message-ID: <878viugwfa.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00771.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 4626 Hi! Here is the patch I committed -- I figured I might as well update the documentation, too. gas/ [SH] Support the .uaquad and .8byte directives also for non-sh64 configurations. * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle BFD_RELOC_64. * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad description... * doc/c-sh.texi (SH Machine Directives): ... here. Index: config/tc-sh.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gas/config/tc-sh.c,v retrieving revision 1.139 diff -u -p -r1.139 tc-sh.c --- config/tc-sh.c 28 Jun 2010 14:06:57 -0000 1.139 +++ config/tc-sh.c 21 Mar 2012 08:55:44 -0000 @@ -1,6 +1,6 @@ /* tc-sh.c -- Assemble code for the Renesas / SuperH SH Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Free Software Foundation, Inc. =20 This file is part of GAS, the GNU Assembler. @@ -789,11 +789,9 @@ sh_cons_fix_new (fragS *frag, int off, i r_type =3D BFD_RELOC_32; break; =20 -#ifdef HAVE_SH64 case 8: r_type =3D BFD_RELOC_64; break; -#endif =20 default: goto error; @@ -3968,6 +3966,11 @@ md_apply_fix (fixS *fixP, valueT *valP,=20 the other symbol. We have to adjust the relocation type here. */ if (fixP->fx_pcrel) { +#ifndef HAVE_SH64 + /* Safeguard; this must not occur for non-sh64 configurations. */ + gas_assert (fixP->fx_r_type !=3D BFD_RELOC_64); +#endif + switch (fixP->fx_r_type) { default: @@ -4166,6 +4169,12 @@ md_apply_fix (fixS *fixP, valueT *valP,=20 buf[highbyte] |=3D (val >> 8) & 0xf; break; =20 +#ifndef HAVE_SH64 + case BFD_RELOC_64: + apply_full_field_fix (fixP, buf, *valP, 8); + break; +#endif + case BFD_RELOC_32: case BFD_RELOC_32_PCREL: apply_full_field_fix (fixP, buf, val, 4); Index: doc/c-sh.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gas/doc/c-sh.texi,v retrieving revision 1.14 diff -u -p -r1.14 c-sh.texi --- doc/c-sh.texi 18 Jan 2011 13:37:39 -0000 1.14 +++ doc/c-sh.texi 21 Mar 2012 08:55:44 -0000 @@ -1,5 +1,5 @@ @c Copyright 1991, 1992, 1993, 1994, 1995, 1997, 2001, 2003, 2004, -@c 2005, 2008, 2010, 2011 Free Software Foundation, Inc. +@c 2005, 2008, 2010, 2011, 2012 Free Software Foundation, Inc. @c This is part of the GAS manual. @c For copying conditions, see the file as.texinfo. @page @@ -210,13 +210,16 @@ conventional architectures at the same f @cindex machine directives, SH @cindex @code{uaword} directive, SH @cindex @code{ualong} directive, SH +@cindex @code{uaquad} directive, SH =20 @table @code @item uaword @itemx ualong -@code{@value{AS}} will issue a warning when a misaligned @code{.word} or -@code{.long} directive is used. You may use @code{.uaword} or -@code{.ualong} to indicate that the value is intentionally misaligned. +@itemx uaquad +@code{@value{AS}} will issue a warning when a misaligned @code{.word}, +@code{.long}, or @code{.quad} directive is used. You may use +@code{.uaword}, @code{.ualong}, or @code{.uaquad} to indicate that the +value is intentionally misaligned. @end table =20 @node SH Opcodes Index: doc/c-sh64.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gas/doc/c-sh64.texi,v retrieving revision 1.11 diff -u -p -r1.11 c-sh64.texi --- doc/c-sh64.texi 18 Jan 2011 13:37:39 -0000 1.11 +++ doc/c-sh64.texi 21 Mar 2012 08:55:44 -0000 @@ -1,4 +1,4 @@ -@c Copyright (C) 2002, 2003, 2008, 2011 Free Software Foundation, Inc. +@c Copyright (C) 2002, 2003, 2008, 2011, 2012 Free Software Foundation, In= c. @c This is part of the GAS manual. @c For copying conditions, see the file as.texinfo. @page @@ -188,10 +188,6 @@ Specify the ABI for the following instru this directive unless you specified an ABI on the command line, and the=20 ABIs specified must match. =20 -@item .uaquad -Like .uaword and .ualong, this allows you to specify an intentionally -unaligned quadword (64 bit word). - @end table =20 @node SH64 Opcodes Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPaZjZAAoJENuKOtuXzphJBVoIAIxiRYFrqf2hwhgo1HcCxYbl wMa1MLBuq+JgWHyygPwIohWaswNiwqcoy5HsK40ZYlaARoopSAQcDjALiLRNBckB Gqqt4wsiWwK5rJNFCJGGjOMmQv2DyXnGnxQbzRCGUi4g3vuWZQRvqtVHiswc66nC xiaOi43n/kxmwXB53DWrWckUtBmGgYh5pkr+NLa548xp+ErQkqIeN45JW3Mn0eyF iAgYetx7idUdmcpFiDd+imVXBAy4QEZd8hIGfKNxceVP9BegGIZVQh6vF2Jlu/pA OuAh1VmVVeh/0OXyvuHBzdnz0MXRNeZC7TI0OwoSTEmgPP04hyVijMnxW/pNXPo= =b+ts -----END PGP SIGNATURE----- --=-=-=--