diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2013-09-08 14:30:27 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-09-08 14:30:27 +0000 |
commit | 97f1f314feae938cf854af1ab844196383d0ddc2 (patch) | |
tree | 5a516473cd27a6047c4eca7f1026ca6583a53e43 /gcc/diagnostic.c | |
parent | 2e6a2f88ac8504443ea4bca87eb478228b57e4e1 (diff) | |
download | gcc-97f1f314feae938cf854af1ab844196383d0ddc2.zip gcc-97f1f314feae938cf854af1ab844196383d0ddc2.tar.gz gcc-97f1f314feae938cf854af1ab844196383d0ddc2.tar.bz2 |
re PR c++/54941 (do not print line/column numbers for <built-in>:0:0)
2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54941
* diagnostic.c (diagnostic_build_prefix): When s.file is
"<built-in>" don't output line and column numbers.
/testsuite
2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54941
* g++.dg/overload/new1.C: Adjust.
From-SVN: r202366
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 87c002a..295bbb6 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -245,6 +245,9 @@ diagnostic_build_prefix (diagnostic_context *context, (s.file == NULL ? build_message_string ("%s%s:%s %s%s%s", locus_cs, progname, locus_ce, text_cs, text, text_ce) + : !strcmp (s.file, N_("<built-in>")) + ? build_message_string ("%s%s:%s %s%s%s", locus_cs, s.file, locus_ce, + text_cs, text, text_ce) : context->show_column ? build_message_string ("%s%s:%d:%d:%s %s%s%s", locus_cs, s.file, s.line, s.column, locus_ce, text_cs, text, text_ce) |