Re: [C] Improve diagnostics for vector types

2019-09-30 Thread Joseph Myers
On Mon, 30 Sep 2019, Richard Sandiford wrote: > 2019-09-30 Richard Sandiford > > gcc/c-family/ > * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type > has a type name, use it in preference to the __vector syntax. > > gcc/testsuite/ > * gcc.dg/diag-aka-3.c: N

[C] Improve diagnostics for vector types

2019-09-30 Thread Richard Sandiford
Given the following invalid arm_neon.h-based code: float x; int8x8_t y = x; the error message we emit is pretty good: incompatible types when initializing type 'int8x8_t' using type 'float' But convert the types to pointers: int8x8_t *ptr = &x; and the message becomes: initializati