[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-23 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 --- Comment #8 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:c48ffe21f8f3478cf08f9442e3f973df358caf2a commit r11-3397-gc48ffe21f8f3478cf08f9442e3f973df358caf2a Author: Marek Polacek Date: Su

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added CC||jim at meyering dot net --- Comment #7 f

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 --- Comment #6 from sandra at gcc dot gnu.org --- Yeah, that looks like an easy fix. Thanks for tracking it down.

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 --- Comment #5 from Marek Polacek --- I think we just want to call do_warn_duplicated_branches_r after we've lowered control statements: --- a/gcc/c-family/c-gimplify.c +++ b/gcc/c-family/c-gimplify.c @@ -533,10 +533,6 @@ c_genericize (tree fnde

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 sandra at gcc dot gnu.org changed: What|Removed |Added CC||sandra at gcc dot gnu.org ---

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 --- Comment #3 from Marek Polacek --- We crash because now the C FE uses a SWITCH_STMT in the else branch: 2766 /* Compute the hash of the else branch. */ 2767 inchash::hash hstate1 (0); 2768 inchash::add_expr (elseb, hstate1); 2769 has

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Target Mil

[Bug c/97125] [11 Regression] new problem with -Wduplicated-branches

2020-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97125 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0