Re: [PATCH] wwwdocs: experiments with a Python postprocessing script

2025-01-16 Thread David Malcolm
On Thu, 2025-01-16 at 22:58 +0800, Gerald Pfeifer wrote: > On Wed, 15 Jan 2025, David Malcolm wrote: > > The heading elements in our website contain "id" information, > > but currently to find them you to look at the page source, > > whereas in the generated

Re: [PATCH] wwwdocs: experiments with a Python postprocessing script

2025-01-16 Thread David Malcolm
On Thu, 2025-01-16 at 22:58 +0800, Gerald Pfeifer wrote: > On Wed, 15 Jan 2025, David Malcolm wrote: > > The heading elements in our website contain "id" information, > > but currently to find them you to look at the page source, > > whereas in the generated

[PATCH] wwwdocs: experiments with a Python postprocessing script

2025-01-15 Thread David Malcolm
The heading elements in our website contain "id" information, but currently to find them you to look at the page source, whereas in the generated HTML for the manual we have e.g.: ¶ which shows up nicely in the browser in e.g. https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html as a pilcrow c

Re: GCC 15 for Fedora 42 in a side-tag

2025-01-15 Thread David Malcolm
remember exactly, decade and > half or > more). > > > I look at the documentation linked > > in the Fedora Change, but > > https://gcc.gnu.org/gcc-15/porting_to.html says: > > "Note: GCC 15 has not been released yet, so this document is a > > work-in-progres

gcc-wwwdocs branch master updated. 801f3ad85b22a5da5114bfb47d74c94033806f24

2025-01-15 Thread David Malcolm via Gcc-cvs-wwwdocs
ow. - Log - commit 801f3ad85b22a5da5114bfb47d74c94033806f24 Author: David Malcolm Date: Wed Jan 15 14:08:24 2025 -0500 gcc-15/porting_to: c23-fn-decls-without-parameters diff --git a/htdocs/gcc-15/porting_to.html b/htdocs/gcc-15/porting_to.html index 39598b93..c446e

Re: [PATCH] wwwdocs: gcc-15: start adding notes on C23

2025-01-15 Thread David Malcolm
On Wed, 2025-01-15 at 18:22 +, Joseph Myers wrote: > On Wed, 15 Jan 2025, David Malcolm wrote: > > > Here's an updated version of the patch > > > > OK to push? (we could tweak it in followups) > > This will need updating to work together with Jakub's

[pushed, wwwdocs] gcc-15/porting_to: prefer to for non-std:: types

2025-01-15 Thread David Malcolm
My tests showed the removal of internal uses of from stdlibc++ usually manifests in complaints about unqualified types like "uint8_t", rather than "std::uint8_t" (and unfortunately the fix-it hint gets this wrong; see PR c++/110930). I've taken the liberty of pushing this patch to the website to

Re: [wwwdocs, PATCH] gcc-15/porting_to: add section on new C23 keywords

2025-01-15 Thread David Malcolm
On Wed, 2025-01-15 at 18:25 +, Joseph Myers wrote: > On Wed, 15 Jan 2025, David Malcolm wrote: > > > + > > +  In C99 and later you can use #include > > <stdbool.h> > > +  which provides a definition of bool compatible with > > C23. > >

Re: [PATCH] wwwdocs: gcc-15: start adding notes on C23

2025-01-15 Thread David Malcolm
On Wed, 2025-01-15 at 18:22 +, Joseph Myers wrote: > On Wed, 15 Jan 2025, David Malcolm wrote: > > > Here's an updated version of the patch > > > > OK to push? (we could tweak it in followups) > > This will need updating to work together with Jakub's

gcc-wwwdocs branch master updated. 4979889192aecb6c5693d1a48f2d5ca0d6d6b3a5

2025-01-15 Thread David Malcolm via Gcc-cvs-wwwdocs
t appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4979889192aecb6c5693d1a48f2d5ca0d6d6b3a5 Author: David Malcolm Date: Wed Jan 15 12:26:33 2025 -0500 gcc-15/porting_to: prefe

[wwwdocs, PATCH] gcc-15/porting_to: add section on new C23 keywords

2025-01-15 Thread David Malcolm
OK to push? --- htdocs/gcc-15/porting_to.html | 28 1 file changed, 28 insertions(+) diff --git a/htdocs/gcc-15/porting_to.html b/htdocs/gcc-15/porting_to.html index 385fa141..53512250 100644 --- a/htdocs/gcc-15/porting_to.html +++ b/htdocs/gcc-15/porting_to.html @@

Re: [PATCH] wwwdocs: gcc-15: start adding notes on C23

2025-01-15 Thread David Malcolm
On Mon, 2024-12-09 at 20:58 +0100, Jakub Jelinek wrote: > On Mon, Dec 09, 2024 at 02:44:42PM -0500, David Malcolm wrote: > > +C23 brings the following changes: > > + > > +Function prototypes > > with empty params change from implicit int to > > void > > + &g

Re: [PATCH v2] c: improve UX for -Wincompatible-pointer-types [PR116871]

2025-01-13 Thread David Malcolm
On Tue, 2025-01-14 at 00:08 +, Joseph Myers wrote: > On Sun, 12 Jan 2025, David Malcolm wrote: > > > So I've dropped the takes_int_p, takes_void_p, and > > maybe_inform_empty_args_c23_transition from the patch.  Here's an > > updated version that keeps the

