Chris Lattner wrote:-
> Author: lattner
> Date: Sun Nov 29 22:18:44 2009
> New Revision: 90110
>
> URL: http://llvm.org/viewvc/llvm-project?rev=90110&view=rev
> Log:
> Fix PR5633 by making the preprocessor handle the case where we can
> stat a file but where mmaping it fails. In this case, we emit an
> error like:
> t.c:1:10: fatal error: error opening file '../../foo.h'
>
> instead of "cannot find file".
Thanks Chris. It's nice to retain errno and use strerror for
these; it's not always obvious what the issue is. Mine gives
the following in this example.
Neil.
"/tmp/bug.c", line 1: fatal error: cannot read "/tmp/stdio.h":
Permission denied
#include <stdio.h>
^--------
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits