Bug#505177: [PATCH 1/4] Set gcc include path at runtime.

2008-12-08 Thread Alexey zaytsev
You can now tell sparse where to look for the compiler headers with -gcc-base-dir dir. Otherwise sparse will look for headers used to build it. Also adds $GCC_BASE/include-fixed used by newer gcc versions. Signed-off-by: Alexey zaytsev [EMAIL PROTECTED] --- Makefile |7 ++-- lib.c

Bug#505177: [PATCH 0/4] Proper gcc header dir handling in sparse.

2008-12-08 Thread Alexey zaytsev
://git.zaytsev.su/git/sparse.git git-base-dir Also, the first two patches should fix the Debian bug 505177: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505177 --- Alexey zaytsev (4): Set gcc include path at runtime. Let cgcc pass -gcc-base-dir to sparse. Document -gcc-base-dir

Bug#505177: [PATCH 4/4] Rename dirafter to idirafter.

2008-12-08 Thread Alexey zaytsev
Dirafter was probably just a mistake. Gcc uses -idirafter. Signed-off-by: Alexey zaytsev [EMAIL PROTECTED] --- lib.c | 15 +-- pre-process.c |4 ++-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/lib.c b/lib.c index b579834..7adff2d 100644 --- a/lib.c

Bug#505177: [PATCH 2/4] Let cgcc pass -gcc-base-dir to sparse.

2008-12-08 Thread Alexey zaytsev
--- cgcc | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/cgcc b/cgcc index 89adbed..b59f7d6 100755 --- a/cgcc +++ b/cgcc @@ -10,9 +10,11 @@ my $has_specs = 0; my $gendeps = 0; my $do_check = 0; my $do_compile = 1; +my $gcc_base_dir; my $verbose = 0;

Bug#505177: [PATCH 3/4] Document -gcc-base-dir in sparse.1

2008-12-08 Thread Alexey zaytsev
Signed-off-by: Alexey zaytsev [EMAIL PROTECTED] --- sparse.1 |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/sparse.1 b/sparse.1 index d242dc7..92a1cae 100644 --- a/sparse.1 +++ b/sparse.1 @@ -287,6 +287,11 @@ However, this behavior can lead to subtle errors