From patchwork Fri Sep 13 19:06:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 1162209 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-509000-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="EEisLETO"; 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 46VQ9k33wsz9sNw for ; Sat, 14 Sep 2019 05:07:03 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=drXzepdGeP0eLouZ05rBYCaJaez2hOq94hMbTbyhL7Ey2llQ79 5B270h/E3YF6nP7b+DuUHAWNUKw0gtD8bQ5q1C1O/y23W8aPVgCJhzrIr0px3Wlp f0bnsEcXtzWkfhwH6GLWnUS2cCVW6XHpbRJaZ4sXO9+Yd8+E90s0WHhuo= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=DiknDm3XewloKf2KhOgeuslBTek=; b=EEisLETOFDvb4eAVscIX pKVSuxzAWFHi24GCemZ6ez3/9342siDDXzmnqIajKXMm4TbIWVywL3enXUk55zHu R0c4f4IfMpU+qHZrP1dxVZM8Iy2aiqjqHb7SzYs+fmwWK3hffDIVBzPQUCKiBAnQ Do4qWjOOKNX2+3UsAZpJUWU= Received: (qmail 2230 invoked by alias); 13 Sep 2019 19:06:56 -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 2221 invoked by uid 89); 13 Sep 2019 19:06:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 spammy=UD:gimplefe-28.c, gimplefe-28.c, gimplefe28c, mfloatabi X-HELO: esa4.mentor.iphmx.com Received: from esa4.mentor.iphmx.com (HELO esa4.mentor.iphmx.com) (68.232.137.252) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Sep 2019 19:06:55 +0000 IronPort-SDR: JSf9/qmUWL8TUGWiiGzfzraRwQUk1eygw3aeBtO88a3rNxnbj+VXe/9v4Ur1D4IyGAZpCrYiBQ MoQU5PPo60BUJhVcgJ9S03Xwnz84IOw534FGrnqc6hthhcIfPnpPWx3NhuByRgedqbUvS1Fgde mcr/+7lMEEblwAUsJ+p4XY1sKo89Gn6tpWqKYhnsCkiyFByHZ86OipQUzH+ekKjbc/ypW9oyXH cdrFknedsnwHfKpqGhME4SiSJjU+p/DjGJgvTTQRCTChObQKu3xQyQN0yJQRygWWe1z2jG1Pdi Low= Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 13 Sep 2019 11:06:54 -0800 IronPort-SDR: fwVt0k8NXMjnkApeBdtMn1pqxsFCgSAeylQCM2+YO05KN64fMQv1wEMu5a2LlzXnCuKykp/YOX qZDnl17Nx639u/b6gS2cQi2fm/umA9XIfxgBrIRL5pfO8VGgCBHE1elGj4oW7fSRR4sgV0wMjL t8u6Qr4gX4jua6KhAjEO49OoInkxeO+q3JS/oC6O0EsQaXmZftp31fsCQ4neqJb57/BHVhTy4C OVcaXr1VrvdHjPkxP2JnyD1cSrU7Dynk78uMoz4RxNPYLWh8u9FfAyTmFGNX64PsRmRnvZMih/ J7A= To: "gcc-patches@gcc.gnu.org" From: Sandra Loosemore Subject: [patch, testsuite, arm] Fix ICE in gcc.dg/gimplefe-28.c Message-ID: <5dcb255c-4ce1-9341-cace-7759887ae382@codesourcery.com> Date: Fri, 13 Sep 2019 13:06:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 For the default multilib on arm-none-eabi, gcc.dg/gimplefe-28 has been getting an ICE because, while the target-supports infrastructure is probing to see if it can add the command-line options to enable the sqrt insn ("-mfpu=vfp -mfloat-abi=softfp"), it is not actually adding those options when building this testcase. :-S The hook to do this is already there; it just needs a case for arm. OK to commit? -Sandra Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 275699) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -6670,6 +6670,9 @@ proc add_options_for_sqrt_insn { flags } if { [istarget amdgcn*-*-*] } { return "$flags -ffast-math" } + if { [istarget arm*-*-*] } { + return "$flags -mfpu=vfp -mfloat-abi=softfp" + } return $flags }