Don't compile preprocessed source code when using -g3

This fixes bug #7190.
This commit is contained in:
Joel Rosdahl 2010-03-04 21:39:34 +01:00
parent 106533eab5
commit 574ab5a9af
2 changed files with 10 additions and 0 deletions

3
NEWS
View File

@ -98,6 +98,9 @@ Changes since ccache 2.4:
- Added support for -Wp,-MD and -Wp,-MMD options.
- Debug information containing line numbers of predefined and command-line
macros (enabled with the compiler option -g3) will now be correct.
- Corrected LRU cleanup handling of object files.
- utimes() is now used instead of utime() when available.

View File

@ -1248,6 +1248,13 @@ static void process_args(int argc, char **argv)
if (strcmp(argv[i], "-g0") != 0) {
enable_unify = 0;
}
if (strcmp(argv[i], "-g3") == 0) {
/*
* Fix for bug 7190 ("commandline macros (-D)
* have non-zero lineno when using -g3").
*/
compile_preprocessed_source_code = 0;
}
continue;
}