aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@bothner.com>2006-06-01 16:36:25 +0000
committerPer Bothner <bothner@gcc.gnu.org>2006-06-01 09:36:25 -0700
commit112598f4055927b05300a829cb676c902038e44f (patch)
treea8b5d4d47331052cd02606b8c8ac601713785275 /gcc/c-opts.c
parent45a82bd9573cb4b385dca060f340d535b2c04e5f (diff)
downloadgcc-112598f4055927b05300a829cb676c902038e44f.zip
gcc-112598f4055927b05300a829cb676c902038e44f.tar.gz
gcc-112598f4055927b05300a829cb676c902038e44f.tar.bz2
Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
* c-opts.c (finish_options): Use internal line 0 for <command-line>. * c-ppoutput.c (cb_define): Don't increment line 0. From-SVN: r114311
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index ea631b0..2937b79 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1373,7 +1373,10 @@ finish_options (void)
their acceptance on the -std= setting. */
cpp_opts->warn_dollars = (cpp_opts->pedantic && !cpp_opts->c99);
- cpp_change_file (parse_in, LC_RENAME, _("<command line>"));
+ cb_file_change (parse_in,
+ linemap_add (&line_table, LC_RENAME, 0,
+ _("<command-line>"), 0));
+
for (i = 0; i < deferred_count; i++)
{
struct deferred_opt *opt = &deferred_opts[i];