Re:GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overf...
by binary132 on Wednesday April 03, 2024 @01:38PM
(#39920502)
Wait, really? That’s awesome
[ Parent
| on HN ]
Re:GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overf...
by dmalcolm on Wednesday April 03, 2024 @02:49PM
(#39921407)
Thanks!
More details here: https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Format...
I hope my choices here work well on a wide variety of terminals.
Re:GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overf...
by ephaeton on Thursday April 04, 2024 @02:34AM
(#39927200)
I'd appreciate dropping red/green as bad/good colorscheme. red & green feed one of the most common visual impairments, and tend to work quite bad with terminal fg/bg colors throughout the spectrum except for its ends (black & white). Maybe you have some color profile descriptor somewhere that a user can change, but a quick search through info gcc (of my installed version) just shows the ability to turn it on & off (-fdiagnostics-color=[auto|never|always]).
Color is definitely one of the things that do NOT work well on a wide variety of terminals. try a white-on-firebrick VTE, or a black-on-darkgoldenrod (awesome for sun-glare, btw), white-on-green, white-on-purple for a change to see how well they mingle...
Re:GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overf...
by dmalcolm on Thursday April 04, 2024 @10:59AM
(#39931275)
Good point. I took a look, and it appears I hardcoded it, rather than going through our normal color management.
Sorry about that. I've filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114588 about this and I'll try to get it fixed before GCC 14 releases properly (i.e. for GCC 14.1)