From 9782e1ec0aaf2e578ebaf83fc0fa70d67e0fe939 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 31 Oct 2016 18:10:30 +0100 Subject: [PATCH] re PR c++/77886 (-Wimplicit-fallthrough: breaks duff's device (in function templates)) PR c++/77886 * pt.c (tsubst_expr) Copy over FALLTHROUGH_LABEL_P flag to the new LABEL_DECL. (tsubst_expr) : Likewise. * g++.dg/warn/Wimplicit-fallthrough-2.C: New test. From-SVN: r241711 --- gcc/ChangeLog | 7 ------- gcc/cp/ChangeLog | 4 +++- gcc/testsuite/ChangeLog | 5 +++++ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3347c00cee..007389bd37e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -45,13 +45,6 @@ * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define. -2016-10-31 Jakub Jelinek - - PR c++/77886 - * pt.c (tsubst_expr) Copy over - FALLTHROUGH_LABEL_P flag to the new LABEL_DECL. - (tsubst_expr) : Likewise. - 2016-09-11 Le-Chun Wu Mark Wielaard diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b657f62f402..8651479909c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -6,7 +6,9 @@ expression and break;. PR c++/77886 - * g++.dg/warn/Wimplicit-fallthrough-2.C: New test. + * pt.c (tsubst_expr) Copy over + FALLTHROUGH_LABEL_P flag to the new LABEL_DECL. + (tsubst_expr) : Likewise. 2016-09-11 Le-Chun Wu Mark Wielaard diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0d1a01395a8..25bf8932eee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -29,6 +29,11 @@ PR tree-optimization/77860 * gcc.dg/pr77860.c: New test. +2016-10-31 Jakub Jelinek + + PR c++/77886 + * g++.dg/warn/Wimplicit-fallthrough-2.C: New test. + 2016-10-31 Senthil Kumar Selvaraj * gcc.dg/lto/pr60449_0.c: Skip for avr.