From patchwork Mon Jul 27 16:25:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 500491 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ACA651402E8 for ; Tue, 28 Jul 2015 02:25:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=m23gS1wn; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=Ij/MKMmCWCOnpfKmZR+6XBCyZWWJ+ZTYlY/oY8bj1eE ZAvsNJGay16MCnosmMZsvgux0Kn6W4X2AkAjFAXCMOlvIDtk4t1k/LGPpaTL7SeA T/C5iWhaSpFA2lEIhy/G/YGdLGF9lAFGvMQuyWoGgUHXDqVK75jDNl/K4Og7u/T0 = 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=n6e/5fnXSdll1bpraNtSrCSSwzc=; b=m23gS1wnvuKsJAWa7 zZnHuqgYXVu0s5azLTs+JxlJ8cRXTIsBeUJ2twFg3cMehsjfyYIhpkIxy6Do1ZDz 6MF7azsC6yQSSYrmHCXEOHM94aD9agDwJSrJk9iysDuzfG43yj9/9IFjSxUzoUaA CLx2dr550OnJsYQcA5tLucKyN8= Received: (qmail 45443 invoked by alias); 27 Jul 2015 16:25:19 -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 45412 invoked by uid 89); 27 Jul 2015 16:25:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga14.intel.com Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Jul 2015 16:25:15 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 27 Jul 2015 09:25:13 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.52]) by orsmga001.jf.intel.com with ESMTP; 27 Jul 2015 09:25:15 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id 57013C3811; Mon, 27 Jul 2015 09:25:13 -0700 (PDT) Date: Mon, 27 Jul 2015 09:25:13 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [committed, PATCH]: Add more tests for PR target/66232 Message-ID: <20150727162513.GA13155@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Index: ChangeLog =================================================================== --- ChangeLog (revision 226252) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2015-07-27 H.J. Lu + + * gcc.target/i386/pr66232-6.c: New tests. + * gcc.target/i386/pr66232-7.c: Likewise. + * gcc.target/i386/pr66232-8.c: Likewise. + * gcc.target/i386/pr66232-9.c: Likewise. + 2015-07-27 Marek Polacek PR c++/66555 Index: gcc.target/i386/pr66232-6.c =================================================================== --- gcc.target/i386/pr66232-6.c (revision 0) +++ gcc.target/i386/pr66232-6.c (working copy) @@ -0,0 +1,13 @@ +/* { dg-do compile { target *-*-linux* } } */ +/* { dg-options "-O2 -fno-pic -fno-plt" } */ + +extern void bar (void) __attribute__((visibility("hidden"))); + +void +foo (void) +{ + bar (); +} + +/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOT" { target ia32 } } } */ Index: gcc.target/i386/pr66232-7.c =================================================================== --- gcc.target/i386/pr66232-7.c (revision 0) +++ gcc.target/i386/pr66232-7.c (working copy) @@ -0,0 +1,14 @@ +/* { dg-do compile { target *-*-linux* } } */ +/* { dg-options "-O2 -fno-pic -fno-plt" } */ + +extern void bar (void) __attribute__((visibility("hidden"))); + +int +foo (void) +{ + bar (); + return 0; +} + +/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOT" { target ia32 } } } */ Index: gcc.target/i386/pr66232-8.c =================================================================== --- gcc.target/i386/pr66232-8.c (revision 0) +++ gcc.target/i386/pr66232-8.c (working copy) @@ -0,0 +1,13 @@ +/* { dg-do compile { target *-*-linux* } } */ +/* { dg-options "-O2 -fno-pic -fno-plt" } */ + +extern int bar (void) __attribute__((visibility("hidden"))); + +int +foo (void) +{ + return bar (); +} + +/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOT" { target ia32 } } } */ Index: gcc.target/i386/pr66232-9.c =================================================================== --- gcc.target/i386/pr66232-9.c (revision 0) +++ gcc.target/i386/pr66232-9.c (working copy) @@ -0,0 +1,13 @@ +/* { dg-do compile { target *-*-linux* } } */ +/* { dg-options "-O2 -fno-pic -fno-plt" } */ + +extern int bar (void) __attribute__((visibility("hidden"))); + +int +foo (void) +{ + return bar () + 1; +} + +/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */ +/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOT" { target ia32 } } } */