Message ID | 20241025091107.485741-33-poulhies@adacore.com |
---|---|
State | Committed |
Commit | 88715b94809895343caa405accb8f3c42c791853 |
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 109BD3858430 for <patchwork@sourceware.org>; Fri, 25 Oct 2024 09:21:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 2BDF3385772C for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 09:11:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BDF3385772C 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 2BDF3385772C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847545; cv=none; b=feyVLO2aGRDhtCeG+uPSa7Ph8xzWiW7TqEFPEt3bRB82r6B00EgTvRp8o5mslta3IttriA7iu2CwFT0MZRdIpiQ2qPVBPwNniVKlUJavnA9/KEMpxfx/6im9cvrK5DLkzlM6u4Du/RpRILNFxIYFuVNBKyrENd19MOZG9FDCm/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847545; c=relaxed/simple; bh=cNh3EaQmjOluXXCcxBB31gpA39QJ90YbRurDiM6Qcus=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mcmhBRi7+eucc2eUdKYsjE2ZdPcqfK3otQ28ISdy6fMP8hBHS7GKGjX4b+y2Fb+BpWd+WyOtVbSRnUPrPIZ/jOqqp2tFoBGHAe2Rd6+YKHG/AgfqxYv17bDYMUiGTIHO4WpkU6XJlxG+Eehs5knTa2XWsN2PTdUAPN9xCGmtQh4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539f72c8fc1so2274312e87.1 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 02:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1729847517; x=1730452317; 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=ZDV0vRiwc1lZb/bLzwVOSizyBZFoZXZCA/5PYH8xVbw=; b=b6YDD+S+8etS49evul447trdUruaYH9MC5lajscN6/Bwt5Fih3q2dd7RhQnIqela3K y+0412yCKwLRnwctJ9E9KGQilKi2Y/l4vdMReDsEuGCTxWoVWV+pq2AusrtF7u+7lTgq +fG1G4pTZfPQr5EwcCUQYSuOVz5uLoXB5pUUwZVooDd06rp2J/JMuaiBNqZffS/FIwIE 2ll+LB8D9ys+Ppp6wzNgggvtRTqifv94RWg9lMuId3h7qSDTcDFGqLeB4BcZNgrgslNe O67+bFt7gJoOgspVyAYhgzKGFK//koYttUt7prAdcByvbBsBxL+MnWduVCcBeOmitfy3 scLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847517; x=1730452317; 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=ZDV0vRiwc1lZb/bLzwVOSizyBZFoZXZCA/5PYH8xVbw=; b=FGQG7CkYSLc80UnMMMVPOwi2uc3lZTpErB0Yz6lLdySeUmbWMjhway5RDNlCBI3YOI 7oylGJ1M9CjlC5O5AS5Juj77TebYMS5PjxjxsKQ3OJUH67E8M2XHNBCPr74LXBvHQheO rnbIZlCJ9KXnLycxNgaOJSocVUm8iGcvrn7qLuoUtmDf1UtSQmGkOzk/ybHnw+TFlSym 9ueI5aNZ2u9cV5otkqh+Imhq5wTojyULfPIl5cDulvN6vFVCbcs3jnmBGSMeb/cc/Z+U 0ipvNgrUM+XMZFChikq77r2Qupq8OXR0fyVVIOkDRLbw3SBVE8Cix6LqVUgUTMo0Ot6E EDYg== X-Gm-Message-State: AOJu0Yw4zXdrkmA7+zSwXkr1mrXQFxmePdpHSiYXOv2EdHT5oDXInXmK pDXhMbRy/za9HtVw1DWcBQ10XWv/+U16LJ219+2DIMYyIJ4TS3FTKFEqCngbSdD6GVDMN8YFJYQ = X-Google-Smtp-Source: AGHT+IGf62w0/B8ePO2ngIs0QDy5sFehU2ytfwSgsOG3WgWmpMt8PN3tdz4ibjt1P/6f49pxem4RHw== X-Received: by 2002:a05:6512:138a:b0:539:8f4d:a7dd with SMTP id 2adb3069b0e04-53b1a36c4fdmr5308546e87.42.1729847517290; Fri, 25 Oct 2024 02:11:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 02:11:56 -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 33/35] ada: Mark some type decls as nameless Date: Fri, 25 Oct 2024 11:11:02 +0200 Message-ID: <20241025091107.485741-33-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.7 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>
The types created by record_builtin_type and create_type_stub_decl can
be marked as nameless when using minimal encodings. In this
situation, gdb does not need these type names.
gcc/ada/ChangeLog:
* gcc-interface/utils.cc (record_builtin_type, create_type_stub_decl):
Set DECL_NAMELESS on type decls.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/gcc-interface/utils.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/ada/gcc-interface/utils.cc b/gcc/ada/gcc-interface/utils.cc index 9e2715a8d81..a06366bf40e 100644 --- a/gcc/ada/gcc-interface/utils.cc +++ b/gcc/ada/gcc-interface/utils.cc @@ -2019,6 +2019,8 @@ record_builtin_type (const char *name, tree type, bool artificial_p) tree type_decl = build_decl (input_location, TYPE_DECL, get_identifier (name), type); DECL_ARTIFICIAL (type_decl) = artificial_p; + DECL_NAMELESS (type_decl) = (artificial_p + && gnat_encodings != DWARF_GNAT_ENCODINGS_ALL); TYPE_ARTIFICIAL (type) = artificial_p; gnat_pushdecl (type_decl, Empty); @@ -2835,6 +2837,7 @@ create_type_stub_decl (tree name, tree type) { tree type_decl = build_decl (input_location, TYPE_DECL, name, type); DECL_ARTIFICIAL (type_decl) = 1; + DECL_NAMELESS (type_decl) = gnat_encodings != DWARF_GNAT_ENCODINGS_ALL; TYPE_ARTIFICIAL (type) = 1; return type_decl; }