From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B94D93858438; Thu, 22 Sep 2022 10:38:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B94D93858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663843112; bh=whnsq9MVv2m7D6ApOu3PdOpUgE277zrV5InmL9rtftY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iBu2ha+li4m8VRLfbLqPu7qgkhmG78WSdcUFYrvKHCFIqC/+3t/SlqoMfUcUBcVRC 2jvklkIbv1QZ26DZRf8JsOkRpWRiEzT00Pn4UgpZsuV8U/kGIDmvG0mqT1otXOWm/C HLO2w1D9/KHxhG5w6oQZWbrPIjcdz6nelvs4e8Qw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107008] Combine config/os/*/error_constants.h into one file Date: Thu, 22 Sep 2022 10:38:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107008 --- Comment #1 from Jonathan Wakely --- In theory the existing per-target error_constants.h allows an out-of-tree p= ort for a new OS to use its own error_constants.h more easily. Meh. They would still need to edit configure.host to overrride ${error_constants_dir}, so t= hey can just edit the error_constants.h file instead. Adding a couple of #ifdef conditions in there seems easier than providing a whole new file anyway.=