From patchwork Fri Oct 18 15:33:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1179466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-511300-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="s0hTHWYL"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.b="VpURjk8C"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vqnX59Hgz9sNw for ; Sat, 19 Oct 2019 02:33:52 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=F5xku+ET56Vr8RJqW2R1E76Dt3DIVFh1yVqSyV7DveWtWZBvbE s5+WIJlcrbdepuknp+TiPF4yRl+ONw/0izuPAgGnbGSa7lmy5Z7W1gRMdxxutpU1 M1LoXIA3UkiTJ82FIvvpawZGrP9D1azJMGLITTIhD/aHVWzzvG5t4YEbU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=jt6kpKPRRmwHHISYjCyWWBOKNn8=; b=s0hTHWYL38OYle9w8cuB 0wDzRTuI0cnpWsbZWIgwl2m6qeMD/QJ6HwSp9kQak1SUuZTeQSDDZ9rO+FmiL88b 20uWLzt8XAGi+BruNYdvYNfKo2fn6sQ1FDg6ml3U1fennI5Cv53VPEkQ/wVwZZB3 FJdATSYbdQaZNfal/JMRceY= Received: (qmail 49178 invoked by alias); 18 Oct 2019 15:33:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 48899 invoked by uid 89); 18 Oct 2019 15:33:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=277097, x86_64**, x86_64-*-*, 86** X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (85.215.255.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 15:33:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1571412819; s=strato-dkim-0002; d=gjlay.de; h=Date:Message-ID:Subject:From:Cc:To:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=Q6Qgrp+IdLn0v2imWmPv7dOKc81/jU8FFcfjxE/X75o=; b=VpURjk8ClPzTPmPeP8JA0UgwxC8zTTMEfrEwPQU1DlteqADugKlBqmKGBXFQKtztgS wCF5Bj6QQAiEHNTbDquPKvRaHYORhiwFkMkCdub6kGHTW+QLEP90bssYNpvXim4CY1OL BOnbJnoSfAHhZ/QqbXdmj3hdrTfNvThbkRRC1y51xxCaK9DwZYMguHc0+IufVPcrvvwC yzfEuGFGSESjftYJ/4kgObFtlWKp8WmUi2BsZ5senjjCvnk4xYDE8e8os5TVMPrH1s5A 8gzapl2XQYaTOkkT1qD4iNyvgJmIQq3623DNuCi9i4XK0sCUvG8xYuaEIuT3yAvqscyO ffcg== Received: from [192.168.114.100] by smtp.strato.de (RZmta 44.28.1 DYNA|AUTH) with ESMTPSA id t01740v9IFXc87w (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 18 Oct 2019 17:33:38 +0200 (CEST) To: gcc-patches@gcc.gnu.org Cc: Mike Stump From: Georg-Johann Lay Subject: [patch,testsuite] More fixes for small targets. Message-ID: <83bf9631-09db-24a7-b267-1da7a9a9edca@gjlay.de> Date: Fri, 18 Oct 2019 17:33:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 X-IsSubscribed: yes Here is some more cases fixed for small targets for noise reduction. Ok to apply? Johann gcc/testsuite/ Fix some fallout for small targets. PR testsuite/52641 * gcc.dg/torture/pr86034.c: Use 32-bit base type for a bitfield of width > 16 bits. * gcc.dg/torture/pr90972.c [avr]: Add option "-w". * gcc.dg/torture/pr87693.c: Same. * gcc.dg/torture/pr91178.c: Add dg-require-effective-target size32plus. * gcc.dg/torture/pr91178-2.c: Same. * gcc.dg/torture/20181024-1.c * gcc.dg/torture/pr86554-1.c: Use 32-bit integers. * gcc.dg/tree-ssa/pr91091-1.c: Same. Index: gcc.dg/torture/20181024-1.c =================================================================== --- gcc.dg/torture/20181024-1.c (revision 277097) +++ gcc.dg/torture/20181024-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target size32plus } */ /* { dg-additional-options "-march=core-avx2" { target { x86_64-*-* i?86-*-* } } } */ typedef enum { Index: gcc.dg/torture/pr86034.c =================================================================== --- gcc.dg/torture/pr86034.c (revision 277097) +++ gcc.dg/torture/pr86034.c (working copy) @@ -6,7 +6,7 @@ struct A { int b; - int c:24; + __INT32_TYPE__ c:24; int d:10; int e; } f; Index: gcc.dg/torture/pr86554-1.c =================================================================== --- gcc.dg/torture/pr86554-1.c (revision 277097) +++ gcc.dg/torture/pr86554-1.c (working copy) @@ -2,25 +2,25 @@ struct foo { - unsigned x; + __UINT32_TYPE__ x; }; typedef struct foo foo; -static inline int zot(foo *f) +static inline __INT32_TYPE__ zot(foo *f) { int ret; if (f->x > 0x7FFFFFFF) - ret = (int)(f->x - 0x7FFFFFFF); + ret = (__INT32_TYPE__)(f->x - 0x7FFFFFFF); else - ret = (int)f->x - 0x7FFFFFFF; + ret = (__INT32_TYPE__)f->x - 0x7FFFFFFF; return ret; } void __attribute__((noinline,noclone)) bar(foo *f) { - int ret = zot(f); - volatile int x = ret; + __INT32_TYPE__ ret = zot(f); + volatile __INT32_TYPE__ x = ret; if (ret < 1) __builtin_abort (); } Index: gcc.dg/torture/pr87693.c =================================================================== --- gcc.dg/torture/pr87693.c (revision 277097) +++ gcc.dg/torture/pr87693.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target indirect_jumps } */ - +/* { dg-additional-options "-w" { target avr-*-* } } */ + void f (void); void g (void); void h (int a) Index: gcc.dg/torture/pr90972.c =================================================================== --- gcc.dg/torture/pr90972.c (revision 277097) +++ gcc.dg/torture/pr90972.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-additional-options "-mcpu=power8" { target powerpc*-*-* } } */ +/* { dg-additional-options "-w" { target avr-*-* } } */ long f; void a(); Index: gcc.dg/torture/pr91178-2.c =================================================================== --- gcc.dg/torture/pr91178-2.c (revision 277097) +++ gcc.dg/torture/pr91178-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target size32plus } */ int a[100][70304]; int b[100]; Index: gcc.dg/torture/pr91178.c =================================================================== --- gcc.dg/torture/pr91178.c (revision 277097) +++ gcc.dg/torture/pr91178.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target size32plus } */ int a; extern int f[10][91125]; Index: gcc.dg/tree-ssa/pr91091-1.c =================================================================== --- gcc.dg/tree-ssa/pr91091-1.c (revision 277097) +++ gcc.dg/tree-ssa/pr91091-1.c (working copy) @@ -1,8 +1,8 @@ /* { dg-do run } */ /* { dg-options "-O3 -fno-strict-aliasing" } */ -struct s { int x; } __attribute__((packed)); -struct t { int x; }; +struct s { __INT32_TYPE__ x; } __attribute__((packed)); +struct t { __INT32_TYPE__ x; }; void __attribute__((noinline,noipa)) swap(struct s* p, struct t* q)