[gcc r15-6886] c: improve UX for -Wincompatible-pointer-types (v3) [PR116871]

2025-01-13 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:bbc7900ce7e2c3d906286674f80789f057e86c0a commit r15-6886-gbbc7900ce7e2c3d906286674f80789f057e86c0a Author: David Malcolm Date: Mon Jan 13 19:47:25 2025 -0500 c: improve UX for -Wincompatible-pointer-types (v3) [PR116871] PR c/116871 notes that our

[PATCH v2] c: improve UX for -Wincompatible-pointer-types [PR116871]

2025-01-12 Thread David Malcolm
signment): For OPT_Wincompatible_pointer_types, move auto_diagnostic_group to cover all cases. Use %e and pp_element rather than %qT and tree to colorize the types. Capture whether a warning was emitted, and, if it was, show various notes: for a pointer to a function

[pushed: r15-6838] c: UX improvements to 'too {few, many} arguments' errors (v5) [PR118112]

2025-01-12 Thread David Malcolm
aking it to "at least" for variadic functions. gcc/testsuite/ChangeLog: PR c/118112 * gcc.dg/too-few-arguments.c: New test. * gcc.dg/too-many-arguments.c: New test. Signed-off-by: David Malcolm --- gcc/c/c-typeck.cc | 77

[gcc r15-6838] c: UX improvements to 'too {few, many} arguments' errors (v5) [PR118112]

2025-01-12 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:a236f70617213343f3075ee43e8d9f5882dca400 commit r15-6838-ga236f70617213343f3075ee43e8d9f5882dca400 Author: David Malcolm Date: Sun Jan 12 13:46:31 2025 -0500 c: UX improvements to 'too {few,many} arguments' errors (v5) [PR118112] Consider this cas

Re: [PATCH] c: improve UX for -Wincompatible-pointer-types and C23 [PR116871]

2025-01-11 Thread David Malcolm
On Sat, 2025-01-11 at 13:55 -0500, David Malcolm wrote: > PR c/116871 notes that our diagnostics about incompatible function > types > could be improved. > > In particular, for the case of migrating to C23 I'm seeing a lot of > build failures with signal handlers similar t

[PATCH] c: improve UX for -Wincompatible-pointer-types and C23 [PR116871]

2025-01-11 Thread David Malcolm
Capture whether a warning was emitted, and, if it was, show various notes: for a pointer to a function, show the function decl, for typedef types, show the decls, and if this appears to be a C23 transition problem, issue a note for that. gcc/testsuite/ChangeLog:

Re: diagnostic framework message array

2025-01-11 Thread David Malcolm via Gcc
On Sat, 2025-01-11 at 12:32 -0500, David Malcolm wrote: > On Fri, 2025-01-10 at 15:52 -0500, James K. Lowden wrote: > > What should I do with the following message? > > > >  cobol1: warning: depth l

Re: diagnostic framework message array

2025-01-11 Thread David Malcolm via Gcc
On Fri, 2025-01-10 at 15:52 -0500, James K. Lowden wrote: > What should I do with the following message? > >  cobol1: warning: depth line copybook filename >   - > >  cobol1: warning: 1    1 prog.cob >  cobol1: warning:

[PATCH v4] c/c++: UX improvements to 'too {few,many} arguments' errors [PR118112]

2025-01-10 Thread David Malcolm
On Thu, 2025-01-09 at 22:28 -0500, David Malcolm wrote: > On Thu, 2025-01-09 at 21:15 -0500, Jason Merrill wrote: > > On 1/9/25 7:00 PM, David Malcolm wrote: > > > On Thu, 2025-01-09 at 14:21 -0500, Jason Merrill wrote: > > > > > > Thanks for taking a look..

Re: [PATCH] c/c++: UX improvements to 'too {few,many} arguments' errors (v3) [PR118112]

2025-01-09 Thread David Malcolm
On Thu, 2025-01-09 at 21:15 -0500, Jason Merrill wrote: > On 1/9/25 7:00 PM, David Malcolm wrote: > > On Thu, 2025-01-09 at 14:21 -0500, Jason Merrill wrote: > > > > Thanks for taking a look... > > > > > > On 1/9/25 2:11 PM, David Malcolm wrot

[PATCH] c/c++: UX improvements to 'too {few, many} arguments' errors (v3) [PR118112]

