> Why can't gcc/cppfiles.c(cpp_simplify_path) and static support function > remove_component_p be moved to libiberty, with necessary adjustments to > cpplib, and used as default for lrealpath? It could. IIRC I tried something like this once, and there was complaints that we didn't want symlinks resolved in some cases.