From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8CBB3857C42; Wed, 28 Sep 2022 14:01:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8CBB3857C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664373719; bh=eXYNNWywM/qHGtlFzP9a3HIY46XMpAeCdY4ChihyVks=; h=From:To:Subject:Date:In-Reply-To:References:From; b=y3RtyGU+skR1nlQYypagEsDXKJV3G8oFELD2aQiJoh0KXdW8xLDADsvSAqNSOU0JU 2qMZ60b7rVGIz5AnTWXtlQ4GgV1K0fhzgIvD1lQZNwXm7cU20o2zZZb7p5Krfglfg8 HkLyT3AKtiYzACYl1kALOeJceEd0DpJ8K4P9eAvA= From: "rdiezmail-gcc at yahoo dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68606] Reduce or disable the static emergency pool for C++ exceptions Date: Wed, 28 Sep 2022 14:01:59 +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: 4.9.3 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rdiezmail-gcc at yahoo dot de X-Bugzilla-Status: NEW 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=3D68606 --- Comment #11 from R. Diez --- > Has a solution been found for embedded systems with very limited resource= s? > In this case for example, C++ exceptions can be disabled and this > emergency pool not needed. Contrary to popular belief, C++ exception handling does not need many resources. I have been generating dynamic error messages in readable English using C++ exceptions on microcontrollers with as little as 16 KiB SRAM for years, with 'plenty' of memory to spare. To that effect, I have been using the patch that I mentioned above. Here is= an updated URL for it: https://github.com/rdiez/JtagDue/blob/master/Toolchain/Patches/GccDisableCp= pExceptionEmergencyBuffer-GCC-5.3.0.patch=