This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Declarations after statements in front ends
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Bryce McKinlay <mckinlay at redhat dot com>, gcc at gcc dot gnu dot org
- Date: 20 Oct 2004 12:26:37 -0500
- Subject: Re: Declarations after statements in front ends
- Organization: Texas A&M University, Department of Computer Science
- References: <41768608.8040706@redhat.com> <87vfd5nx1p.fsf@codesourcery.com>
Zack Weinberg <zack@codesourcery.com> writes:
| Bryce McKinlay <mckinlay@redhat.com> writes:
|
| > Are C++/C99-style "declarations after statements" permitted in the non-C
| > front ends? Currently there are no warnings given, but I do recall
| > getting complaints in the past when my Java patches have used them.
| >
| > It seems to me that there is no reason not to allow them here, because
| > the other front ends wont be built until stage 2 when bootstrapping.
| > However, if we don't want to allow them (for stylistic reasons?) then
| > should -Wdeclarations-after-statements be enabled?
|
| I would go even farther, and say that *all* front ends must be coded
| in ISO C90,
I suppose you include Ada?
-- Gaby