From patchwork Fri Feb 21 15:27:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1242174 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-519904-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=AaLzQunM; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qIkoua3T; 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 48PFhF00Vmz9sPk for ; Sat, 22 Feb 2020 02:27:38 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=ifN240jtT/MTnunhPQYNEmgD3K3ksZB8ez9hWpeZ4oI67X QxHLgHBOMCqaoFeVaqit8twraXS4K5B7DI/gtEFpg9WYaj0PnUEoT+/UvXDditzF 2Y7SpdShzLIpgxspjU0cdsHXyME2JOwGbi08UeqhiCcn4zmZekxxSXADYPUWI= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=soxdl4eLn5veIN28XXUReeQ4Bus=; b=AaLzQunMdefwRWzEmnBs mkW2gemBXODI3Subl/FuHr9hO+t4FWi2wpEYbmLfIcb5odAsMkjhrDz1p5B1yxH1 1KP5G7CVN38WSl4UGcpDRy2sjzenw+tLMbYJbrLPYi+oqOalF5NefkfnfS2I7EGP /y8nKLpF+w5Hv+tCSET3UEI= Received: (qmail 20232 invoked by alias); 21 Feb 2020 15:27:31 -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 19258 invoked by uid 89); 21 Feb 2020 15:27:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=pie, susceptible X-HELO: mail-io1-f42.google.com Received: from mail-io1-f42.google.com (HELO mail-io1-f42.google.com) (209.85.166.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Feb 2020 15:27:27 +0000 Received: by mail-io1-f42.google.com with SMTP id k24so2767929ioc.4 for ; Fri, 21 Feb 2020 07:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cftU6geoqKU+zlJ7NwU5wKUHsk3tFVk4HIuXMfEz/6w=; b=qIkoua3TQehd7Dd7b2Tad87/wV46lA0lWMTueBC/0hU4F+JCkkP2IO2CSODOOCgES7 3hjfVpOsApXjEbq36RLUda/OrvR+De63n2wl96n3LQCElghH7bWukLcUwr1J5FJfSX5+ +xlTLUjduMwl2ViLA39rp+FRsuLMFk597xdQbwm6GkN6pphbjRbBMBL1Ar7mp0T2zFI3 4Z2Bd7nz6UnQtNnBXofzicFCV3Ufhv23R0wBDJnLijvSXIud1HGw7Rld3I652m4ev75z uWpppuW4PPRHhx66o2C12f1xiFyjaADF3KSrMkONULeuJ2T8PkZLtXnuZ7BNlgYVrong rlXw== MIME-Version: 1.0 From: Uros Bizjak Date: Fri, 21 Feb 2020 16:27:14 +0100 Message-ID: Subject: [committed] testsuite: Add -fcommon to gcc.target/i386/pr69052.c To: "gcc-patches@gcc.gnu.org" This testcase is susceptible to memory location details and start to fail with default to -fno-common. Use -fcommon to set expected testing conditions. Tested on x86_64-linux-gnu {,-m32}. 2020-02-21 Uroš Bizjak * gcc.target/i386/pr69052.c: Require target ia32. (dg-options): Add -fcommon and remove -pie. Uros. diff --git a/gcc/testsuite/gcc.target/i386/pr69052.c b/gcc/testsuite/gcc.target/i386/pr69052.c index 6f491e9ab539..19bc3c8a77dd 100644 --- a/gcc/testsuite/gcc.target/i386/pr69052.c +++ b/gcc/testsuite/gcc.target/i386/pr69052.c @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile { target ia32 } } */ /* { dg-require-effective-target pie } */ -/* { dg-options "-O2 -fPIE -pie" } */ +/* { dg-options "-O2 -fPIE -fcommon" } */ int look_nbits[256], loop_sym[256]; const int ind[] = { @@ -51,4 +51,4 @@ void foo (int *l1, int *l2, int *v, int *v1, int *m1, int i) } } -/* { dg-final { scan-assembler-not "leal\[ \t\]ind@GOTOFF\\(%\[^,\]*\\), %" { target ia32 } } } */ +/* { dg-final { scan-assembler-not "leal\[ \t\]ind@GOTOFF\\(%\[^,\]*\\), %" } } */