[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-09-13 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 Tom de Vries changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-09-13 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 --- Comment #6 from Tom de Vries --- Author: vries Date: Thu Sep 13 10:27:12 2018 New Revision: 264267 URL: https://gcc.gnu.org/viewcvs?rev=264267=gcc=rev Log: [debug] DWARF: add DW_AT_count to zero-length arrays 2018-09-13 Omar Sandoval

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-09-04 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #5 from Tom de Vries

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-08-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-08-16 Thread osandov at osandov dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 --- Comment #3 from Omar Sandoval --- They are not equivalent in GCC, see https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html. In particular, flexible arrays cannot be the only member in a struct, cannot be a member of a union, cannot be used as

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-08-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 --- Comment #2 from Andrew Pinski --- Considering GCC considers zero length array as the same as flexible array types, I don't think this is really an issue. >this fails in some cases where zero-length and flexible array types are not

[Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types

2018-08-16 Thread osandov at osandov dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985 --- Comment #1 from Omar Sandoval --- Posted a patch here: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00994.html.