-iprefix to accept paths without trailing '/'

Michael Meissner meissner@cygnus.com
Mon Feb 14 07:39:00 GMT 2000


On Sat, Feb 12, 2000 at 01:42:43PM +0900, Neil Booth wrote:
> Currently, -iprefix requires its argument to end in '/'.  With this
> patch it accepts paths with or without the trailing '/'.
> 
> Neil.
> 
> 
>         * cppinit.c (cpp_start_read): -iprefix to work without
> 	trailing '/'.  Remove unneeded alloca.

Wouldn't this break using -iprefix for a prefix that is not a directory, ie:

	gcc -iprefix /foo/bar/bletch- dummy.c

would find include files in:

	/foo/bar/bletch-include

Given the -B option already works this way (where it is a true prefix and
not a directory), I don't see a reason for -iprefix to be different.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482


More information about the Gcc-patches mailing list