aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2018-12-11 17:46:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2018-12-11 17:46:42 +0000
commit296e379a5087be494b8fc35011954c5ea073ba83 (patch)
tree1fd334d7a40bb637b120e030df5cd6f3a056719a
parentccef67160c2c467b3101e0d3e7f08ea996624fc6 (diff)
downloadgcc-296e379a5087be494b8fc35011954c5ea073ba83.zip
gcc-296e379a5087be494b8fc35011954c5ea073ba83.tar.gz
gcc-296e379a5087be494b8fc35011954c5ea073ba83.tar.bz2
decl2.c (grokvardecl): Add location_t parameter and use it in build_lang_decl_loc and build_decl calls.
/cp 2018-12-11 Paolo Carlini <paolo.carlini@oracle.com> * 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 <paolo.carlini@oracle.com> * g++.dg/pr53037-4.C: Test the first two locations too. From-SVN: r267027
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/pr53037-4.C4
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 672be2d..50b8c5a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2018-12-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * 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 <cesar@codesourcery.com>
* parser.c (cp_parser_oacc_kernels_parallel): Adjust EXPR_LOCATION
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e69abe6..8980dd2b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2018-12-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/pr53037-4.C: Test the first two locations too.
+
2018-12-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/88444
diff --git a/gcc/testsuite/g++.dg/pr53037-4.C b/gcc/testsuite/g++.dg/pr53037-4.C
index f73f35f..e887334 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\\(\\)'" } */
{
}