Re: RFC: case insensitive for #include

2009-01-29 Thread Chris Lattner
On Jan 28, 2009, at 12:24 PM, H.J. Lu wrote: On Wed, Jan 28, 2009 at 12:21 PM, Chris Lattner wrote: On Jan 28, 2009, at 11:51 AM, H.J. Lu wrote: Hi, I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comments? I strongly recommend against thi

Re: RFC: case insensitive for #include

2009-01-28 Thread Ian Lance Taylor
"H.J. Lu" writes: > Say I have > > #include "Foo/Foo.h" > > I want to map it to foo/foo.h on disk. Can I map Foo to foo with > header.gcc in directory, foo? Yes. Put this at top level (i.e., in the same directory where the directory "foo" is): Foo/Foo.h foo/foo.h Then #include "Foo/Foo.h" wil

Re: RFC: case insensitive for #include

2009-01-28 Thread H.J. Lu
On Wed, Jan 28, 2009 at 12:48 PM, Ian Lance Taylor wrote: > "H.J. Lu" writes: > >> On Wed, Jan 28, 2009 at 12:32 PM, Ian Lance Taylor wrote: >>> "H.J. Lu" writes: >>> I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comme

Re: RFC: case insensitive for #include

2009-01-28 Thread Ian Lance Taylor
"H.J. Lu" writes: > On Wed, Jan 28, 2009 at 12:32 PM, Ian Lance Taylor wrote: >> "H.J. Lu" writes: >> >>> I got a request to try "FOO.H" if foo.h doesn't exist when dealing >>> with >>> >>> #include "foo.h" >>> >>> Any comments? >> >> Please, no. >> >> They could use header.gcc instead. >> >> h

Re: RFC: case insensitive for #include

2009-01-28 Thread H.J. Lu
On Wed, Jan 28, 2009 at 12:32 PM, Ian Lance Taylor wrote: > "H.J. Lu" writes: > >> I got a request to try "FOO.H" if foo.h doesn't exist when dealing >> with >> >> #include "foo.h" >> >> Any comments? > > Please, no. > > They could use header.gcc instead. > > http://gcc.gnu.org/onlinedocs/cppinte

Re: RFC: case insensitive for #include

2009-01-28 Thread David Daney
H.J. Lu wrote: On Wed, Jan 28, 2009 at 12:21 PM, Chris Lattner wrote: On Jan 28, 2009, at 11:51 AM, H.J. Lu wrote: Hi, I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comments? I strongly recommend against this, unless this is only a "last chan

Re: RFC: case insensitive for #include

2009-01-28 Thread Ian Lance Taylor
"H.J. Lu" writes: > I got a request to try "FOO.H" if foo.h doesn't exist when dealing > with > > #include "foo.h" > > Any comments? Please, no. They could use header.gcc instead. http://gcc.gnu.org/onlinedocs/cppinternals/Files.html Ian

Re: RFC: case insensitive for #include

2009-01-28 Thread H.J. Lu
On Wed, Jan 28, 2009 at 12:21 PM, Chris Lattner wrote: > > On Jan 28, 2009, at 11:51 AM, H.J. Lu wrote: > >> Hi, >> >> I got a request to try "FOO.H" if foo.h doesn't exist when dealing >> with >> >> #include "foo.h" >> >> Any comments? > > I strongly recommend against this, unless this is only a

Re: RFC: case insensitive for #include

2009-01-28 Thread Chris Lattner
On Jan 28, 2009, at 11:51 AM, H.J. Lu wrote: Hi, I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comments? I strongly recommend against this, unless this is only a "last chance" fall back. From a performance standpoint, if you have -Idir1 -I

Re: RFC: case insensitive for #include

2009-01-28 Thread H.J. Lu
On Wed, Jan 28, 2009 at 12:03 PM, David Daney wrote: > H.J. Lu wrote: >> >> Hi, >> >> I got a request to try "FOO.H" if foo.h doesn't exist when dealing >> with >> >> #include "foo.h" >> >> Any comments? >> > > How about "Foo.h", "FOo.H", etc.? > > I have found as many errors with mixed case screw

Re: RFC: case insensitive for #include

2009-01-28 Thread David Daney
H.J. Lu wrote: Hi, I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comments? How about "Foo.h", "FOo.H", etc.? I have found as many errors with mixed case screw-ups as with the 'single case' variety you mention. Would you want to make it full

RFC: case insensitive for #include

2009-01-28 Thread H.J. Lu
Hi, I got a request to try "FOO.H" if foo.h doesn't exist when dealing with #include "foo.h" Any comments? Thanks. -- H.J.