This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC's statement expression extension
On Thu, Jul 27, 2000 at 06:38:00PM -0700, Mark Mitchell wrote:
> On the other hand, the arguments Michael makes apply to almost any
> extension, and I do not agree, by any means, that we must preserve all
> extensions for all time. The same argument justifies preserving many
> bugs; every time we issue an error that we did not before, we break
> programs.
That's why any extension should be considered carefully before being put in.
Speaking of the embedded world, I would say the following extensions are used
extensively:
Statement expressions
Long long (but hey, this is no longer an extension in C99)
Variable attributes
Inline
Function attributes
Extended asm
Asm labels
Explicit Reg Vars
I know there are people using Labels as Values to speed up state machines like
simulators.
I don't have a handle on the usage of the other extensions.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482