From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22843 invoked by alias); 29 Jan 2015 20:30:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21836 invoked by uid 89); 29 Jan 2015 20:30:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 29 Jan 2015 20:30:40 +0000 Received: by mail-oi0-f48.google.com with SMTP id v63so30805147oia.7 for ; Thu, 29 Jan 2015 12:30:38 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.134.200 with SMTP id pm8mr1636506oeb.61.1422563438711; Thu, 29 Jan 2015 12:30:38 -0800 (PST) Received: by 10.76.134.102 with HTTP; Thu, 29 Jan 2015 12:30:38 -0800 (PST) In-Reply-To: <20150129145628.GK1746@tucnak.redhat.com> References: <20150129144710.GJ1746@tucnak.redhat.com> <20150129145628.GK1746@tucnak.redhat.com> Date: Thu, 29 Jan 2015 21:42:00 -0000 Message-ID: Subject: Re: [PATCH][PR target/15184] Fix for direct byte access on x86 From: "H.J. Lu" To: Jakub Jelinek Cc: Uros Bizjak , "gcc-patches@gcc.gnu.org" , Jeff Law Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg02663.txt.bz2 On Thu, Jan 29, 2015 at 6:56 AM, Jakub Jelinek wrote: > On Thu, Jan 29, 2015 at 03:54:34PM +0100, Uros Bizjak wrote: >> On Thu, Jan 29, 2015 at 3:47 PM, Jakub Jelinek wrote: >> >> >> > So here's the updated patch which handles all 4 testcases from the PR as well as a couple of my own. >> >> >> >> @@ -0,0 +1,33 @@ >> >> +/* PR 15184 first two tests, plus two addition ones. */ >> >> +/* { dg-do compile } */ >> >> +/* { dg-options "-O2 -m32 -march=pentiumpro" } */ >> >> >> >> No, we don't want -m32 in dg-options. Please write this part as: >> >> >> >> /* { dg-do compile { target ia32 } } */ >> >> /* { dg-options "-O2 -march=pentiumpro" } */ >> > >> > Or >> > /* { dg-do compile } */ >> > /* { dg-options "-O2" } */ >> > /* { dg-additional-options "-march=pentiumpro" { target ia32 } } */ >> > if there is nothing ia32 specific on the testcase, just that you want >> > to use that -march option if you are compiling it as 32-bit. >> >> In this case, you will need to add -mregparm=3 to >> dg-additional-options to avoid "attribute ... ignored" awarning. There >> are some examples in dg.target/i386/ testsuite directory. > > Ah, then better limit that to just ia32 in dg-do. > Yea, please. I have seen: New failures: FAIL: gcc.target/i386/pr15184-1.c (test for excess errors) FAIL: gcc.target/i386/pr15184-2.c (test for excess errors) for -mx32. -- H.J.