From: paolo Date: Tue, 11 Dec 2018 17:46:42 +0000 (+0000) Subject: /cp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2506fd9bb69c82f52c7ee099d1a55fc6aa8a975;p=thirdparty%2Fgcc.git /cp 2018-12-11 Paolo Carlini * decl2.c (grokvardecl): Add location_t parameter and use it in build_lang_decl_loc and build_decl calls. (grokdeclarator): Move up loc declaration and use it in the grokvardecl call too. /testsuite 2018-12-11 Paolo Carlini * g++.dg/pr53037-4.C: Test the first two locations too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267027 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 672be2d072db..50b8c5a3aca0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2018-12-11 Paolo Carlini + + * decl2.c (grokvardecl): Add location_t parameter and use it + in build_lang_decl_loc and build_decl calls. + (grokdeclarator): Move up loc declaration and use it in the + grokvardecl call too. + 2018-12-09 Cesar Philippidis * parser.c (cp_parser_oacc_kernels_parallel): Adjust EXPR_LOCATION diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e69abe6288b3..8980dd2b2f1d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-12-11 Paolo Carlini + + * g++.dg/pr53037-4.C: Test the first two locations too. + 2018-12-11 Jakub Jelinek PR tree-optimization/88444 diff --git a/gcc/testsuite/g++.dg/pr53037-4.C b/gcc/testsuite/g++.dg/pr53037-4.C index f73f35f82371..e887334fc8ba 100644 --- a/gcc/testsuite/g++.dg/pr53037-4.C +++ b/gcc/testsuite/g++.dg/pr53037-4.C @@ -2,11 +2,11 @@ /* { dg-do compile } */ /* { dg-options "-O0" } */ -int foo1 __attribute__((warn_if_not_aligned(8))); /* { dg-error "'warn_if_not_aligned' may not be specified for 'foo1'" } */ +int foo1 __attribute__((warn_if_not_aligned(8))); /* { dg-error "5:'warn_if_not_aligned' may not be specified for 'foo1'" } */ __attribute__((warn_if_not_aligned(8))) void -foo2 (void) /* { dg-error "'warn_if_not_aligned' may not be specified for 'void foo2\\(\\)'" } */ +foo2 (void) /* { dg-error "1:'warn_if_not_aligned' may not be specified for 'void foo2\\(\\)'" } */ { }