From patchwork Mon Oct 3 12:02:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumar Selvaraj X-Patchwork-Id: 677702 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 3sngh83bXCz9rxv for ; Mon, 3 Oct 2016 23:04:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=lqcdT4x0; 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:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=HviOCX9TiYbWmlx4zrVEDg4yyyWd4+zJotbxk2En1E8AyvYXBnIn6 Ztv70PPTWOgK741detTDCrcEzsD0EGKnCY4e8nCbtOrRijbu9kbhHxQ5YuevTnev TUgyTSh2f7XjSjlgJQlpvf3LEjcTh2E3imKur0ZW7gXu1FumG6WC5M= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=XQxhotNSec3Z/WBN9rEqXqkUiTA=; b=lqcdT4x0a0aaCaJTAxtK 7dVQ6nPbdVAwg9s1uo7C9CoOn82H2Fnkf22ew6QpUqPWaOeGa8aAcl+yAMAUjeoh 6rlaR7yj46/ABhu1Y9aMFcSy4g2UAKsy45gW3+M1emdAGp/FUqsZkucMcghrQNeA iF+Ks0I7AOXyY1FFt1AhjG8= Received: (qmail 891 invoked by alias); 3 Oct 2016 12:04:15 -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 877 invoked by uid 89); 3 Oct 2016 12:04:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=BAYES_50, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=fat, H*M:atmel, H*RU:14.3.235.1, H*r:ip*14.3.235.1 X-HELO: eusmtp01.atmel.com Received: from eusmtp01.atmel.com (HELO eusmtp01.atmel.com) (212.144.249.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Oct 2016 12:04:03 +0000 Received: from HNOCHT02.corp.atmel.com (10.145.133.41) by eusmtp01.atmel.com (10.145.145.31) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 3 Oct 2016 14:03:59 +0200 Received: from jaguar.atmel.com (10.145.133.18) by HNOCHT02.corp.atmel.com (10.145.133.41) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 3 Oct 2016 14:03:59 +0200 User-agent: mu4e 0.9.17; emacs 24.5.1 From: Senthil Kumar Selvaraj To: "gcc-patches@gcc.gnu.org" Subject: [Patch, testsuite] Add ffat-lto-objects to gcc.target/avr/torture/builtins_error.c Date: Mon, 3 Oct 2016 17:32:53 +0530 Message-ID: <87k2dp8wsy.fsf@atmel.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi, This patch adds -ffat-lto-objects option to an avr target testcase. The compiler defaults to thin LTO objects if built with linker plugin support, and the error expected by the testcase appears only at link time, if at all. Forcing fat LTO object file creation generates the error consistently at compile, as expected. Committed to trunk. Regards Senthil gcc/testsuite/ChangeLog: 2016-10-03 Senthil Kumar Selvaraj * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects option. Index: gcc/testsuite/gcc.target/avr/torture/builtins-error.c =================================================================== --- gcc/testsuite/gcc.target/avr/torture/builtins-error.c (revision 240709) +++ gcc/testsuite/gcc.target/avr/torture/builtins-error.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-options "-ffat-lto-objects" } */ char insert (long a) {