[PATCH+wwwdocs 0/8] A small Texinfo refinement

2023-01-26 Thread Arsen Arsenović via Gcc-patches
file}.pdf" $includes "$texi" makeinfo --dvi -o "${file}.dvi" $includes "$texi" makeinfo --info -o "${file}.info" $includes "$texi" done This appeared to produce decent results when I was searching for various parts I touched. The ou

[PATCH 1/7] docs: Create Indices appendix

2023-01-26 Thread Arsen Arsenović via Gcc-patches
gcc/ChangeLog: * doc/gcc.texi: Add the Indices appendix, to make texinfo generate nice indices overview page. (@copying): Move "This file documents the use of the GNU compilers" into @copying. Add quotations around copying. --- gcc/doc/gcc.texi | 33 ++

[PATCH 5/7] doc: Add @defbuiltin family of helpers, set documentlanguage

2023-01-26 Thread Arsen Arsenović via Gcc-patches
This macro provides a way to more consistently define built-in functions across GCC documentation. gcc/ChangeLog: * doc/gcc.texi: Set document language to en_US. (@copying): Wrap cover tests @quotation, move description of manual in. * doc/include/gcc-common.texi:

[PATCH 7/7] update_web_docs_git: Update CSS reference to new manual CSS

2023-01-26 Thread Arsen Arsenović via Gcc-patches
maintainer-scripts/ChangeLog: * update_web_docs_git (CSS): Update CSS reference to point to /texinfo-manuals.css. --- maintainer-scripts/update_web_docs_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scr

[PATCH 3/7] **/*.texi: Reorder index entries

2023-01-26 Thread Arsen Arsenović via Gcc-patches
Much like the previous commit, this change is mostly mechanical, with a simple script. I have, however, gone over the patch myself also, to see if there's anything that ought to be kept as-is. Formatter: # GPL3+ use v5.35; use strict; use warnings; my @lineq = (); my @itemq = ();

[wwwdocs] Add revised Texinfo manual CSS

2023-01-26 Thread Arsen Arsenović via Gcc-patches
/htdocs/texinfo-manuals.css @@ -0,0 +1,129 @@ +/* Texinfo documentation stylesheet. + Inspired by the Gnulib manual, 2023-01-26. + + Arsen Arsenović +*/ +@import url('gcc.css'); + +:root { +--contents-width-max: 60em; + +--backdrop: #e7e7e7; +--contents-backdro

Re: [PATCH Rust front-end v4 20/46] gccrs: Add wrapper for make_unique

2022-12-07 Thread Arsen Arsenović via Gcc-patches
gt; +} // namespace Rust > + > +#endif // RUST_MAKE_UNIQUE_H I think this was added recently, see commit 00d7c8ff16e6838273cea808ffbe22e98104f9d5 and gcc/make-unique.h. -- Arsen Arsenović signature.asc Description: PGP signature

[PATCH 0/4] c++: Small tweaks to contracts

2022-12-10 Thread Arsen Arsenović via Gcc-patches
-gnu --disable-sanitizers, via check-g++. Arsen Arsenović (3): contracts: Lowercase {MAYBE,NEVER}_CONTINUE contracts: Update testsuite against new default viol. handler format contrib: Add dg-out-generator.pl Jonathan Wakely (1): libstdc++: Improve output of default contract violation

[PATCH 1/4] contracts: Lowercase {MAYBE,NEVER}_CONTINUE

2022-12-10 Thread Arsen Arsenović via Gcc-patches
The lowercase constants are more consistent with the standard, and it is unlikely that the uppercase versions would've been accepted. gcc/cp/ChangeLog: * contracts.cc: Rename references to contract_violation_continuation_mode constants to be lowercase. libstdc++-v3/ChangeLog:

[PATCH 2/4] libstdc++: Improve output of default contract violation handler [PR107792]

2022-12-10 Thread Arsen Arsenović via Gcc-patches
From: Jonathan Wakely Make the output more readable. Don't output anything unless verbose termination is enabled at configure-time. libstdc++-v3/ChangeLog: PR libstdc++/107792 PR libstdc++/107778 * src/experimental/contract.cc (handle_contract_violation): Make ou

[PATCH 3/4] contracts: Update testsuite against new default viol. handler format

2022-12-10 Thread Arsen Arsenović via Gcc-patches
This change was almost entirely mechanical. Save for two files which had very short matches, these changes were produced by two seds and a Perl script, for the more involved cases. The latter will be added in a subsequent commit. The former are as follows: sed -E -i "/dg-output/s/default st

[PATCH 4/4] contrib: Add dg-out-generator.pl

2022-12-10 Thread Arsen Arsenović via Gcc-patches
) 2022 GCC Contributors. +# Contributed by Arsen Arsenović. +# +# This script is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version

Ping (gcc/configure.ac, docs): [PATCH v2 4/5] Update texinfo.tex, remove the @gol macro/alias

2023-03-18 Thread Arsen Arsenović via Gcc-patches
.ht/~arsen/gcc texinfo_improvements ... or, in (git)web form, at: https://git.sr.ht/~arsen/gcc/log/texinfo_improvements ... with the render at: https://www.aarsen.me/~arsen/final/ Thank you all in advance, have a lovely day. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Ping (gcc/configure.ac, docs): [PATCH v2 4/5] Update texinfo.tex, remove the @gol macro/alias

2023-03-20 Thread Arsen Arsenović via Gcc-patches
porated into them, as well as a few made by the Texinfo maintainers. Do you think that would be OK? Thanks, have a lovely night. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Ping (gcc/configure.ac, docs): [PATCH v2 4/5] Update texinfo.tex, remove the @gol macro/alias

