[gcc r15-7317] sarif-replay: support "cached" logical locations [§3.33.3]

2025-02-01 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:cf24c0fa53870da6e666a97b79c4b053317c4951 commit r15-7317-gcf24c0fa53870da6e666a97b79c4b053317c4951 Author: David Malcolm Date: Sat Feb 1 08:38:13 2025 -0500 sarif-replay: support "cached" logical locations [§3.33.3] Some SARIF files offload most of the proper

[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:

[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 "there is"/"there

[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 followup to:

[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 -fdia

[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-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 * li

[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 contrib/ChangeLog: *

[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 b

[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 diagnostic_manager_new_logical_loca

[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/ChangeLog

[gcc r15-5575] json parsing: avoid relying on floating point equality [PR117677]

2024-11-21 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:4574f15bb305204fb615756148da8f214156c787 commit r15-5575-g4574f15bb305204fb615756148da8f214156c787 Author: David Malcolm Date: Thu Nov 21 14:36:23 2024 -0500 json parsing: avoid relying on floating point equality [PR117677] gcc/ChangeLog: PR boots

[gcc r15-5574] testsuite: add print-stack.exp

2024-11-21 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:b599498e1842ef00a298d7c423a2dcd3859a3bca commit r15-5574-gb599498e1842ef00a298d7c423a2dcd3859a3bca Author: David Malcolm Date: Thu Nov 21 14:36:16 2024 -0500 testsuite: add print-stack.exp I wrote this support file to help me debug Tcl issues in the tests

[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 c

[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-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-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/Chan

[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 t

[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 th

[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 case of a bad c

[gcc r15-7126] jit: fix startup on aarch64

2025-01-22 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:27470f9a818538fadb0e458a272358c7141fcd8c commit r15-7126-g27470f9a818538fadb0e458a272358c7141fcd8c Author: David Malcolm Date: Wed Jan 22 08:35:41 2025 -0500 jit: fix startup on aarch64 libgccjit fails on startup on aarch64 (and probably other archs).

[gcc r15-7178] sarif-replay: respect prefix and suffix during installation [PR117670]

2025-01-24 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:d49667be2c2953c33086a02cac8729a550990c8c commit r15-7178-gd49667be2c2953c33086a02cac8729a550990c8c Author: David Malcolm Date: Fri Jan 24 10:20:11 2025 -0500 sarif-replay: respect prefix and suffix during installation [PR117670] gcc/ChangeLog: PR

[gcc r15-7179] jit: fix for write_reproducer [PR117886]

2025-01-24 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:4d18acf8023ba0495007aa7a6f36d5509a51760b commit r15-7179-g4d18acf8023ba0495007aa7a6f36d5509a51760b Author: David Malcolm Date: Fri Jan 24 10:20:16 2025 -0500 jit: fix for write_reproducer [PR117886] The original generated .c reproducer for PR jit/117886 did n

[gcc r15-7255] sarif output: escape braces in messages [PR118675]

2025-01-28 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:b4bd06774ced72d5f0059ec55022840ad3f37fa4 commit r15-7255-gb4bd06774ced72d5f0059ec55022840ad3f37fa4 Author: David Malcolm Date: Tue Jan 28 10:36:53 2025 -0500 sarif output: escape braces in messages [PR118675] gcc/ChangeLog: PR other/118675

[gcc r15-7256] input.cc: show line record indices in file_cache_slot::dump

2025-01-28 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:50c37516958319e10a137d2b3dba7b070523248a commit r15-7256-g50c37516958319e10a137d2b3dba7b070523248a Author: David Malcolm Date: Tue Jan 28 10:38:39 2025 -0500 input.cc: show line record indices in file_cache_slot::dump gcc/ChangeLog: * input.cc (fi

[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 diagnostics

[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: - distinguish between "

[gcc r15-7564] sarif-replay: handle the 'fixes' property (§3.27.30)

2025-02-15 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:d0d5204afff226ffc5d329b8e4734dda081dd9b4 commit r15-7564-gd0d5204afff226ffc5d329b8e4734dda081dd9b4 Author: David Malcolm Date: Sat Feb 15 08:18:19 2025 -0500 sarif-replay: handle the 'fixes' property (§3.27.30) This adds support to sarif-replay to display fix

[gcc r15-7562] sarif-replay: handle relatedLocations without messages (§3.27.22)

2025-02-15 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:79c311d42f846f3e65e012d66e5d8fde4c3b1958 commit r15-7562-g79c311d42f846f3e65e012d66e5d8fde4c3b1958 Author: David Malcolm Date: Sat Feb 15 08:15:58 2025 -0500 sarif-replay: handle relatedLocations without messages (§3.27.22) Given the .sarif output from e.g.:

[gcc r15-7563] sarif-replay: don't add trailing " [error]"

2025-02-15 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:d022a068e0c8587b2570147b738cb2781242f162 commit r15-7563-gd022a068e0c8587b2570147b738cb2781242f162 Author: David Malcolm Date: Sat Feb 15 08:17:09 2025 -0500 sarif-replay: don't add trailing " [error]" Our SARIF output supplies "error" for the rule ID for DK_

[gcc r15-7561] sarif-replay: display annotations as labelled ranges (§3.28.6) [PR118881]

2025-02-15 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:a1f63ea36e9c9f2f66980dccc76d18cf781716a7 commit r15-7561-ga1f63ea36e9c9f2f66980dccc76d18cf781716a7 Author: David Malcolm Date: Sat Feb 15 08:13:06 2025 -0500 sarif-replay: display annotations as labelled ranges (§3.28.6) [PR118881] In our .sarif output from e

[gcc r15-7515] jit: add "final override" to diagnostic sink [PR116613]

2025-02-13 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:6ac313525a1faecb9f39a0ba3240f7a9ead91dcc commit r15-7515-g6ac313525a1faecb9f39a0ba3240f7a9ead91dcc Author: David Malcolm Date: Thu Feb 13 18:10:47 2025 -0500 jit: add "final override" to diagnostic sink [PR116613] I added class jit_diagnostic_listener in r15-

[gcc r15-7657] sarif-replay: improve error for unescaped braces in messages (§3.11.5)

2025-02-20 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:5a30a3aba065f6e683bc429da44437676662e113 commit r15-7657-g5a30a3aba065f6e683bc429da44437676662e113 Author: David Malcolm Date: Thu Feb 20 17:10:53 2025 -0500 sarif-replay: improve error for unescaped braces in messages (§3.11.5) Spotted via https://github.com

[gcc r15-7659] diagnostics: add comments about global_dc

2025-02-20 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:4e9ee99647ebb9a7cab1497d78477f75d1157ac5 commit r15-7659-g4e9ee99647ebb9a7cab1497d78477f75d1157ac5 Author: David Malcolm Date: Thu Feb 20 17:10:54 2025 -0500 diagnostics: add comments about global_dc No functional change intended. gcc/ChangeLog:

[gcc r15-7658] sarif-replay: add testcase for empty input file

2025-02-20 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:c5f541e40aca2d36c8a2a731e6b811aa1ad9b38f commit r15-7658-gc5f541e40aca2d36c8a2a731e6b811aa1ad9b38f Author: David Malcolm Date: Thu Feb 20 17:10:54 2025 -0500 sarif-replay: add testcase for empty input file gcc/testsuite/ChangeLog: * sarif-replay.d

[gcc r15-7610] sarif output: fix alphabetization in sarif_scheme_handler::make_sink

2025-02-18 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:196e8dbddc509cd6f42f879b72934dfbdb470aa1 commit r15-7610-g196e8dbddc509cd6f42f879b72934dfbdb470aa1 Author: David Malcolm Date: Tue Feb 18 16:54:52 2025 -0500 sarif output: fix alphabetization in sarif_scheme_handler::make_sink No functional change intended.

[gcc r15-7611] analyzer: add more properties to sarif output

2025-02-18 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:fcdcccdbf809f918db354353ce3afd5b299f913c commit r15-7611-gfcdcccdbf809f918db354353ce3afd5b299f913c Author: David Malcolm Date: Tue Feb 18 16:54:57 2025 -0500 analyzer: add more properties to sarif output Add some more properties to the analyzer's sarif output

[gcc r15-7626] analyzer: handle more IFN_UBSAN_* as no-ops [PR118300]

2025-02-19 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:58b90139e093aeb5494627d92257a97aebb4a6d9 commit r15-7626-g58b90139e093aeb5494627d92257a97aebb4a6d9 Author: David Malcolm Date: Wed Feb 19 09:44:46 2025 -0500 analyzer: handle more IFN_UBSAN_* as no-ops [PR118300] Previously the analyzer treated IFN_UBSAN_BOUN

[gcc r15-7627] input: give file_cache_slot its own copy of the file path [PR118919]

2025-02-19 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:ee6619b1246b38cfb36f6efd931a6f475a9033c7 commit r15-7627-gee6619b1246b38cfb36f6efd931a6f475a9033c7 Author: David Malcolm Date: Wed Feb 19 09:46:43 2025 -0500 input: give file_cache_slot its own copy of the file path [PR118919] input.cc's file_cache was borrow

[gcc r15-8016] analyzer: support RAW_DATA_CST [PR117262]

2025-03-12 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:8015a72ae496401e05942f4d33c94aa45174f841 commit r15-8016-g8015a72ae496401e05942f4d33c94aa45174f841 Author: David Malcolm Date: Wed Mar 12 20:51:06 2025 -0400 analyzer: support RAW_DATA_CST [PR117262] gcc/analyzer/ChangeLog: PR analyzer/117262

[gcc r15-8447] diagnostics: fix crash in urlifier with -Wfatal-errors [PR119366]

2025-03-20 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:24b6d2014035073870d9d8dae9152fc16fc319fd commit r15-8447-g24b6d2014035073870d9d8dae9152fc16fc319fd Author: David Malcolm Date: Wed Mar 19 15:03:42 2025 -0400 diagnostics: fix crash in urlifier with -Wfatal-errors [PR119366] diagnostic_context's dtor assumed t

[gcc r15-8942] testsuite: fix broken dg directives

2025-03-26 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:a49d66f4e5e9cc5d133b25b022a09aa7f2a2162c commit r15-8942-ga49d66f4e5e9cc5d133b25b022a09aa7f2a2162c Author: David Malcolm Date: Wed Mar 26 17:39:32 2025 -0400 testsuite: fix broken dg directives Found by dg-lint. gcc/testsuite/ChangeLog: *

[gcc r15-8944] testsuite, powerpc: fix broken dg directives

2025-03-26 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:fc749717001436d49ed34aec6b034670f5a3fbcd commit r15-8944-gfc749717001436d49ed34aec6b034670f5a3fbcd Author: David Malcolm Date: Wed Mar 26 17:40:31 2025 -0400 testsuite, powerpc: fix broken dg directives Found by dg-lint. gcc/testsuite/ChangeLog:

[gcc r15-8943] testsuite, gomp: fix broken dg directives

2025-03-26 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:3b166100add9f00d6d8e2812cec86d6447ebf5dd commit r15-8943-g3b166100add9f00d6d8e2812cec86d6447ebf5dd Author: David Malcolm Date: Wed Mar 26 17:39:58 2025 -0400 testsuite, gomp: fix broken dg directives gcc/testsuite/ChangeLog: * c-c++-common/gomp/me

[gcc r15-8992] contrib: add dg-lint and libgdiagnostics.py [PR116163]

2025-03-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:8d6de758cca6d16eb930ac1a7008ee54ec5489d9 commit r15-8992-g8d6de758cca6d16eb930ac1a7008ee54ec5489d9 Author: David Malcolm Date: Thu Mar 27 19:46:20 2025 -0400 contrib: add dg-lint and libgdiagnostics.py [PR116163] Changed in v2: - eliminated COMMON_MISSPEL

[gcc r15-8993] testsuite: fix some malformed dg-require-* directives

2025-03-27 Thread David Malcolm via Gcc-cvs
https://gcc.gnu.org/g:c88abca94a6abba20ba0bea32a0192d28e6f04ed commit r15-8993-gc88abca94a6abba20ba0bea32a0192d28e6f04ed Author: David Malcolm Date: Thu Mar 27 20:00:29 2025 -0400 testsuite: fix some malformed dg-require-* directives gcc/testsuite/ChangeLog: * g++.dg/a

<    1   2   3