From patchwork Mon Jul 22 10:59:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 94311 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 072FA3861807 for ; Mon, 22 Jul 2024 11:00:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id AED62385843B for ; Mon, 22 Jul 2024 10:59:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AED62385843B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AED62385843B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721646000; cv=none; b=GKiLe8Hi0s8oR4ZE7dNjERZsnyi4wpxSRT7p5fmbMyPsDMojuwac6c1C9+8ZlgkvWIuNv4GAIrwf0LD7S4qp79h2nW4CToJoQzWqhznrWopI8R2uMH1wFlCTdY3hpavF76REqJB3o+ZaAFRtdLjkYjK1Q/D1dcec8eSTvlWgpPY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721646000; c=relaxed/simple; bh=eVnERucMR5C0dzTEFlwtaysgdEkdlOVudrXNkH70wCM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wD9jh76ihO6mLh0aTmyLl0xxbLKHvkSse3R+qlpPf7BcOcJMsLVWCSw/bEC6IusPqKrFcuhpLIKXZUEhPp6yGRnHTC8YBToQFZkcLBDIHubi8uHqQtj3J9sYhUMiICNYCnsK+6gFONM/5s1x/5pXp+RRk+L8mmw5N98TU3ve28E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4257d5fc9b7so35081135e9.2 for ; Mon, 22 Jul 2024 03:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1721645996; x=1722250796; darn=gcc.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=yEwVR/XVXjhwgiFOn0OkbR+rnHdrhAg2um5rCXnubSQ=; b=GQasJ6aKpXlENdhS7lcXihGNIdBRU3hgSUgQHdGos+GbAit8vzEWYef5ShTMA14l79 YCqOhfb0pUvqW6E3TeJvzNbaj5+hoK7Voc41XEi/pnDXjj8U2GL1XKwd2xOEPCa9yy2E 1v2GDek6eUsm+abwrp3N/RtngVmpowJwSiODNNq4OyRZ0N6PVeDhZsyaZIelUbvMF0XU SlC0v2LDPf/BvqOMCUCPn+MKLriD8u8NQ37KjNzh130j3MRXLegrx5iIxAZp1JxZAjix Z7kKD2+jkz/4ksPIBNjFgE0cV++VmzUuGWiYILCC6mdKckdynhyNPUQrAUCRy0qYizqW U8Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721645996; x=1722250796; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yEwVR/XVXjhwgiFOn0OkbR+rnHdrhAg2um5rCXnubSQ=; b=oi2KbZKw8jPrjmwtZSMDcMpOhUuT9LgsdLzyy8tXT07yIoproatyt8OxY2hshYnIHv t8AaDSYXoGzhYV5PP1HpjzoKelJ/DDPV1uIxTDBHR8csyIqWQHda5sb6mMa8thFbUlWz bvO+Atmwr3cpwoAwemYlBUaQw+yU3vvclU8hgDBMeU0l6tUeblidmjNgjmvipynDXMVV 4nKHP4/UzmPhNxleh3SS2jnRDouUtEToKaNlusb44eUE2QC0L1Dmb+1E6w2Bbl5b7eYi rMOftYXjMk4zUdYy0udDf45R3FK4bjaHrf+DBk6mBtU6UTSFsCn4PMIhqnGVuqONB5oi o+TA== X-Forwarded-Encrypted: i=1; AJvYcCU0BkpJ71GzjlDX+ec6RPbheyd+Zgp2fgwxQJq59cWRV3GnhYZNRA0jo0mn7IqFdeLzWH5XR262LxcYgE0IHl7G7lHiodG7DQ== X-Gm-Message-State: AOJu0YzB3RYIecq9+nZwM+tsUS5HKlAqpfp5EyNUhzXPw13TqyenXlEz xbhIeeDbtTevztqFFTav7NOvuPaUZlzdrzF7eIkzEL73xSxQPtBFDvFsX0ErNBv0ERznNavEDUv H X-Google-Smtp-Source: AGHT+IHGxT9TFpbJhdFU3RszOwLNee2XPsx7tnVk8u6I6DzpBpGCMqnWWIYucpDYSPx5SQeU0PobZQ== X-Received: by 2002:a05:600c:3550:b0:426:615f:f715 with SMTP id 5b1f17b1804b1-427dc52920fmr54909115e9.23.1721645996293; Mon, 22 Jul 2024 03:59:56 -0700 (PDT) Received: from euler.schwinge.ddns.net (p200300c8b733b9005e8fc6f38b6af531.dip0.t-ipconnect.de. [2003:c8:b733:b900:5e8f:c6f3:8b6a:f531]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a53ccfsm150265925e9.11.2024.07.22.03.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 03:59:55 -0700 (PDT) From: Thomas Schwinge To: Richard Biener , gcc-patches@gcc.gnu.org Subject: [PATCH] nvptx: Specify '-mno-alias' for 'gcc.dg/pr60797.c' [PR60797, PR104957] (was: [PATCH] Fix PR60797) In-Reply-To: References: User-Agent: Notmuch/0.30+8~g47a4bad (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Date: Mon, 22 Jul 2024 12:59:52 +0200 Message-ID: <87wmldvgif.fsf@euler.schwinge.ddns.net> MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 Hi! On 2014-04-11T12:37:42+0200, Richard Biener wrote: > This fixes the endless error reporting for unhandled aliases [...] > *** gcc/testsuite/gcc.dg/pr60797.c (revision 0) > --- gcc/testsuite/gcc.dg/pr60797.c (working copy) > *************** > *** 0 **** > --- 1,8 ---- > + /* { dg-do compile } */ > + /* { dg-skip-if "" { alias } } */ > + > + extern int foo __attribute__((alias("bar"))); /* { dg-error "supported" } */ > + int main() > + { > + return 0; > + } If there's support for symbol aliases, have to 'dg-skip-if' -- unless there's a way to disable this support, which there is for GCC/nvptx: '-mno-alias'. OK to push the attached "nvptx: Specify '-mno-alias' for 'gcc.dg/pr60797.c' [PR60797, PR104957]"? Grüße Thomas From 72365494b47ad43a78d190ab87eae79fe57eb006 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 21 Jul 2024 22:23:40 +0200 Subject: [PATCH] nvptx: Specify '-mno-alias' for 'gcc.dg/pr60797.c' [PR60797, PR104957] 2014 Subversion r209299 (Git commit 8330537b5b58bd0532a0a49f9cbd59bf526a7847) "Fix PR60797" added this test case, which we now amend so that it's able to test its thing also in '--target=nvptx-none' configurations with symbol alias support enabled (..., and test nvptx '-mno-alias'). PR middle-end/60797 PR target/104957 gcc/testsuite/ * gcc.dg/pr60797.c: For nvptx, specify '-mno-alias'. --- gcc/testsuite/gcc.dg/pr60797.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/pr60797.c b/gcc/testsuite/gcc.dg/pr60797.c index 45090bae502..0485b2de172 100644 --- a/gcc/testsuite/gcc.dg/pr60797.c +++ b/gcc/testsuite/gcc.dg/pr60797.c @@ -1,5 +1,7 @@ -/* { dg-do compile } */ -/* { dg-skip-if "" { alias } } */ +/* If there's support for symbol aliases, have to 'dg-skip-if' -- unless + there's a way to disable this support. + { dg-additional-options -mno-alias { target nvptx-*-* } } + { dg-skip-if "" { { ! nvptx-*-* } && alias } } */ extern int foo __attribute__((alias("bar"))); /* { dg-error "supported" } */ int main() -- 2.34.1