This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -remap: Should we remap before / after simplification?


On Mar 14, 2001, Neil Booth <neil@daikokuya.demon.co.uk> wrote:

> a/b/c/../d   -> a/b/d

> internally.  Now consider what happens in the case that "a/b/c" is a
> directory with header remappings.

Not only that: consider a GCC checked-out tree in which a few
top-level links have been created to a sibling `src' directory in
which binutils was checked out.  Then, run .../gcc/configure and try
to bootstrap them together with some 2.96 or newer GCC.

bfd won't build, because it simplifies .../gcc/bfd/../include
.../gcc/include, but GCC's include directory doesn't contain bfd's
headers.

Before simplifying a pathname, we should at least verify that they
have the same inode and device numbers.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]