public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* g++ and gcc behave differently
@ 1998-08-15  7:52 David S. Miller
  1998-08-15 17:46 ` Jeffrey A Law
  0 siblings, 1 reply; 6+ messages in thread
From: David S. Miller @ 1998-08-15  7:52 UTC (permalink / raw)
  To: egcs-bugs

When given just the '-v' option they act not the same:

? ./g++ -B./ -v
Reading specs from ./specs
gcc version egcs-2.92.00 19980815 (gcc2 ss-980609 experimental)
g++: No input files
^^^^^^^^^^^^^^^^^^^

? ./xgcc -B./ -v
Reading specs from ./specs
gcc version egcs-2.92.00 19980815 (gcc2 ss-980609 experimental)

Later,
David S. Miller
davem@dm.cobaltmicro.com


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

* Re: g++ and gcc behave differently
  1998-08-15  7:52 g++ and gcc behave differently David S. Miller
@ 1998-08-15 17:46 ` Jeffrey A Law
  1998-08-15 20:43   ` Mumit Khan
  0 siblings, 1 reply; 6+ messages in thread
From: Jeffrey A Law @ 1998-08-15 17:46 UTC (permalink / raw)
  To: David S. Miller; +Cc: egcs-bugs

  In message < 199808151450.HAA28720@dm.cobaltmicro.com >you write:
  > 
  > When given just the '-v' option they act not the same:
  > 
  > ? ./g++ -B./ -v
  > Reading specs from ./specs
  > gcc version egcs-2.92.00 19980815 (gcc2 ss-980609 experimental)
  > g++: No input files
  > ^^^^^^^^^^^^^^^^^^^
  > 
  > ? ./xgcc -B./ -v
  > Reading specs from ./specs
  > gcc version egcs-2.92.00 19980815 (gcc2 ss-980609 experimental)
Yes.  Feel free to fix it.  Though I don't know which one we want
to be the default.  Actually one could argue that the way g77 -v
works ought to be the default

jeff


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

* Re: g++ and gcc behave differently
  1998-08-15 17:46 ` Jeffrey A Law
@ 1998-08-15 20:43   ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1998-08-15 20:43 UTC (permalink / raw)
  To: egcs-bugs

Jeffrey A Law <law@cygnus.com> writes:
> 
> Yes.  Feel free to fix it.  Though I don't know which one we want
> to be the default.  Actually one could argue that the way g77 -v
> works ought to be the default

Not as long as it insists on using /dev/null, which is meaningless on 
certain non-Unix platforms.

Mumit


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

* Re: g++ and gcc behave differently
  1998-08-17  7:09 ` Craig Burley
@ 1998-08-17 20:33   ` Jeffrey A Law
  0 siblings, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1998-08-17 20:33 UTC (permalink / raw)
  To: Craig Burley; +Cc: mrs, davem, egcs-bugs

  In message < 199808171403.KAA04041@melange.gnu.org >you write:
  > E.g. now that I've seen `gcc --help' vs. `gcc --verbose --help',
  > I think maybe `gcc --version' should perhaps produce what
  > `gcc -v' now does, and `gcc --verbose --version' what `g77 -v'
  > now does, except perhaps it'd invoke *all* the drivers or only the
  > cc1 instead of the f771.
  > 
  > Seems to me `gcc -v', being shorthand for `gcc --verbose', should
  > just produce a version number and then "No input files" or whatever
  > `gcc' by itself would produce.
I like it!

  > That's just one suggestion, though, and unfortunately it is
  > incompatible with past behavior and expectation, although I think
  > it's more compatible with GNU Coding Standards (which I haven't
  > read for some time).
Bringing gcc closer to the GNU standards is a good thing.  It's the
exception to the GNU standards in far too many areas. 

  > At that point, perhaps some of g77spec.c's internal differences
  > vis-a-vis g++spec.c's can be made use of one way or the other.
  > E.g. some of g77spec.c's abstractions might be worth hoisting into
  > gcc.c itself, making the *spec.c files smaller or, at least,
  > easier to maintain.
I suspect this will be the case, no need to implement the same stuff
over and over in different places.

jeff


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

* Re: g++ and gcc behave differently
  1998-08-16 11:18 Mike Stump
@ 1998-08-17  7:09 ` Craig Burley
  1998-08-17 20:33   ` Jeffrey A Law
  0 siblings, 1 reply; 6+ messages in thread
From: Craig Burley @ 1998-08-17  7:09 UTC (permalink / raw)
  To: mrs; +Cc: burley

>> Yes.  Feel free to fix it.  Though I don't know which one we want
>> to be the default.  Actually one could argue that the way g77 -v
>> works ought to be the default
>
>Ouch, oh man, is that one nice.  :-) It wouldn't be bad if we all did
>it that way.

I think before we try to copy g77's approach around to other
drivers (after 1.1, obviously ;-), we should discuss how we
really *want* these things to work, vis-a-vis their design.

E.g. now that I've seen `gcc --help' vs. `gcc --verbose --help',
I think maybe `gcc --version' should perhaps produce what
`gcc -v' now does, and `gcc --verbose --version' what `g77 -v'
now does, except perhaps it'd invoke *all* the drivers or only the
cc1 instead of the f771.

Seems to me `gcc -v', being shorthand for `gcc --verbose', should
just produce a version number and then "No input files" or whatever
`gcc' by itself would produce.

That's just one suggestion, though, and unfortunately it is
incompatible with past behavior and expectation, although I think
it's more compatible with GNU Coding Standards (which I haven't
read for some time).

Once we agree on a design, we can then worry about how to implement
it portably.

At that point, perhaps some of g77spec.c's internal differences
vis-a-vis g++spec.c's can be made use of one way or the other.
E.g. some of g77spec.c's abstractions might be worth hoisting into
gcc.c itself, making the *spec.c files smaller or, at least,
easier to maintain.

        tq vm, (burley)


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

* Re: g++ and gcc behave differently
@ 1998-08-16 11:18 Mike Stump
  1998-08-17  7:09 ` Craig Burley
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Stump @ 1998-08-16 11:18 UTC (permalink / raw)
  To: davem, law; +Cc: egcs-bugs

> To: "David S. Miller" <davem@dm.cobaltmicro.com>
> cc: egcs-bugs@cygnus.com
> Date: Sat, 15 Aug 1998 18:42:45 -0600
> From: Jeffrey A Law <law@cygnus.com>

> Yes.  Feel free to fix it.  Though I don't know which one we want
> to be the default.  Actually one could argue that the way g77 -v
> works ought to be the default

Ouch, oh man, is that one nice.  :-) It wouldn't be bad if we all did
it that way.


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

end of thread, other threads:[~1998-08-17 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-15  7:52 g++ and gcc behave differently David S. Miller
1998-08-15 17:46 ` Jeffrey A Law
1998-08-15 20:43   ` Mumit Khan
1998-08-16 11:18 Mike Stump
1998-08-17  7:09 ` Craig Burley
1998-08-17 20:33   ` Jeffrey A Law

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).