From patchwork Sun Dec 3 05:55:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 81230 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A740A3858425 for ; Sun, 3 Dec 2023 05:56:18 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 6520C3858C53 for ; Sun, 3 Dec 2023 05:56:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6520C3858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6520C3858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1029 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701582963; cv=none; b=eqwOY8AObR0zchShSLuslFDrITulHM3JmO69v1it96zgbABR65SF/hDKnOYs6/xdWEQhbCqrjhHXVjtoxEaejrN5+sCwQxfEsgf72Ww/JDQscx2KP1lABIQYe6b/kV/vevMjfBGHXwsz2rg/+wDmxifU8ZP/er2HtRBxKNHVuF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701582963; c=relaxed/simple; bh=jjgRvySwlnVs60lgUyj5IxELgmNjh1TsQi+TLwfvucg=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=Ia8n9TB4dcsCT5aiRPfEZxH6ldGYpWietjLVLtSqBWmzhhXcLgPs6KGSzUuG0lVQjVH6pXmol/ADSLHc19JsQsYLMcRtcAeYOPOexIEF2cHYniYk+rQhh62VMpfhj+ETKGltrHWT0PVXGLAhd4KV4fZa9/CtTpz1rkX+AZW1Xtc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-28659b38bc7so2061687a91.0 for ; Sat, 02 Dec 2023 21:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701582960; x=1702187760; darn=gcc.gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=8sZX9yY1ad7vHk0JmYo3/JnTRiqSu/oGfhn4/dWotqY=; b=Em0FPw2uEtk8J7+JSHQ8ti87x6ZmrnG7CHcSIhWyXWgsBVahnS0PlJek0GI+lmlw0I QgxYltejUWzDw5tkpUiqkZ33RUOdM2/mlNxx17YDb0FkxGLd9PffUi7zUhjkzTu2zykT zcW7eQjrT2c977yWzFgJvPCKdzuAX3NRignp1Ygae9l9QtG9MmmUTFyE8hTgUBkkDUuq ea3xQY6Gj3huAVituwXEf3hF0+EoB4R78JB0XClXZeU3eJIxhH/wL85BEtCCmlM7D38X t7MpPYyzEG/vzcy9AuF59/ZtbZthbW4vUQn81J0Lz7TNVOuSd51TVqOBMbiFZk2Pwa6S hSzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701582960; x=1702187760; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8sZX9yY1ad7vHk0JmYo3/JnTRiqSu/oGfhn4/dWotqY=; b=VBvgJXGYWlluabuk+S0rW9S+g/M2GixMIQMALGMFYdspljETXf/sB0BeZhIWw0XO1g ddJSocfL7xp6Ulo8aDclhN2IWvJJJTflGQRRiNXLmKOh6RSmDE8tyPPfsa8AjiHTgu8d r8cQgq5wuoXgiH5qU/pFmFhvZjg7NHdS0zbHljiW6Kvo1yiBCvHu5ojzpg/q+iDT1znw yzmK3fPLZPF8ErU61xCJq3jNnBbTKogLtDwHPsRUyFLBaLT0Zpd99skEkMJYMoi2PYTW PXizMTBIvQiwboR7ZyMiy7VcOEm3W3DYQwc6VHtiApK6TW7giJpEFVXDo+NWUQnWG3Z2 BrKg== X-Gm-Message-State: AOJu0YzSPWNw1HKcU7DRSM7k7LqItQfeoWnnnnK8RArWrV9BG+56QEo9 wt8lBOcBP3l/eN+YShocbKd2sOACnF7WWA== X-Google-Smtp-Source: AGHT+IH+EYzG09USHyaI/CCGYFGyihu+hK6x+bKEF6Dx1Bs4JQj0FtuvoIA4zb74+AQqE8uBuYt+Yg== X-Received: by 2002:a05:6a20:8412:b0:18b:d2f5:122f with SMTP id c18-20020a056a20841200b0018bd2f5122fmr3483566pzd.26.1701582960482; Sat, 02 Dec 2023 21:56:00 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id nu3-20020a17090b1b0300b002804c91633dsm5697444pjb.14.2023.12.02.21.55.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 21:55:59 -0800 (PST) Message-ID: <3dbc2b93-78fb-47b3-95a6-1efc76d78077@gmail.com> Date: Sat, 2 Dec 2023 22:55:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "gcc-patches@gcc.gnu.org" From: Jeff Law Subject: [committed] Fix gnu23-builtins-no-dfp X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Last patch for the night. There's still a bit of minor fallout left in GCC (loongarch testsuite for example). But things are looking good on the targets I test. The plan is to start submitting the various newlib/libgloss fixes tomorrow. Anyway, this test was the one I was most concerned about. Basically we're testing that on a !dfp target that the builtins are not available. It expects a warning, but gets an error by default now. I just changed the test to use -fpermissive, so that the test behaves as it did previously. Pushed to the trunk. Jeff commit f37744662cbc74efcceb790b99dcd6521c51a578 Author: Jeff Law Date: Sat Dec 2 22:54:46 2023 -0700 [committed] Fix gnu23-builtins-no-dfp Last patch for the night. There's still a bit of minor fallout left in GCC (loongarch testsuite for example). But things are looking good on the targets I test. The plan is to start submitting the various newlib/libgloss fixes tomorrow. Anyway, this test was the one I was most concerned about. Basically we're testing that on a !dfp target that the builtins are not available. It expects a warning, but gets an error by default now. I just changed the test to use -fpermissive, so that the test behaves as it did previously. Pushed to the trunk. gcc/testsuite * gcc.dg/gnu23-builtins-no-dfp-1.c: Add -fpermissive. diff --git a/gcc/testsuite/gcc.dg/gnu23-builtins-no-dfp-1.c b/gcc/testsuite/gcc.dg/gnu23-builtins-no-dfp-1.c index 9fa25f0dd13..8fe4efbdd98 100644 --- a/gcc/testsuite/gcc.dg/gnu23-builtins-no-dfp-1.c +++ b/gcc/testsuite/gcc.dg/gnu23-builtins-no-dfp-1.c @@ -1,7 +1,7 @@ /* Test C23 built-in functions: test DFP built-in functions are not available when no DFP support. Bug 91985. */ /* { dg-do compile { target { ! dfp } } } */ -/* { dg-options "-std=gnu23" } */ +/* { dg-options "-std=gnu23 -fpermissive" } */ int fabsd32 (void); int fabsd64 (void);