Re: option + argument in 1 or 2 words (was: getting the list of input files of a gcc command line)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 06, 2018 at 05:47:10PM +0100, Vincent Lefevre wrote:
> On 2018-12-06 09:54:00 -0600, Segher Boessenkool wrote:
> > On Thu, Dec 06, 2018 at 03:26:20AM +0100, Vincent Lefevre wrote:
> > > However, I probably wouldn't miss any input file, because all of them
> > > are actually full arguments (i.e. nothing like -Idir for files). If
> > > the wrapper considers other files like in "-o that.o", this is not an
> > > issue, because it is unlikely that such files have been opened in a
> > > text editor, and directories are not an issue either since one can
> > > easily skip them.
> > 
> > It won't miss any input files from people who didn't write weird command
> > lines.  But, for example, you can do "gcc a.c -includea.h" (note no space
> > after the -include), and that works.
> 
> Isn't this a bug? I thought that this was allowed only with options
> with a single letter, like -I.

But is this a bug that is worth fixing?  No doubt people use it
(unknowingly), given how old this is.  Shouldn't be done in stage 3,
in any case.


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux