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
://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
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
---
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;
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
5 matches
Mail list logo