[Bug middle-end/4210] should not warning with dead code

2020-05-04 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 --- Comment #33 from Vincent Lefèvre --- (In reply to Niels Möller from comment #32) > 4. I also wonder what happens if, for some reason, a constant invalid shift > count is passed through all the way to code generation? Most architectures > would

[Bug middle-end/4210] should not warning with dead code

2020-05-04 Thread nisse at lysator dot liu.se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 --- Comment #32 from Niels Möller --- I've checked out the gcc sources, to see if I can understand how to move the warning around. The example input I'm looking at now is unsigned shift_dead (unsigned x) { if (0) return x >> 32; else

[Bug middle-end/4210] should not warning with dead code

2020-04-26 Thread nisse at lysator dot liu.se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Niels Möller changed: What|Removed |Added CC||nisse at lysator dot liu.se --- Comment #3

[Bug middle-end/4210] should not warning with dead code

2019-03-02 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 --- Comment #30 from joseph at codesourcery dot com --- At the point where the then block starts being processed (and, thus, warnings may be given) it wouldn't be known whether there are labels in there or not; cf. the discussion in bug 68193 re

[Bug middle-end/4210] should not warning with dead code

2019-03-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Eric Gallager changed: What|Removed |Added CC||joseph at codesourcery dot com --- Commen

[Bug middle-end/4210] should not warning with dead code

2018-05-28 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Andrew Pinski changed: What|Removed |Added CC||joshudson at gmail dot com --- Comment #2

[Bug middle-end/4210] should not warning with dead code

2018-02-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Eric Gallager changed: What|Removed |Added Status|SUSPENDED |NEW CC|

[Bug middle-end/4210] should not warning with dead code

2017-02-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 --- Comment #26 from Martin Sebor --- *** Bug 79479 has been marked as a duplicate of this bug. ***

[Bug middle-end/4210] should not warning with dead code

2017-02-15 Thread eggert at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 --- Comment #25 from Paul Eggert --- I'd like this bug to be changed from SUSPENDED to CONFIRMED, given that it's continuing to be a problem (e.g., bug#79479). Also, I'd like to suggest what I hope is a simple fix. In 2006 Joseph wrote "skip_eval

[Bug middle-end/4210] should not warning with dead code

2014-08-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Andrew Pinski changed: What|Removed |Added CC||brooks at gcc dot gnu.org --- Comment #24

[Bug middle-end/4210] should not warning with dead code

2014-03-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210 Andrew Pinski changed: What|Removed |Added CC||xzfcpw+gcc at gmail dot com --- Comment #2

[Bug middle-end/4210] should not warning with dead code

2010-07-06 Thread manu at gcc dot gnu dot org
--- Comment #22 from manu at gcc dot gnu dot org 2010-07-06 17:28 --- The way Clang gets this right is to perform some very-fast bitmap common constant propagation in the FE. I personally think this would be helpful if implemented correctly, even if it slows down the FE a little. But do

[Bug middle-end/4210] should not warning with dead code

2010-07-06 Thread manu at gcc dot gnu dot org
--- Comment #21 from manu at gcc dot gnu dot org 2010-07-06 17:24 --- *** Bug 44842 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/4210] should not warning with dead code

2009-05-12 Thread pinskia at gcc dot gnu dot org
--- Comment #20 from pinskia at gcc dot gnu dot org 2009-05-12 14:49 --- *** Bug 40114 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/4210] should not warning with dead code

2007-01-01 Thread pinskia at gcc dot gnu dot org
--- Comment #19 from pinskia at gcc dot gnu dot org 2007-01-01 19:03 --- *** Bug 30343 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/4210] should not warning with dead code

2006-06-20 Thread pinskia at gcc dot gnu dot org
--- Comment #18 from pinskia at gcc dot gnu dot org 2006-06-20 19:05 --- *** Bug 28106 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/4210] should not warning with dead code

2006-03-02 Thread mattias at virtutech dot se
--- Comment #17 from mattias at virtutech dot se 2006-03-02 09:22 --- We have resorted to case-by-case workarounds, usually a cast which would have been an identity operation had the condition been true. That is, if (sizeof x == 8) return x << 32 | x; would have its second line

[Bug middle-end/4210] should not warning with dead code

2006-03-01 Thread bangerth at dealii dot org
--- Comment #16 from bangerth at dealii dot org 2006-03-01 23:25 --- > It does; I've used it to eliminate all these warnings in glibc's soft-fp > code. Use statement expressions, i.e. surround the whole if body with ({ > }). Ugh. Do we really want to advocate serious code obfuscatio

[Bug middle-end/4210] should not warning with dead code

2006-03-01 Thread joseph at codesourcery dot com
--- Comment #15 from joseph at codesourcery dot com 2006-03-01 23:22 --- Subject: Re: should not warning with dead code On Wed, 1 Mar 2006, bangerth at dealii dot org wrote: > c) doesn't work with code where the code guarded by the if(0) is more >than a single statement. It does

[Bug middle-end/4210] should not warning with dead code

2006-03-01 Thread bangerth at dealii dot org
--- Comment #14 from bangerth at dealii dot org 2006-03-01 23:05 --- But that's a) clearly a kludge, b) may not help in the future if our optimizers become more elaborate c) doesn't work with code where the code guarded by the if(0) is more than a single statement. It would definitely

[Bug middle-end/4210] should not warning with dead code

2006-03-01 Thread joseph at codesourcery dot com
--- Comment #13 from joseph at codesourcery dot com 2006-03-01 23:01 --- Subject: Re: should not warning with dead code A workaround is to use ? : and statement expressions instead of "if". This way, the front-end setting of skip_evaluation disables these warnings. (skip_evaluatio

[Bug middle-end/4210] should not warning with dead code

2006-03-01 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2006-03-01 19:02 --- *** Bug 26516 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -