public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* an option to enable C9X features
@ 1998-03-09 21:39 Jim Wilson
  1998-03-10  2:14 ` Richard Earnshaw
       [not found] ` <199803101012.KAA20052.cygnus.egcs@sun52.NIS.cambridge>
  0 siblings, 2 replies; 7+ messages in thread
From: Jim Wilson @ 1998-03-09 21:39 UTC (permalink / raw)
  To: egcs

We need one.  Preferably, we want something that the gcc2 group will also
accept, so that we can avoid command line incompatibilities between gcc2 and
egcs.  I'm volunteering to take up this issue with the gcc2 group, but first,
I thought I would ask for comments here.

I believe that there have been two previous suggestions.  Ulrich Drepper
suggested these options
	-iso-c (defaults to c89)
	-iso-c=89
	-iso-c=9X
Paul Eggert suggested a more complete set of options
	-std=c9x		C9x
	-std=gnu		GNU C (the default)
	-std=iso9899:1990	ANSI C X3.159-1989 / ISO/IEC C 9899:1990
	-std=iso9899:199409	ANSI C as modified by Normative Addendum 1
	-std=iso9899:199?	equivalent to -std=c9x, whenever it comes out
	-std=lia1		LIA-1
	-std=traditional	K&R C

	-ansi			equivalent to -std=iso9899:1990
	-traditional		equivalent to -std=traditional

Both of them seem reasonable, but I'm inclined to propose the -std=X options
first, because they give us more flexibility, and would allow us to also
handle for instance C++ and Fortran standards the same way.  I don't like
the colons though.  If we can't get the gcc2 folks to accept that, though,
then I think that the -iso-c=X options are a reasonable compromise that
would allow us to start adding C9X features.

Jim

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: an option to enable C9X features
@ 1998-03-21 13:50 Mike Stump
  1998-03-25 14:18 ` Jim Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Stump @ 1998-03-21 13:50 UTC (permalink / raw)
  To: egcs, wilson

> To: egcs@cygnus.com
> Date: Mon, 09 Mar 1998 18:53:32 -0800
> From: Jim Wilson <wilson@cygnus.com>

> 	-std=gnu		GNU C (the default)
> 	-std=iso9899:1990	ANSI C X3.159-1989 / ISO/IEC C 9899:1990
> 	-std=iso9899:199409	ANSI C as modified by Normative Addendum 1

I like the flexibility of the longer options, but I wonder if we
should force dumb users to type such long names, or are we secretly
discouraging the use of any ISO standard?  :-)/2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-03-25 14:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-09 21:39 an option to enable C9X features Jim Wilson
1998-03-10  2:14 ` Richard Earnshaw
1998-03-10 10:28   ` Richard Henderson
1998-03-11 11:04     ` Jim Wilson
     [not found] ` <199803101012.KAA20052.cygnus.egcs@sun52.NIS.cambridge>
1998-03-10 10:28   ` Ulrich Drepper
1998-03-21 13:50 Mike Stump
1998-03-25 14:18 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).