Re: [PATCH] Fix PR19315.

2018-08-14 Thread Joseph Myers
On Tue, 14 Aug 2018, Iain Sandoe wrote: > 2018-08-14 Iain Sandoe > > gcc/c: > > PR c/19315 > * c-decl.c (finish_decl): Don't add the 'extern' storage class to > objects of unknown size. > > gcc/testsuite: > > PR c/19315 > gcc.dg/graphite/pr82451.c: Make array 'a

[PATCH] Fix PR19315.

2018-08-14 Thread Iain Sandoe
Hi, As noted in the PR, GCC C currently has an "undocumented extension" that silently makes zero-sized static objects into 'extern' as well as 'static’. The warning that would normally be emitted is suppressed without ‘-pedantic’. This means that they don't get allocated (appearing in the objec