Message ID | 20240914133929.272912-1-jason@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=D5FbATUE; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X5XNg4HSKz1y1T for <incoming@patchwork.ozlabs.org>; Sat, 14 Sep 2024 23:40:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7C53A385840E for <incoming@patchwork.ozlabs.org>; Sat, 14 Sep 2024 13:40:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id DCAF93858C98 for <gcc-patches@gcc.gnu.org>; Sat, 14 Sep 2024 13:39:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCAF93858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DCAF93858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726321177; cv=none; b=YJ/GqcuJraG74YCsz5H3g+TwiSunGfn16o/PnNNB0DB8n8cOGYDBy2OIYcmhUs/MFft3W5bJGsJTjM8gKHFU+VExs4tme/qXUfR0sE5kX72svLKkymRIF2/xmeV7H5YU5gqB79sZ5DDrZ//3GzGILcYU9EeYYTw9X6sRO238RMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726321177; c=relaxed/simple; bh=cYMAHBYoJAQ1L64y5ZAbUYfv1Sb3KUA6CirmLFaY2XQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cmWbrlMmjyu50G6T+dBd09HtkUD8l9C287z34KYD4s40JAgjjSk77GxF29jQqRQcisp+v+w/3CLy9M5MR9qEVF1Wf/kPvmh6eZqMk8Sc+KBQkJLCYCxgwjwbh5I4n7OVMCgKGSOVjNGFNU53ThR6gkQiKGcqcl/nMLUSUMHd880= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726321175; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J29SVYaPtiVJGcpbuNNjVFPznMRwCapjzmwNN3PoVo8=; b=D5FbATUEzi7KQ0+dzA3y4dDzq1HrZjRpxM1G08qflIaZH8h2nwadjVFzGSWWglxhkHzYDV wY+Ec2qQ1B1XgXe352OOImyRvD6XbumdNkSd1TBNHglNHXRW9ZJU23Vgl2yZORfQOA+eh+ 3VDZQB9GIjQzaq0ctWDfovfMLl2zPFA= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-601-5VYcp0sBMA2HGQXowuaiKg-1; Sat, 14 Sep 2024 09:39:33 -0400 X-MC-Unique: 5VYcp0sBMA2HGQXowuaiKg-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a8d1a00e0beso330623466b.0 for <gcc-patches@gcc.gnu.org>; Sat, 14 Sep 2024 06:39:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726321172; x=1726925972; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J29SVYaPtiVJGcpbuNNjVFPznMRwCapjzmwNN3PoVo8=; b=DYci2r7TOxGgRLTReZGoXgvho4k8VQI/iCvLJqr407sdL0Y+jN4oOqzU6RVhblO0So 6v4xxM+h2SuVqaDi6VBx4wwXrJ94hORoejQfuvjd4OAtzR744V0XBG6DuN3Ma4FlxNo8 poA6BG+b6QEXWUyRpan0eyBO6Dfvn9Xc4qVKhozdhsE5+fjvbx9WMUFt2iTV70vu0J9F tANKqUDdF2+App8g2+eMKe3GTQBjPp68T8WBGRczr3fWmKFvljmm1dx2f1LgJP7/VtoZ /Nt4P3OM+Zkaif3ewdTCDpC7x2IHvpgzFO0tqYoC2aHd4blflLBEWfly5Yk9WQXWKjpe U69Q== X-Gm-Message-State: AOJu0YwUWL7OguvD6yWje3BrXYn0xNXnVGnZa88kxmX/Zqi9gPoenAT1 Ex7V2VbqwwDnWcSDs1rmsbqQWfzSAhNCi2HzfmvRpZfcgVFFlmtxSqllIzZGoiTgTm1+/WFfE6E ELGJSLCuFqntCkKw2sH0n3Lbxmxam1izKOnoJLqIFWsOHHHBWL6CGNyK5gbCnO/0jmLjdyAxSCD 4YqLFBP04xz/B0JHwsWNPydBEBXv3pmUfUegDZOw== X-Received: by 2002:a17:907:3f26:b0:a87:370:8dfc with SMTP id a640c23a62f3a-a902a47871dmr1016172466b.14.1726321172118; Sat, 14 Sep 2024 06:39:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwbd3A5nBk35AYK3TcD5bGuApawyLnhLLkG71+F95gyJ7o+T3rFUj7ztqcVOlZ53d6WhNhqA== X-Received: by 2002:a17:907:3f26:b0:a87:370:8dfc with SMTP id a640c23a62f3a-a902a47871dmr1016170766b.14.1726321171517; Sat, 14 Sep 2024 06:39:31 -0700 (PDT) Received: from jason-thinkpadp1gen4i.rmtusma.csb (vpn-konference.ms.mff.cuni.cz. [195.113.20.101]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610f42f1sm81803266b.57.2024.09.14.06.39.30 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 06:39:30 -0700 (PDT) From: Jason Merrill <jason@redhat.com> To: gcc-patches@gcc.gnu.org Subject: [pushed] c++: avoid init_priority warning in system header Date: Sat, 14 Sep 2024 15:39:13 +0200 Message-ID: <20240914133929.272912-1-jason@redhat.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[pushed] c++: avoid init_priority warning in system header
|
expand
|
diff --git a/gcc/cp/tree.cc b/gcc/cp/tree.cc index 99088da9cee..f43febed124 100644 --- a/gcc/cp/tree.cc +++ b/gcc/cp/tree.cc @@ -5196,7 +5196,8 @@ handle_init_priority_attribute (tree* node, /* Check for init_priorities that are reserved for language and runtime support implementations.*/ - if (pri <= MAX_RESERVED_INIT_PRIORITY) + if (pri <= MAX_RESERVED_INIT_PRIORITY + && !in_system_header_at (input_location)) { warning (0, "requested %<init_priority%> %i is reserved for internal use",