2025-01-09 Thread David Malcolm
On Thu, 2025-01-09 at 14:21 -0500, Jason Merrill wrote: Thanks for taking a look... > > On 1/9/25 2:11 PM, David Malcolm wrote: > > > > @@ -4743,7 +4769,38 @@ convert_arguments (tree typelist, vec > va_gc> **values, tree fndecl, > > if (typetail

[PATCH] c/c++: UX improvements to 'too {few, many} arguments' errors (v2) [PR118112]

2025-01-09 Thread David Malcolm
quot;too few" case. gcc/testsuite/ChangeLog: PR c/118112 * c-c++-common/too-few-arguments.c: New test. * c-c++-common/too-many-arguments.c: New test. * g++.dg/cpp0x/variadic169.C: Verify the reported expected vs actual argument counts. * g++.dg/modules/ma

Re: [PING] [PATCH 1/6] Add tunables for input buffer

2025-01-08 Thread David Malcolm
On Wed, 2025-01-08 at 07:48 -0800, Andi Kleen wrote: > > I wanted to ping this patch series. Thanks. > > -Andi > Thanks for tha patches, and sorry about not getting back to you earlier (I've been focusing on analyzing many 100s of build failures with GCC 15 relative to GCC 14) Overall, the pat

Re: [PATCH] c/c++: UX improvements to 'too {few, many} arguments' errors [PR118112]

2025-01-07 Thread David Malcolm
On Tue, 2025-01-07 at 15:08 -0500, Marek Polacek wrote: > On Thu, Dec 19, 2024 at 06:40:19PM -0500, David Malcolm wrote: > > Consider this case of a bad call to a callback function (perhaps > > due to C23 changing the meaning of () in function decls): > > > > struc

Ping re C++ parts of: [PATCH] c/c++: UX improvements to 'too {few,many} arguments' errors [PR118112]

2025-01-07 Thread David Malcolm
On Thu, 2024-12-19 at 18:40 -0500, David Malcolm wrote: Jason: are the C++ changes OK? Patch can also be seen at: https://gcc.gnu.org/pipermail/gcc-patches/2024-December/672076.html Joseph approved the C part of this in https://gcc.gnu.org/pipermail/gcc-patches/2025-January/672473.html Thanks

Re: [WIP 3/8] algol68: front-end misc files

2025-01-02 Thread David Malcolm
On Wed, 2025-01-01 at 03:09 +0100, Jose E. Marchesi wrote: > --- >  gcc/algol68/Make-lang.in |  239 + >  gcc/algol68/README   |  102 ++ >  gcc/algol68/a68-diagnostics.cc   |  450 + >  gcc/algol68/a68-lang.cc  |  549 ++ >  gcc/algol68/a

Re: [PATCH] c: special-case some "bool" errors with C23 (v2) [PR117629]

2025-01-02 Thread David Malcolm
On Thu, 2025-01-02 at 18:33 +, Joseph Myers wrote: > On Thu, 19 Dec 2024, David Malcolm wrote: > > > Here's an updated version of the patch. > > > > Changed in v2: > > - distinguish between "bool" and "_Bool" when dete

[gcc r15-6507] c: special-case some "bool" errors with C23 (v2) [PR117629]

2025-01-02 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:321983033d621e3f75e11d380c4463956a3f6e1e commit r15-6507-g321983033d621e3f75e11d380c4463956a3f6e1e Author: David Malcolm Date: Thu Jan 2 15:10:15 2025 -0500 c: special-case some "bool" errors with C23 (v2) [PR117629] Changed in v2: - distingui

Re: [committed] Use u'' instead of '' in libgdiagnostics/conf.py

2025-01-02 Thread David Malcolm
On Thu, 2025-01-02 at 10:39 -0500, David Malcolm wrote: > On Thu, 2025-01-02 at 13:34 +0100, Jakub Jelinek wrote: > > On Thu, Jan 02, 2025 at 11:51:20AM +, Richard Sandiford wrote: > > > Jakub Jelinek writes: > > > > libgdiagnostics/conf.py breaks u

Re: [committed] Use u'' instead of '' in libgdiagnostics/conf.py

2025-01-02 Thread David Malcolm
On Thu, 2025-01-02 at 13:34 +0100, Jakub Jelinek wrote: > On Thu, Jan 02, 2025 at 11:51:20AM +, Richard Sandiford wrote: > > Jakub Jelinek writes: > > > libgdiagnostics/conf.py breaks update-copyright.py --this-year, > > > which only accepts copyright year in u'' literals in python > > > files

[PATCH] c/c++: UX improvements to 'too {few, many} arguments' errors [PR118112]

2024-12-19 Thread David Malcolm
he "at_least_p", determining this for the "too few" case. gcc/testsuite/ChangeLog: PR c/118112 * c-c++-common/too-few-arguments.c: New test. * c-c++-common/too-many-arguments.c: New test. * g++.dg/cpp0x/variadic169.C: Verify the reported expec

[PATCH] c: special-case some "bool" errors with C23 (v2) [PR117629]

2024-12-19 Thread David Malcolm
(c_parser_enum_specifier): ...here, adding handling for RID_FALSE and RID_TRUE. * c-tree.h (add_note_about_new_keyword): New decl. gcc/testsuite/ChangeLog: PR c/117629 * gcc.dg/auto-type-2.c: Update expected output with _Bool. * gcc.dg/c23-bool-errors-1.c: New t

Re: [PATCH] c: special-case some "bool" errors with C23 [PR117629]

2024-12-18 Thread David Malcolm
On Tue, 2024-11-26 at 16:35 -0500, Marek Polacek wrote: > On Mon, Nov 25, 2024 at 10:49:02PM -0500, David Malcolm wrote: > > This patch attempts to provide better error messages for > > code compiled with C23 that hasn't been updated for > > "bool", "true&

Re: The COBOL front end, in 8 notes

2024-12-17 Thread David Malcolm
> > Under "Tools/packages necessary for building GCC", in Prequisites, > yes?  > > In gcc/cobol/parse,y, we have, > > %require "3.5.1"  //    3.8.2 also works, but not 3.8.0 > > David Malcolm reports success with 3.5.   with the caveats

[pushed: r15-6286] sarif-replay: handle embedded links (§3.11.6)

2024-12-16 Thread David Malcolm
.1.0-valid/malloc-vs-local-4.c.sarif: Update expected output for handling the embedded links. * sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise. Signed-off-by: David Malcolm --- gcc/libsarifreplay.cc | 91 ++- .../2.1.0-valid/3.

[pushed: r15-6285] libgdiagnostics: consolidate logical locations

2024-12-16 Thread David Malcolm
arif-replay.dg/2.1.0-valid/signal-1.c.sarif: Likewise. * sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise. Signed-off-by: David Malcolm --- .../topics/logical-locations.rst | 6 + gcc/libgdiagnostics.cc| 58 ++- .../tes

[pushed: r15-6284] sarif-replay: quote source from artifact contents [PR117943]

2024-12-16 Thread David Malcolm
valid/error-with-note.sarif: Update expected output to include quoted source code and underlines. * sarif-replay.dg/2.1.0-valid/signal-1.c.moved.sarif: New test. * sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: Update expected output to include quoted source code and underlines. Si

[pushed: r15-6283] diagnostics: move libgdiagnostics dc from sinks into diagnostic_manager

2024-12-16 Thread David Malcolm
ke_element_for_diagnostic): Use source-printing options from diagnostic_context. * gcc.dg/plugin/expensive_selftests_plugin.cc (test_richloc): Likewise. Signed-off-by: David Malcolm --- gcc/c-family/c-format.cc | 4 +- gcc/c-family/c-opts.cc

[pushed: r15-6282] diagnostics: implement file_cache::dump

2024-12-16 Thread David Malcolm
and implementations. (file_cache::dump): New. * input.h (file_cache::dump): New decl. Signed-off-by: David Malcolm --- gcc/diagnostic.cc | 5 + gcc/input.cc | 46 ++ gcc/input.h | 3 +++ 3 files changed, 54 insertions(+)

[gcc r15-6286] sarif-replay: handle embedded links (§3.11.6)

2024-12-16 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:7f4f49687b1f1b7aed0d6626b24f214e8a800439 commit r15-6286-g7f4f49687b1f1b7aed0d6626b24f214e8a800439 Author: David Malcolm Date: Mon Dec 16 11:22:50 2024 -0500 sarif-replay: handle embedded links (§3.11.6) Handle embedded links in plain text messages. For now

[gcc r15-6282] diagnostics: implement file_cache::dump

2024-12-16 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:e55cfebd0016e4945643322cb083b2fdf8ac835d commit r15-6282-ge55cfebd0016e4945643322cb083b2fdf8ac835d Author: David Malcolm Date: Mon Dec 16 11:22:49 2024 -0500 diagnostics: implement file_cache::dump This is purely for use when debugging. gcc

[gcc r15-6284] sarif-replay: quote source from artifact contents [PR117943]

2024-12-16 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:778336e0e4f25745f76a127801dc3bab5e9c1334 commit r15-6284-g778336e0e4f25745f76a127801dc3bab5e9c1334 Author: David Malcolm Date: Mon Dec 16 11:22:49 2024 -0500 sarif-replay: quote source from artifact contents [PR117943] The diagnostic source-quoting machinery

[gcc r15-6285] libgdiagnostics: consolidate logical locations

2024-12-16 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:2af541920787e333a25b6524e6b94200f128ba13 commit r15-6285-g2af541920787e333a25b6524e6b94200f128ba13 Author: David Malcolm Date: Mon Dec 16 11:22:50 2024 -0500 libgdiagnostics: consolidate logical locations This patch updates

[gcc r15-6283] diagnostics: move libgdiagnostics dc from sinks into diagnostic_manager

2024-12-16 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:ea7da640cf234ebde8d73d996dd14e6563c1ffcf commit r15-6283-gea7da640cf234ebde8d73d996dd14e6563c1ffcf Author: David Malcolm Date: Mon Dec 16 11:22:49 2024 -0500 diagnostics: move libgdiagnostics dc from sinks into diagnostic_manager libgdiagnostics was written

Re: [PATCH] mtd: spi-nor: winbond: add w25q01jv flash chip

2024-12-16 Thread David Malcolm
On Mon, 2024-12-16 at 11:26 +, Wilken Gottwalt wrote: > Add Winbond W25Q01JV 128 MiB SPI NOR flash chip, verified working on > the > Zynq-7000 platform QSPI controller. The flash chip has quite high > read > speeds (about 60+ MiB/s), but erasing is very slow. The slow erasing > is > by design.

Re: Running Compiled Guile Objects

2024-12-14 Thread David Malcolm
On Sun, 2024-12-15 at 00:43 +0100, Maxime Devos wrote: > > > Those willing to contribute a proper ahead-of-time compiler to > > > GNU > > > guile could use the GNU CC libgccjit library which is part of the > > > GCC > > > compiler. > > > https://gcc.gnu.org/onlinedocs/jit/ > > > > ...and https://g

Re: Running Compiled Guile Objects

2024-12-14 Thread David Malcolm
On Sun, 2024-12-15 at 00:43 +0100, Maxime Devos wrote: > > > Those willing to contribute a proper ahead-of-time compiler to > > > GNU > > > guile could use the GNU CC libgccjit library which is part of the > > > GCC > > > compiler. > > > https://gcc.gnu.org/onlinedocs/jit/ > > > > ...and https://g

Re: [PATCH] cobol: set SARIF "artifact.sourceLanguage" property

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 19:20 -0500, David Malcolm wrote: > With this patch, -fdiagnostics-format=sarif-stderr emits: > >    "sourceLanguage": "cobol" > > for its artifacts, as per Appendix J of the SARIF spec. > > gcc/ChangeLog: > * cobol/cobo

[PATCH] cobol: set SARIF "artifact.sourceLanguage" property

2024-12-14 Thread David Malcolm
Set it to the above. Signed-off-by: David Malcolm --- gcc/cobol/cobol1.cc | 11 +++ 1 file changed, 11 insertions(+) diff --git a/gcc/cobol/cobol1.cc b/gcc/cobol/cobol1.cc index 3819411edd3..5938c9a2c09 100644 --- a/gcc/cobol/cobol1.cc +++ b/gcc/cobol/cobol1.

[PATCH] cobol: regenerate lang.opt.urls

2024-12-14 Thread David Malcolm
I went ahead and ran regenerate-opt-urls.py on a clone of the cobol repo; here's the resulting change. gcc/ChangeLog: * cobol/lang.opt.urls: Regenerate. Signed-off-by: David Malcolm --- gcc/cobol/lang.opt.urls | 40 1 file changed, 20 inser

Re: The COBOL front end, in 8 notes

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 18:34 -0500, David Malcolm wrote: > On Sat, 2024-12-14 at 10:11 +, Sam James wrote: > > David Malcolm writes: > > > > > On Thu, 2024-12-12 at 12:56 -0500, James K. Lowden wrote: > > [...] > > > > > > > &g

Re: The COBOL front end, in 8 notes

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 10:11 +, Sam James wrote: > David Malcolm writes: > > > On Thu, 2024-12-12 at 12:56 -0500, James K. Lowden wrote: [...] > > > > > > Thank you for your kind consideration of our work. > > > > Please forgive me if you'

Re: Running Compiled Guile Objects

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 18:11 +0100, Basile Starynkevitch wrote: > On Sat, 2024-12-14 at 09:15 +0900, Nala Ginrut wrote: > > Hi Hakan! > > The current Guile is not AOT yet. Although the object file is ELF, > > it's > > just bytecode wrapped ELF header. So you can't run it as a regular > > executable

Re: Running Compiled Guile Objects

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 18:11 +0100, Basile Starynkevitch wrote: > On Sat, 2024-12-14 at 09:15 +0900, Nala Ginrut wrote: > > Hi Hakan! > > The current Guile is not AOT yet. Although the object file is ELF, > > it's > > just bytecode wrapped ELF header. So you can't run it as a regular > > executable

Re: The COBOL front end, in 8 notes

2024-12-13 Thread David Malcolm
On Thu, 2024-12-12 at 12:56 -0500, James K. Lowden wrote: > The following 8 patches constitute the 80 files needed to build and > document the COBOL front end.  They assume that following exist: > >     gcc/cobol/ChangeLog >     libgcobol/ChangeLog > > The messages are grouped by files in a more

Re: [PATCH] COBOL 8/8 bld: "meta" files, such a gcc/cobol/Make-lang.in

2024-12-13 Thread David Malcolm
On Thu, 2024-12-12 at 12:58 -0500, James K. Lowden wrote: [...snip...] > diff --git a/gcc/cobol/lang.opt b/gcc/cobol/lang.opt > new file mode 100644 > index 000..1739dd9fdf3 > --- /dev/null > +++ b/gcc/cobol/lang.opt > @@ -0,0 +1,144 @@ > +; lang.opt -- Options for the gcc Cobol front en

Re: GCC 14 jit API in C++ for creating union types?

2024-12-13 Thread David Malcolm
On Fri, 2024-12-13 at 11:24 +0100, Basile Starynkevitch wrote: > On Fri, 2024-12-13 at 11:03 +0100, Basile Starynkevitch wrote: > > Hello all, > > > > On GNU Linux/Ubuntu/x86_64 I am using libgccjit++ (in > > https://github.com/RefPerSys/RefPerSys/ - a GPLv3+ inference engine > > project) but I ca

Re: [PATCH 1/2] c++: print z candidate count and number them

2024-12-11 Thread David Malcolm
On Tue, 2024-12-10 at 19:08 -0500, Jason Merrill wrote: > On 12/10/24 6:05 PM, David Malcolm wrote: > > On Sat, 2024-12-07 at 10:19 -0500, Jason Merrill wrote: > > > On 11/15/24 8:02 PM, David Malcolm wrote: > > > > This patch is a followup to: > > > >

[pushed: r15-6115] diagnostics: tweak output for nested messages [PR116253]

2024-12-11 Thread David Malcolm
n new lines, don't print UNKNOWN_LOCATION or BUILTINS_LOCATION. Signed-off-by: David Malcolm --- gcc/diagnostic-format-text.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/diagnostic-format-text.cc b/gcc/diagnostic-format-text.cc index 3650da9a927e..

[pushed: r15-6114] input.cc: rename file_cache:in_context

2024-12-11 Thread David Malcolm
ot;. (file_cache::add_file): Likewise. * input.h (class file_cache): Likewise. Signed-off-by: David Malcolm --- gcc/input.cc | 6 +++--- gcc/input.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/input.cc b/gcc/input.cc index 20b5f62371ac..7fc683db23f1 1

Re: [PATCH] c++: tweak colorization of incompatible declspecs

2024-12-11 Thread David Malcolm
On Fri, 2024-11-15 at 20:05 -0500, David Malcolm wrote: > Introduce a helper function for complaining about "signed unsigned" > and "short long".  Add colorization there so that e.g. the 'signed' > and 'unsigned' are given consisten contrasting c

[gcc r15-6118] c++: tweak colorization of incompatible declspecs

2024-12-11 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:4b4023d52986b20369a0bdc9366d82c2b2f1efc7 commit r15-6118-g4b4023d52986b20369a0bdc9366d82c2b2f1efc7 Author: David Malcolm Date: Wed Dec 11 10:32:14 2024 -0500 c++: tweak colorization of incompatible declspecs Introduce a helper function for complaining about

[gcc r15-6115] diagnostics: tweak output for nested messages [PR116253]

2024-12-11 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:331226fd87c2010928329ef35b6d4f680d9234d1 commit r15-6115-g331226fd87c2010928329ef35b6d4f680d9234d1 Author: David Malcolm Date: Wed Dec 11 10:21:35 2024 -0500 diagnostics: tweak output for nested messages [PR116253] When printing nested messages with

[gcc r15-6117] diagnostics: suppress "note: " prefix in nested diagnostics [PR116253]

2024-12-11 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:7435d1dbae8ae1db239228811b1e1f2452674704 commit r15-6117-g7435d1dbae8ae1db239228811b1e1f2452674704 Author: David Malcolm Date: Wed Dec 11 10:26:17 2024 -0500 diagnostics: suppress "note: " prefix in nested diagnostics [PR116253] This patch is a f

[gcc r15-6116] c++: print z candidate count and number them (v2)

2024-12-11 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:d3dd24acd74605488ebdb93c8b95da958053d43f commit r15-6116-gd3dd24acd74605488ebdb93c8b95da958053d43f Author: David Malcolm Date: Wed Dec 11 10:24:26 2024 -0500 c++: print z candidate count and number them (v2) Changed in v2: changed wording to "the

[gcc r15-6114] input.cc: rename file_cache:in_context

2024-12-11 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:e4ef3aa2911f1a1548089712b0bf34c812c19438 commit r15-6114-ge4ef3aa2911f1a1548089712b0bf34c812c19438 Author: David Malcolm Date: Wed Dec 11 10:14:37 2024 -0500 input.cc: rename file_cache:in_context No functional change intended. gcc/ChangeLog

[pushed: r15-6095] sarif-replay: fix missing URLs [PR117944]

2024-12-10 Thread David Malcolm
-off-by: David Malcolm --- gcc/libsarifreplay.cc | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gcc/libsarifreplay.cc b/gcc/libsarifreplay.cc index 9a053f7fe612..e8b5a55b9188 100644 --- a/gcc/libsarifreplay.cc +++ b/gcc/libsarifreplay.cc @@ -1004,7 +100

[gcc r15-6095] sarif-replay: fix missing URLs [PR117944]

2024-12-10 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:f102b82d3da6dd4d5f9af1cd622fce93d0c494eb commit r15-6095-gf102b82d3da6dd4d5f9af1cd622fce93d0c494eb Author: David Malcolm Date: Tue Dec 10 18:31:24 2024 -0500 sarif-replay: fix missing URLs [PR117944] gcc/ChangeLog: PR other/117944

Re: [PATCH 1/2] c++: print z candidate count and number them

2024-12-10 Thread David Malcolm
On Sat, 2024-12-07 at 10:19 -0500, Jason Merrill wrote: > On 11/15/24 8:02 PM, David Malcolm wrote: > > This patch is a followup to: > >    "c++: use diagnostic nesting [PR116253]" > > > > Following Sy Brand's UX suggestions in P2429R0 for example 1, th

[pushed] contrib: add 'libgdiagnostics' and 'sarif-replay' to bug_components

2024-12-10 Thread David Malcolm
contrib/ChangeLog: * gcc-changelog/git_commit.py (bug_components): Add 'libgdiagnostics' and 'sarif-replay'. Signed-off-by: David Malcolm --- contrib/gcc-changelog/git_commit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/gcc-changelog/git_

[gcc r15-6094] contrib: add 'libgdiagnostics' and 'sarif-replay' to bug_components

2024-12-10 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:5fba71a88f3826ffbdd7fab0116b154b1af22ace commit r15-6094-g5fba71a88f3826ffbdd7fab0116b154b1af22ace Author: David Malcolm Date: Tue Dec 10 17:36:30 2024 -0500 contrib: add 'libgdiagnostics' and 'sarif-replay' to bug_components

[PATCH] wwwdocs: gcc-15: start adding notes on C23

2024-12-09 Thread David Malcolm
How does this look? Thanks Dave --- htdocs/gcc-15/changes.html| 12 htdocs/gcc-15/porting_to.html | 34 +- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index 23866bde..94731

[gcc r15-5995] c++: use diagnostic nesting [PR116253]

2024-12-06 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:339246fb9ef4cac84126138093303f309071e40e commit r15-5995-g339246fb9ef4cac84126138093303f309071e40e Author: David Malcolm Date: Fri Dec 6 13:40:55 2024 -0500 c++: use diagnostic nesting [PR116253] This patch uses the nested diagnostics capabilities added in

Re: [PATCH] diagnostics: UX: add doc URLs for attributes (v2)

2024-12-06 Thread David Malcolm
On Thu, 2024-11-21 at 17:36 -0500, David Malcolm wrote: > This is v2 of the patch; v1 was here: >   https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655541.html > > Changed in v2: > * added a new TARGET_DOCUMENTATION_NAME hook for figuring out which >   documentation URL to

[gcc r15-5988] diagnostics: UX: add doc URLs for attributes (v2)

2024-12-06 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:5a022062d22e0bd6f8bb650ca109b0ca2d093796 commit r15-5988-g5a022062d22e0bd6f8bb650ca109b0ca2d093796 Author: David Malcolm Date: Fri Dec 6 11:48:43 2024 -0500 diagnostics: UX: add doc URLs for attributes (v2) This is v2 of the patch; v1 was here: https

[gcc r15-5987] c++: handle misspelled concepts and missing #include

2024-12-06 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:31c08879dcc750275a59d73aefe2e1fc4ed4957d commit r15-5987-g31c08879dcc750275a59d73aefe2e1fc4ed4957d Author: David Malcolm Date: Fri Dec 6 11:33:59 2024 -0500 c++: handle misspelled concepts and missing #include gcc/cp/ChangeLog: * name-lookup.cc

[gcc r15-5986] c++: consolidate location printing in error.cc [PR116253]

2024-12-06 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:4f5b7f1b738f7206402d008e52718abfd78e2a07 commit r15-5986-g4f5b7f1b738f7206402d008e52718abfd78e2a07 Author: David Malcolm Date: Fri Dec 6 11:29:54 2024 -0500 c++: consolidate location printing in error.cc [PR116253] Consolidate the location-printing logic in

Re: [PATCH] c++: give suggestion on misspelled class name [PR116771]

2024-12-04 Thread David Malcolm
On Fri, 2024-11-22 at 17:04 -0500, Marek Polacek wrote: > On Fri, Nov 22, 2024 at 04:56:08PM -0500, David Malcolm wrote: > > Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. > > > > OK for trunk? > > Not an approval, but the patch LGTM -- it foll

[gcc r15-5928] c++: give suggestion on misspelled class name [PR116771]

2024-12-04 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:2576dd68a60b3f317f89c8c007d0eea63151a793 commit r15-5928-g2576dd68a60b3f317f89c8c007d0eea63151a793 Author: David Malcolm Date: Wed Dec 4 17:34:27 2024 -0500 c++: give suggestion on misspelled class name [PR116771] gcc/cp/ChangeLog: PR c++/116771

Ping^2: Re: [PATCH 0/3] Nested diagnostics for g++ [PR116253]

2024-12-04 Thread David Malcolm
Ping #2 for this kit: On Fri, 2024-11-22 at 17:21 -0500, David Malcolm wrote: > I'd like to ping this patch kit. > > I've already pushed "[PATCH 1/3] diagnostics: add support for nested > diagnostics [PR116253]" but was hoping for review from C++ > maintainers

[pushed: r15-5927] libgdiagnostics: documentation tweaks

2024-12-04 Thread David Malcolm
Pushed to trunk as r15-5927-g68aefc6988dc34. gcc/ChangeLog: * doc/libgdiagnostics/topics/execution-paths.rst: Add '§' before references to section of SARIF spec. * doc/libgdiagnostics/topics/fix-it-hints.rst: Likewise. * doc/libgdiagnostics/tutorial/01-hello-world.r

[gcc r15-5927] libgdiagnostics: documentation tweaks

2024-12-04 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:68aefc6988dc34d4b9a2194f9fb08bccfe7a076b commit r15-5927-g68aefc6988dc34d4b9a2194f9fb08bccfe7a076b Author: David Malcolm Date: Wed Dec 4 15:01:34 2024 -0500 libgdiagnostics: documentation tweaks gcc/ChangeLog: * doc/libgdiagnostics/topics

Re: [PATCH] arm: use quotes when referring to command-line options [PR90160]

2024-12-04 Thread David Malcolm
On Wed, 2024-12-04 at 11:22 +, Richard Earnshaw (lists) wrote: > On 26/11/2024 15:51, David Malcolm wrote: > > OK for trunk? > > OK > > > (caveat: I haven't done a full test on this patch) > > Linaro's CI has, it's clean. Thanks; pushed as r15-5922-ga0ac8fa55a4749.

[gcc r15-5922] arm: use quotes when referring to command-line options [PR90160]

2024-12-04 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:a0ac8fa55a4749979faa56a9e8bd389252edc89f commit r15-5922-ga0ac8fa55a4749979faa56a9e8bd389252edc89f Author: David Malcolm Date: Wed Dec 4 08:40:34 2024 -0500 arm: use quotes when referring to command-line options [PR90160] gcc/ChangeLog: PR

[pushed, wwwdocs] onlinedocs: add link to libgdiagnostics documentation

2024-12-03 Thread David Malcolm
Pushed, as libgdiagnostics API docs are now up on gcc.gnu.org --- htdocs/onlinedocs/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/onlinedocs/index.html b/htdocs/onlinedocs/index.html index d3fa24c6..07e3de17 100644 --- a/htdocs/onlinedocs/index.html +++ b/htdocs/onlinedocs

gcc-wwwdocs branch master updated. ab5a071cd63d5eca2030cca01758337044644f45

2024-12-03 Thread David Malcolm via Gcc-cvs-wwwdocs
--- commit ab5a071cd63d5eca2030cca01758337044644f45 Author: David Malcolm Date: Tue Dec 3 16:16:46 2024 -0500 onlinedocs: add link to libgdiagnostics documentation diff --git a/htdocs/onlinedocs/index.html b/htdocs/onlinedocs/index.html index d3fa24c6..07e3de17 100644 --- a/htdocs/onlinedocs/index.html +++ b/htdocs/

Re: [PATCH v3 4/7] Support for 64-bit location_t: libgdiagnostics parts

2024-12-03 Thread David Malcolm
On Mon, 2024-12-02 at 19:56 -0500, Lewis Hyatt wrote: > On Mon, Dec 02, 2024 at 07:35:12PM -0500, David Malcolm wrote: > > On Sun, 2024-12-01 at 19:44 -0500, Lewis Hyatt wrote: > > > This patch is new in v3 and is a small change to libgdiagnostics > > > similar to >

[gcc r15-5901] maintainer-scripts: fix jit docs on website

2024-12-03 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:168f938b8f2aab5c0443b02404d004ed4298651f commit r15-5901-g168f938b8f2aab5c0443b02404d004ed4298651f Author: David Malcolm Date: Tue Dec 3 13:53:42 2024 -0500 maintainer-scripts: fix jit docs on website I noticed whilst working on the libgdiagnostics docs

[gcc r15-5902] maintainer-scripts: build the libgdiagnostics docs for the website [PR117883]

2024-12-03 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:e6e4cb34e30f25adfb57e998663a8a1796b8573c commit r15-5902-ge6e4cb34e30f25adfb57e998663a8a1796b8573c Author: David Malcolm Date: Tue Dec 3 13:53:46 2024 -0500 maintainer-scripts: build the libgdiagnostics docs for the website [PR117883] maintainer-scripts

[PATCH 1/2] maintainer-scripts: fix jit docs on website

2024-12-03 Thread David Malcolm
/ChangeLog: * update_web_docs_git: Add the jit testsuite to the files to be preserved, since this is used by the jit docs. Signed-off-by: David Malcolm --- maintainer-scripts/update_web_docs_git | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintainer-scripts/update_web_docs_git b/

[PATCH 2/2] maintainer-scripts: build the libgdiagnostics docs for the website [PR117883]

2024-12-03 Thread David Malcolm
libgdiagnostics docs as HTML. Copy them into $DOCSDIR. Signed-off-by: David Malcolm --- maintainer-scripts/update_web_docs_git | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts

[pushed] libgdiagnostics: fix docs metadata

2024-12-03 Thread David Malcolm
Pushed to trunk as r15-5898-g2b93d71b068b2f. gcc/ChangeLog: * doc/libgdiagnostics/conf.py: Remove "author". Change "copyright" field to the FSF. Signed-off-by: David Malcolm --- gcc/doc/libgdiagnostics/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[gcc r15-5898] libgdiagnostics: fix docs metadata

2024-12-03 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:2b93d71b068b2f5be134350697fb075d72d01163 commit r15-5898-g2b93d71b068b2f5be134350697fb075d72d01163 Author: David Malcolm Date: Tue Dec 3 12:17:01 2024 -0500 libgdiagnostics: fix docs metadata gcc/ChangeLog: * doc/libgdiagnostics/conf.py: Remove

Re: [PATCH v3 4/7] Support for 64-bit location_t: libgdiagnostics parts

2024-12-02 Thread David Malcolm
On Sun, 2024-12-01 at 19:44 -0500, Lewis Hyatt wrote: > This patch is new in v3 and is a small change to libgdiagnostics > similar to > other changes required by 64-bit location_t. > > -- >8 -- > > Tweak libgdiagnostics.cc, which is necessarily sensitive to line-map > internals, to support 64-bit

[gcc r15-5873] libgdiagnostics: fix a missing rename in the docs

2024-12-02 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:e11c795b09a4b3238dd10e642b9cc406604ac95a commit r15-5873-ge11c795b09a4b3238dd10e642b9cc406604ac95a Author: David Malcolm Date: Mon Dec 2 17:29:56 2024 -0500 libgdiagnostics: fix a missing rename in the docs gcc/ChangeLog: * doc/libgdiagnostics

Re: libdiagnostics name clash

2024-11-29 Thread David Malcolm via Gcc
On Thu, 2024-11-28 at 03:56 +, Sam James wrote: > David Malcolm via Gcc writes: > > > I merged libdiagnostics to GCC trunk on Monday: > >   https://gcc.gnu.org/wiki/libdiagnostics > > > > Unfortunately I've since discovered there's at least one >

[pushed: r15-5811] Rename "libdiagnostics" to "libgdiagnostics"

2024-11-29 Thread David Malcolm
quot; to "libgdiagnostics". * libsarifreplay.h: Likewise. * sarif-replay.cc: Likewise. gcc/testsuite/ChangeLog: * libdiagnostics.dg/*: Rename to libgdiagnostics.dg, renaming "libdiagnostics" to "libgdiagnostics" throughout. Signed-off-by:

  1   2   3   4   5   6   7   8   9   10   >