On 12.08.2015 18:29, Alan Cox wrote: > On Tue, 11 Aug 2015 16:16:43 +0200 > Philipp Klaus Krause <p...@spth.de> wrote: > >> In standard C, each label has to be followed by a statement. HTis makes >> a difference at the end of compoud statements. >> >> Not allowed: >> { >> label: >> } >> >> Allowed: >> { >> label:; >> } >> >> SDCC currently allows both. The comment in SDCC.y makes it clear, that >> this is a deliberate extension. > > It's one almost every compiler accepts from the original K&R compiler > through to gcc (although in more pedantic modes gcc bitches about it > nowdays) > >> I would like to drop support for this non-standard extension. IMO >> non-standard extensions should only be supported in SDCC where they >> provide a substantial advantage, which IMO, is not the ccase here. > > It's "defacto" C even if not standard C. I don't think describing it as > an "extension" is even an accurate description. It's tolerating a 'quirk' > of the language much accepted by compilers. > > Does it cause complications to make it just warn instead ? > > Alan
I now made it a warning in revision #9297. Philipp
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user