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 | |
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')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/diagnostic.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/overload/new1.C | 1 |
5 files changed, 18 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71280ae..0b66ad6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,8 @@ -2013-09-08 Tom de Vries <tom@codesourcery.com> +2013-09-08 Paolo Carlini <paolo.carlini@oracle.com> - PR c++/58282 - * except.c (build_must_not_throw_expr): Handle - flag_exceptions. + PR c++/54941 + * diagnostic.c (diagnostic_build_prefix): When s.file is + "<built-in>" don't output line and column numbers. 2013-09-06 Jan Hubicka <jh@suse.cz> diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index af230f57..8ab8698 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2013-09-08 Tom de Vries <tom@codesourcery.com> + + PR c++/58282 + * except.c (build_must_not_throw_expr): Handle + flag_exceptions. + 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> * typeck.c (cp_build_binary_op): Use vector_types_compatible_elements_p. 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) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da1e8a93..21b761c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-09-08 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/54941 + * g++.dg/overload/new1.C: Adjust. + 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> * c-c++-common/opaque-vector.c: New test. diff --git a/gcc/testsuite/g++.dg/overload/new1.C b/gcc/testsuite/g++.dg/overload/new1.C index 9adb4c0..f1b7328 100644 --- a/gcc/testsuite/g++.dg/overload/new1.C +++ b/gcc/testsuite/g++.dg/overload/new1.C @@ -17,6 +17,5 @@ void f(X *x = new (3) X(6)); // { dg-error "" } void f(X *x = new (2) X[10]); // { dg-error "" } // { dg-message "candidate" "candidate note" { target *-*-* } 18 } -// { dg-message "operator new|candidate expects" "match candidate text" { target *-*-* } 00 } void f(X *x = new X[10][5]); // { dg-error "" } |