diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-08 14:30:27 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-08 14:30:27 +0000 |
commit | 9180150b3485aaf60addc14e28f1a9db09a087c3 (patch) | |
tree | 5a516473cd27a6047c4eca7f1026ca6583a53e43 /gcc/diagnostic.c | |
parent | 19e96b445262ef28b32cde4ef6010311281776da (diff) | |
download | gcc-9180150b3485aaf60addc14e28f1a9db09a087c3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202366 138bc75d-0d04-0410-961f-82ee72b054a4
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 87c002a498a..295bbb6e045 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) |