[Bug middle-end/20644] bogus uninitialized warning on unused variable

2008-08-10 Thread manu at gcc dot gnu dot org
--- Comment #11 from manu at gcc dot gnu dot org 2008-08-10 19:48 --- This is FIXED in GCC 4.4. This may have fixed other uninitialized PRs, so if you have reported one, please recheck with the a recent 4.4 revision -- manu at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2008-08-10 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2008-08-10 18:47 --- Subject: Bug 20644 Author: manu Date: Sun Aug 10 18:46:10 2008 New Revision: 138933 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138933 Log: 2008-08-10 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> PR m

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2007-08-23 Thread manu at gcc dot gnu dot org
--- Comment #9 from manu at gcc dot gnu dot org 2007-08-23 14:17 --- (In reply to comment #8) > Despite what I said before, for this particular case, we should never give a > "is used" warning if the BB is not executed with 100% probability. Hmm, I'll > check whether we can detect this.

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2007-08-22 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-08-22 17:38 --- (In reply to comment #6) > (In reply to comment #5) > gcc version 4.1.0 20051106 (experimental) > ../t6.c: In function ‘foo’: > ../t6.c:13: warning: ‘j’ is used uninitialized in this function > Despite what I said bef

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #7 from manu at gcc dot gnu dot org 2007-08-20 14:18 --- Even simpler testcase: int foo () { int i = 0; int j; if (1 == i) return j; return 0; } This will only be reliably fixed by building a better SSA representation. Moving the passes around will

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-11-25 Thread gdr at gcc dot gnu dot org
-- gdr at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2005-11-08 17:25 --- (In reply to comment #5) > Bogus warning no longer issued with GCC 4.1 based compilers. Huh: gcc version 4.1.0 20051106 (experimental) ../t6.c: In function ‘foo’: ../t6.c:13: warning: ‘j’ is used uninitialized in t

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-11-08 Thread law at redhat dot com
--- Comment #5 from law at redhat dot com 2005-11-08 17:23 --- Bogus warning no longer issued with GCC 4.1 based compilers. -- law at redhat dot com changed: What|Removed |Added --

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-11-02 Thread h dot b dot furuseth at usit dot uio dot no
--- Comment #4 from h dot b dot furuseth at usit dot uio dot no 2005-11-02 19:52 --- I think I'd appreciate that warning when writing portable code: The warning can be useful if the 1 is replaced with a macro which may or may not expand to 1, or an enum defined in an #ifdef, or an impl

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-03-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-26 01:13 --- (In reply to comment #2) > I can imagine that it may not be straightforward to fix but I can't think of a > reason why a warning could ever be useful in this case (i.e., when the code is > provably safe). I

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-03-25 Thread sebor at roguewave dot com
--- Additional Comments From sebor at roguewave dot com 2005-03-26 01:08 --- I can imagine that it may not be straightforward to fix but I can't think of a reason why a warning could ever be useful in this case (i.e., when the code is provably safe). I could of course be missing somethin

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-03-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-26 00:43 --- I think we had decided even though the code is unreachable, we want to warn about this. -- What|Removed |Added --