This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in dwarf2out.c:output_file_names()
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: Bug in dwarf2out.c:output_file_names()
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 22 Jan 2001 14:09:03 -0800
- Cc: gcc at gcc dot gnu dot org, gdb at sources dot redhat dot com, rth at redhat dot com
- References: <200101222154.f0MLs4w00298@delius.kettenis.local>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Mark Kettenis <kettenis@wins.uva.nl> writes:
> idx_offset = dirs[0].length > 0 ? 1 : 0;
>
> work? It seems to do so for me, although I didn't run the testsuite.
> A patch is attached, feel free to use it.
I think the patch is correct. The sorting function ensures that all
entries without a directory part come first and this test is there to
check for these entries. But some gcc person has to say it's OK, too.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------