From patchwork Tue Sep 11 12:46:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 183104 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]) by ozlabs.org (Postfix) with SMTP id D97E62C0040 for ; Tue, 11 Sep 2012 22:47:08 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1347972429; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=Es7WyZgQiFLkfXw86mZH tjceAaY=; b=BEzIZrGRaeDd7P9JqAVZ4H0hIajhu/wFdgxHlCfDprwZ75pDNvX8 XMcX3AqOloOex6tBasVb9dHO2op8+C2CNC25SwRj7vF2FrZAuo55Mn9gmmGEB3VL AnT0Hjbr6muzw5+1oIoj55HIT2KuJuGAlIigDLbDT+CGLuRnl+sG2wM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:From:To:Subject:Date:Message-ID:MIME-Version:X-MC-Unique:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=yk9MlaVNYYpXv+ddB/qoXhbQtfYSOAz0lHsKZTkWDg+2GoHLGHquRe7Ec1M9kK eDjXYfAdS74h3mLr5Newxzpnr1r4n5pBl0dOBXzBxARb2/Rq4a6UKuj9ew1TraNy BG+Tt8a3m+qTdGleDBU45nHNTbwJdG/Wksb3yS7AbZX+c=; Received: (qmail 24715 invoked by alias); 11 Sep 2012 12:47:02 -0000 Received: (qmail 24672 invoked by uid 22791); 11 Sep 2012 12:47:00 -0000 X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 12:46:47 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 11 Sep 2012 13:46:45 +0100 Received: from e106372vm ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 Sep 2012 13:46:43 +0100 From: "Kyrylo Tkachov" To: Subject: [PATCH, TESTSUITE] Add -fno-short-enums to pr51712 Date: Tue, 11 Sep 2012 13:46:37 +0100 Message-ID: <000001cd901b$7b9d5e40$72d81ac0$@tkachov@arm.com> MIME-Version: 1.0 X-MC-Unique: 112091113464504301 X-IsSubscribed: yes 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 Add -fno-short-enums flag to test c-c++-common/pr51712.c as discussed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51712. This removes the excess warning that caused the test to fail. Tested in arm-none-eabi configuration. The test now passes. Comment? Ok for trunk? Thanks, Kyrill gcc/testsuite 2012-09-11 Kyrylo Tkachov * c-c++-common/pr51712.c: Add -fno-short-enums flag to test. --- a/gcc/testsuite/c-c++-common/pr51712.c +++ b/gcc/testsuite/c-c++-common/pr51712.c @@ -1,6 +1,6 @@ /* PR c/51712 */ /* { dg-do compile } */ -/* { dg-options "-Wtype-limits" } */ +/* { dg-options "-Wtype-limits -fno-short-enums" {target short_enums} } */ enum test_enum { FOO,