2023-03-20 Thread Arsen Arsenović via Gcc-patches
Sandra Loosemore writes: > On 3/18/23 14:14, Arsen Arsenović via Gcc-patches wrote: >> Evening, >> Ping on this patch series. >> I believe we're close to being able to apply it, with contents of the >> documentation changes being approved, and only a small buil

Re: Ping (gcc/configure.ac, docs): [PATCH v2 4/5] Update texinfo.tex, remove the @gol macro/alias

2023-03-21 Thread Arsen Arsenović via Gcc-patches
Arsen Arsenović via Gcc-patches writes: > Thank you! I'll do a final rebase and push in the morning. Done! Gerald, please update the scripts when you get a chance (but back the old ones up just in case!) If makeinfo is updated as I've asked in one of the other emails, wi

Re: [PATCH] Introduce -nolibstdc++ option

2023-03-30 Thread Arsen Arsenović via Gcc-patches
ref="https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wredundant-move";>-Wredundant-move > warnings have been extended to warn in more contexts. > + The href="https://gcc.gnu.org/onlinedocs/gcc/Link_Options.html#index-nostdlib_002b_002b&quo

[PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-04 Thread Arsen Arsenović via Gcc-patches
This test detects redefinitions by compiling stdc++.h with -Wsystem-headers. Thanks Patrick Palka for the suggestion. libstdc++-v3/ChangeLog: * testsuite/17_intro/versionconflict.cc: New test. --- libstdc++-v3/testsuite/17_intro/versionconflict.cc | 6 ++ 1 file changed, 6 insertion

[PATCH 4/4] libstdc++: Fix some freestanding test failures

2023-04-04 Thread Arsen Arsenović via Gcc-patches
At some point, was added to the non-hosted bit of the C++17 block, which induced failures in many tests. In addition, some tests also lacked a dg-require-effective-target hosted tag. libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h (C++17): Don't double-include , once with

[PATCH 3/4] libstdc++: Downgrade DEBUG to ASSERTIONS when !HOSTED

2023-04-04 Thread Arsen Arsenović via Gcc-patches
Supporting the debug mode in freestanding is a non-trivial job, so instead, as a best-effort, enable assertions, which are light and easy. libstdc++-v3/ChangeLog: * include/bits/c++config: When __STDC_HOSTED__ is zero, disable _GLIBCXX_DEBUG and, if it was set, enable _GLI

[PATCH 1/4] libstdc++: Harmonize and other headers

2023-04-04 Thread Arsen Arsenović via Gcc-patches
Due to recent, large changes in libstdc++, the feature test macros declared in got out of sync with the other headers that possibly declare them. libstdc++-v3/ChangeLog: * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory): Synchronize the definition block with... * i

Re: [PATCH 4/4] libstdc++: Fix some freestanding test failures

2023-04-05 Thread Arsen Arsenović via Gcc-patches
Jonathan Wakely writes: > On Wed, 5 Apr 2023 at 00:13, Arsen Arsenović via Libstdc++ > wrote: >> >> At some point, was added to the non-hosted bit of the C++17 >> block, which induced failures in many tests. >> >> In addition, some tests also lacked a dg-re

Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Arsen Arsenović via Gcc-patches
Jonathan Wakely writes: > On 05/04/23 01:09 +0200, Arsen Arsenović wrote: >>This test detects redefinitions by compiling stdc++.h with >>-Wsystem-headers. Thanks Patrick Palka for the suggestion. >> >>libstdc++-v3/ChangeLog: >> >> * testsuit

Re: [PATCH 1/4] libstdc++: Harmonize and other headers

2023-04-05 Thread Arsen Arsenović via Gcc-patches
p_lib_stdatomic_h 202011L + +#if _GLIBCXX_HOSTED +#define __cpp_lib_adaptor_iterator_pair_constructor 202106L #define __cpp_lib_ios_noreplace 202207L #define __cpp_lib_move_only_function 202110L #if __cpp_lib_span -- 2.40.0 The testsuite is running on my end, so the above is technically not tested yet, but it should be the same logic unless I reordered something wrong. -- Arsen Arsenović signature.asc Description: PGP signature

Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Arsen Arsenović via Gcc-patches
Arsen Arsenović via Libstdc++ writes: > Good idea. Both the positive and negative cases work when implemented > like this: > > From 98d302bab9a87d3f2daecf9d54d62f33ba216673 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= > Date: Wed, 8 Mar 2023 17:01:

[PATCH] update_web_docs_git: Add updated Texinfo to PATH

2023-04-06 Thread Arsen Arsenović via Gcc-patches
maintainer-scripts/ChangeLog: * update_web_docs_git: Add updated Texinfo to PATH --- Hi, I'm posting this as a ping and a patch necessary to get the wwwdocs building with the new Texinfo version that's installed on gcc.gnu.org. It would be nice to do this ahead of the GCC 13 release. I m

Re: [PATCH] update_web_docs_git: Add updated Texinfo to PATH

2023-04-10 Thread Arsen Arsenović via Gcc-patches
Gerald Pfeifer writes: > On Thu, 6 Apr 2023, Arsen Arsenović wrote: >> maintainer-scripts/ChangeLog: >> >> * update_web_docs_git: Add updated Texinfo to PATH > > Do we really need to adjust PATH, or could we just introduce a MAKEINFO > variable, something

Re: [PATCH] update_web_docs_git: Add updated Texinfo to PATH

2023-04-14 Thread Arsen Arsenović via Gcc-patches
Gerald Pfeifer writes: > On Tue, 11 Apr 2023, Arsen Arsenović wrote: >> Ah! Good idea. What do you think of the following? > > Did you intentionally not implement the following part of my suggestion > >if [ x${MAKEINFO}x = xx ]; then >: > > that is,

<    1   2   3   4