From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83827 invoked by alias); 7 Mar 2017 09:22:47 -0000 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 Received: (qmail 83212 invoked by uid 89); 7 Mar 2017 09:22:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:1562, H*Ad:D*cc, Hx-spam-relays-external:ESMTPA X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Mar 2017 09:22:45 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B746220A95; Tue, 7 Mar 2017 04:22:44 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 07 Mar 2017 04:22:44 -0500 X-ME-Sender: Received: from localhost (202-159-189-96.dyn.iinet.net.au [202.159.189.96]) by mail.messagingengine.com (Postfix) with ESMTPA id 04D9D24077; Tue, 7 Mar 2017 04:22:43 -0500 (EST) From: tcharding To: Alan Modra Cc: binutils@sourceware.org, "Tobin C . Harding" Subject: [PATCH] Add documentation of warning if byte size exceeded Date: Tue, 07 Mar 2017 09:22:00 -0000 Message-Id: <1488878554-19889-1-git-send-email-me@tobin.cc> X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00091.txt.bz2 From: Tobin C. Harding GAS throws a warning if an attempt is made to declare data that exceeds the size allocated when using directives .2byte or .4byte. Add documentation indicating the warning and the action taken by the assembler. --- I see that the patch prior to this one (commit d10ef45) has caused build fail for someone. Is there anything I can do to help rectify that issue? gas/doc/as.texinfo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 0a70d7c..6f62511 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -7347,7 +7347,8 @@ instead of zero. Using @samp{.zero} in this way would be confusing however. This directive @code{.2byte}, which is available for ELF targets, expects zero or more expressions, separated by commas. Each expression is assembled into the -next two bytes. +next two bytes. If the expression won't fit in 2 bytes, it prints a +warning message; and just takes the lowest order 2 bytes of the expression. @node 4byte @cindex @code{4byte} directive @@ -7357,7 +7358,8 @@ next two bytes. This directive @code{.4byte}, which is available for ELF targets, expects zero or more expressions, separated by commas. Each expression is assembled into the -next four bytes. +next four bytes. If the expression won't fit in 4 bytes, it prints a +warning message; and just takes the lowest order 4 bytes of the expression. @node 8byte @cindex @code{8byte} directive -- 2.7.4