From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by sourceware.org (Postfix) with ESMTP id 3B6803858D34 for ; Fri, 3 Jul 2020 09:30:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3B6803858D34 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-486-nBWxTmVEP1a15EmdWafgeQ-1; Fri, 03 Jul 2020 05:30:20 -0400 X-MC-Unique: nBWxTmVEP1a15EmdWafgeQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6D92518A8220; Fri, 3 Jul 2020 09:30:19 +0000 (UTC) Received: from blade.nx (ovpn-113-167.ams2.redhat.com [10.36.113.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id 402D55C221; Fri, 3 Jul 2020 09:30:19 +0000 (UTC) Received: by blade.nx (Postfix, from userid 1000) id 888DA816CCA9; Fri, 3 Jul 2020 10:30:18 +0100 (BST) Date: Fri, 3 Jul 2020 10:30:18 +0100 From: Gary Benson To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Make out of range type conversions explicit Message-ID: <20200703093018.GB8482@blade.nx> References: <1593525480-5685-1-git-send-email-gbenson@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2020 09:30:25 -0000 Pedro Alves wrote: > diff --git a/gdb/testsuite/gdb.base/structs2.c b/gdb/testsuite/gdb.base/structs2.c > index 7c8be035221..aac7bce8c15 100644 > --- a/gdb/testsuite/gdb.base/structs2.c > +++ b/gdb/testsuite/gdb.base/structs2.c > @@ -13,7 +13,7 @@ main () > > bkpt = 0; > param_reg (120, 130, 32000, 33000); > - param_reg (130, 120, 33000, 32000); > + param_reg (-120, 130, -32000, 33000); > > return 0; > } On first glance I thought this was a copy-paste error. I don't think it is, but, just in case, can you confirm the change above is what you intended? > diff --git a/gdb/testsuite/gdb.base/structs2.exp b/gdb/testsuite/gdb.base/structs2.exp > index 8a7d9c69378..5722be3109c 100644 > --- a/gdb/testsuite/gdb.base/structs2.exp > +++ b/gdb/testsuite/gdb.base/structs2.exp > @@ -49,5 +49,5 @@ if [test_compiler_info gcc-3-*] { > setup_xfail hppa*-* gcc/15860 > } > gdb_test "continue" \ > - ".*pr_char=-126.*pr_uchar=120.*pr_short=-32536.*pr_ushort=32000.*bkpt = 1.*" \ > + ".*pr_char=-120.*pr_uchar=130.*pr_short=-32000.*pr_ushort=33000.*bkpt = 1.*" \ > "structs2 continue2" -- Gary Benson - he / him / his Principal Software Engineer, Red Hat