From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 0EB5B3858C3A for ; Wed, 6 Sep 2023 13:49:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0EB5B3858C3A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-31977ace1c8so3289436f8f.1 for ; Wed, 06 Sep 2023 06:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1694008171; x=1694612971; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XZvDO81eOw0JcwasevAXXzDS494yNkbatLw2TmGbf7s=; b=JYUC+PvBGhm4JAYwWfeQEC50lHrw8QopFzKp7xOU8XAHtWhhXCEfcS1O/stl9sCqh4 jzJEHKdOPg/pNy8yRpklOARR3qXAJSzzdPJmPzpi7dScO6IP5fy/mOhGoCpzbVEXq0el R4YgFeQWaLn9eDkzk9HGJ4I+J7B7o3TzOW46Nf2kFne8DTJbifGUxPDNZT453rAuKfS9 5aVx+20+2Vnov5vJGHXThiggKaPHG1Gz/8ovgn+wyEM1JOwpMQfsZvTH4vjrkx4B1saB VjYX+HN1fp6BVAZh7xIDyNv99/wD7PKb9H105azQakWDCEARFsZCYcfC2D7OTa6sQRpY iGRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694008171; x=1694612971; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XZvDO81eOw0JcwasevAXXzDS494yNkbatLw2TmGbf7s=; b=Q9jaDp0Cqj/oPqP6bT1T1RU/EUk/x3kV4H1SnyK4q5/OXGLybhQ1r2U9dbPHpxbZFf iQlIIeCliBUd0u7n+hJR7GkndcYhRPTOBugw4whsWTmitSCjkeerNb/cCAdsozY7l/Dx RX4n6Wv6uYnMu7pxEKRjYkd4nBk3CQT7FrHAsuM2cL5KEQ4MII/q+ag4Ud1alqXPP7px qDTmGTQWITErtCKBQm4N1pbZ16ODgDUSDKwp+9cG8e2PM5TE1+23ALqgJo/rfsNj4il+ uAxBMPHpcfeSewLZXKrVvOKApW4FklykACD1ZUOOJrVXZjTaUZ1CwY7cV2V7E4t1390E RbzA== X-Gm-Message-State: AOJu0Yycvi5da8PLTv4yBNhJ+k9TK1Fqs+JodxRC3Q8b+6HG5F0AqxQG /eQfEk34MSmdTcHP4oGY0zihsc55pe0zSBeuWzsj9tw= X-Google-Smtp-Source: AGHT+IHPaP/KJEzST3XRkTT7U9H35bJjsGFDPbh5xsnBf3RIjWJmy72m5oUfsI8JIhbhJ2jqN3xACg== X-Received: by 2002:a5d:508d:0:b0:317:6310:a616 with SMTP id a13-20020a5d508d000000b003176310a616mr2298468wrt.36.1694008170759; Wed, 06 Sep 2023 06:49:30 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5e4c:3bb0:fa3:84b9:61c0:bf1a]) by smtp.gmail.com with ESMTPSA id k8-20020a5d4288000000b003176aa612b1sm20528505wrq.38.2023.09.06.06.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 06:49:30 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, dmalcolm@redhat.com Subject: [PATCHSET] Add error metadata to diagnostics Date: Wed, 6 Sep 2023 15:53:01 +0200 Message-Id: <20230906135303.3643659-1-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: This short patchset from David Malcolm enables errors to contain extra metadata - this is particularly useful for the Rust frontend, which will rely on that implementation to emit standard Rust error codes [1]. This series of patches is necessary for much of our more recent additions to the frontend, including the work of one of this year's GSoC student, Mahad Muhammad, who has spent a lot of time working on emitting these error codes from the Rust frontend for GCC. We will soon resume upstreaming patches from our development repository to the main GCC repository, in the hopes of distributing the Rust frontend as part of the GCC 14.1 release. [PATCH 1/2] diagnostics: add error_meta [PATCH 2/2] Experiment with adding an error code to an error Are these OK for trunk? Kindly, Arthur