]> gcc.gnu.org Git - gcc.git/commit
dwarf2out.c (prefix_of): New function.
authorUlrich Drepper <drepper@gcc.gnu.org>
Thu, 25 Jan 2001 00:18:16 +0000 (00:18 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Thu, 25 Jan 2001 00:18:16 +0000 (00:18 +0000)
commite57cabac809559538ae7f3bf2866b66401a321e7
tree5bd79f238424aed5db38184eae8d9364f0875614
parentc499d4d23ae57bc5705db8eb991fa938b6933298
dwarf2out.c (prefix_of): New function.

* dwarf2out.c (prefix_of): New function.  Determine longest common
prefix of the two arguments.  The units are whole path components.
(output_file_names): When adding a new directory find the one entry
with the longest common prefix already in the list.  Artificially
generate entry if there is none for this prefix.
Fix test to check whether the zeroth directory entry is used.
: ----------------------------------------------------------------------

From-SVN: r39253
gcc/ChangeLog
gcc/dwarf2out.c
This page took 0.055271 seconds and 5 git commands to generate.