[PATCH] Fix pretty printing of array types

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Apr 20 00:56:00 GMT 2006

Jakub Jelinek <jakub@redhat.com> writes:

| Hi!
| As shown on the testcase below, c-pretty-print.c currently prints for array
| types the max index value rather than the size of the array, so GCC warns
| about packed attribute being ignored for field of type `unsigned char[0u]'
| when the type is actually unsigned char[1], etc.
| The following patch fixes that, ok for trunk?

Thanks for correcting my silly mistake.

-- Gaby

More information about the Gcc-patches mailing list