[PING #2] [PATCH] Improved diagnostics for casts and enums

2017-07-10 Thread Martin Sebor
Ping #2 of Volker's patch: https://gcc.gnu.org/ml/gcc-patches/2017-04/msg01576.html The patch reverts the format used in the output of enumerated types from the 'E {enum}' notation introduced in r247347 to just 'E' or to the standard 'enum E' with %#qT. Nathan, unless you have concerns with or

Re: [PATCH] Improved diagnostics for casts and enums

2017-06-20 Thread Martin Sebor
So here's the patch that reverts the special enum handling in type_to_string and uses %q#T instead of %qT for two casting-related diagnostics. Bootstrapped and regtested on x86_64-pc-linux-gnu. OK for trunk? The "E {enum}'" notation is still on trunk so it seems that this patch has never been

Re: [PATCH] Improved diagnostics for casts and enums

2017-04-30 Thread Volker Reichelt
On 28 Apr, Volker Reichelt wrote: > On 27 Apr, Martin Sebor wrote: >> On 04/27/2017 01:29 AM, Volker Reichelt wrote: >>> Hi, >>> >>> the following two patches aim at improving GCC's diagnostics to help >>> the user to get rid of old-style casts. While old-style pointer casts >>> are really bad and

Re: [PATCH] Improved diagnostics for casts and enums

2017-04-28 Thread Volker Reichelt
On 27 Apr, Martin Sebor wrote: > On 04/27/2017 01:29 AM, Volker Reichelt wrote: >> Hi, >> >> the following two patches aim at improving GCC's diagnostics to help >> the user to get rid of old-style casts. While old-style pointer casts >> are really bad and need to be weeded out quickly, old-style c

Re: [PATCH] Improved diagnostics for casts and enums

2017-04-27 Thread Martin Sebor
On 04/27/2017 01:29 AM, Volker Reichelt wrote: Hi, the following two patches aim at improving GCC's diagnostics to help the user to get rid of old-style casts. While old-style pointer casts are really bad and need to be weeded out quickly, old-style casts between arithmetic types are IMHO much m

Re: [PATCH] Improved diagnostics for casts and enums

2017-04-27 Thread Nathan Sidwell
On 04/27/2017 03:29 AM, Volker Reichelt wrote: Hi, the following two patches aim at improving GCC's diagnostics to help the user to get rid of old-style casts. While old-style pointer casts are really bad and need to be weeded out quickly, old-style casts between arithmetic types are IMHO much m

[PATCH] Improved diagnostics for casts and enums

2017-04-27 Thread Volker Reichelt
Hi, the following two patches aim at improving GCC's diagnostics to help the user to get rid of old-style casts. While old-style pointer casts are really bad and need to be weeded out quickly, old-style casts between arithmetic types are IMHO much more tolerable. The patches allow to easily distin