Message ID | 20241025091107.485741-31-poulhies@adacore.com |
---|---|
State | Committed |
Commit | 0eb688077f50d24e2fe21e7c9385b74b81e0a925 |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> 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 A10623858C48 for <patchwork@sourceware.org>; Fri, 25 Oct 2024 09:25:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 7EB983858430 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 09:11:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7EB983858430 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7EB983858430 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847538; cv=none; b=YTPCmfmfFDYDvLwuZxAYFC2dxq13lnm079d/nM889tnV4EoNucULDxCuu92/Hx7l4hvvyhbl7k3wmwFpBsLmX5+29Qo5Pxt0G/xu8FhApCYTAFIbAQE6Ct4+5vZ852qSwnzr0zW7HxBtk2k3hg45cMP415AUBSPmmnRwT576T9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847538; c=relaxed/simple; bh=th9Lzgmj630mrf/3IjjEeiGw0vxQeY6lj6QxMGS5NrM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wRMyjSiyMyD24tmkyX6XDpYQk/F80pAXfn0UQHOlrA0UBibtYVBnO146cLqQQdxloPwVQXSWhfmpHmy2bc9RV7sy28Ruz8zemGPoawNejb+XKRA9FhvOT1mo53U9LWdfd5bR/h1tK0+Kusf+PU3geVLYwxlg6whOdq4AUmiEOPk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4315abed18aso18014715e9.2 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 02:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1729847515; x=1730452315; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Cfj7vIk/1TIbsAWptyfnk98X7YRTMkTTLJ2YvMopynM=; b=kGeB7684occ9DxNPj8BWzeREkbWOZW4/qgMpsXYc9CPjLuxnkNZ/8hI9bHvZvG5Omy +8nTGVxx/R5o63BM1lFEIFuhZm6bmAqTBjc86xK4ZuVV7orHkAYiVSfSeCH+RCImVT5g 26URouVeXmmOHgAZQSWXDo+n6C1GBzWloJLh1q3ScOznJaUamMBKK/Xfz9kiEmUxPeEx AfDX1APLiFNlz9Jk2AHj5RlUlctgx5P0zEFRAqHu59/KcCRLCcyhRFoRbJMKauiB9MCa 69iL6dA6epa5ahvQLJMmKsTAxdrKxAt88dYYnnvxYYh4lG0escqU4gpjONbDAFAdVyov IMsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847515; x=1730452315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cfj7vIk/1TIbsAWptyfnk98X7YRTMkTTLJ2YvMopynM=; b=tjK1lqBoAZexJe8M0P2DchCdZTc0vP95boFhCEL/5HLYddTfk3bvxMfuahXOIn3KlD ag5hoD3xaGgzb9xS8zOSQMQBM6hHvIxNT+HBZDp1SQXBUqVLbValpmfJhtsH7JC5uwlO o5uZQHWJTx/Iq0lCgtq4/KgjLy9ClG8vMJZmr9o4m1/UxG3XVtJa0yE9fdnuV1Dflhoy w//kRcesVASwZ08xVaAmTSXHMNSsE9ruISYeuPqYdlg+uWWWKKE4zQj4M16BLYiHbd+9 1rSftAVpVdf6R47zNlTn9Pcd90fgaqNWgairpk+AvdDS8Iz2tNIeO0aZ4UOhJZmqmOUD gVdg== X-Gm-Message-State: AOJu0Yz0Znk7BKG6mI9Y3jfNtBg6RoahkSUj5oGO+lR5bYjdP0bzoilc gf6o0p6tigEjguLsmbM7URr16nmyhRvN/n9HFqYrvJU2gVcudW64zBeYksCfo59VJP+E4wy84TA = X-Google-Smtp-Source: AGHT+IH2DPzfgcOgJBwZZDxE2cHEw6WwsVtCiWRN2i227B7Jj1JfMmzoHzMRhhs8+5SCmeBlIJL0Ag== X-Received: by 2002:a05:6000:10c:b0:37d:4894:6878 with SMTP id ffacd0b85a97d-37efceee7e0mr5630882f8f.10.1729847515227; Fri, 25 Oct 2024 02:11:55 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:2626:b78c:6271:6c01]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b47aa8sm1013079f8f.51.2024.10.25.02.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 02:11:54 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Tom Tromey <tromey@adacore.com> Subject: [COMMITTED 31/35] ada: Mark XUB types as nameless Date: Fri, 25 Oct 2024 11:11:00 +0200 Message-ID: <20241025091107.485741-31-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241025091107.485741-1-poulhies@adacore.com> References: <20241025091107.485741-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
[COMMITTED,01/35] ada: Pass parameters of full access unconstrained array types by copy in calls
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Marc Poulhiès
Oct. 25, 2024, 9:11 a.m. UTC
From: Tom Tromey <tromey@adacore.com>
gdb does not need the name of XUB types. This patch changes the
compiler to omit these names from the DWARF when minimal encodings are
in use.
gcc/ada/ChangeLog:
* gcc-interface/decl.cc (gnat_to_gnu_entity): Set TYPE_NAMELESS on
XUB types.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/gcc-interface/decl.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc index 14b39b336bd..256541df411 100644 --- a/gcc/ada/gcc-interface/decl.cc +++ b/gcc/ada/gcc-interface/decl.cc @@ -2393,6 +2393,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) /* Install all the fields into the template. */ TYPE_NAME (gnu_template_type) = create_concat_name (gnat_entity, "XUB"); + TYPE_NAMELESS (gnu_template_type) + = gnat_encodings != DWARF_GNAT_ENCODINGS_ALL; gnu_template_fields = NULL_TREE; for (index = 0; index < ndim; index++) gnu_template_fields