[Bug middle-end/95681] False positive uninitialized variable usage in decNumberCompareTotalMag

2021-07-16 Thread stefansf at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95681

--- Comment #4 from Stefan Schulze Frielinghaus  
---
Running todays mainline (d97d71a1989) using options -O3 -Wall against the
reduced program on x86 as well as s390x results in

t.c: In function 'decNumberCompareTotalMag':
t.c:55:14: warning: '*allocbufa.bits' may be used uninitialized
[-Wmaybe-uninitialized]
   55 |   a->bits&=~0x80;
  |  ^~
t.c:70:14: warning: '*allocbufb.bits' may be used uninitialized
[-Wmaybe-uninitialized]
   70 |   b->bits&=~0x80;
  |  ^~

[Bug middle-end/95681] False positive uninitialized variable usage in decNumberCompareTotalMag

2021-07-16 Thread stefansf at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95681

--- Comment #3 from Stefan Schulze Frielinghaus  
---
Created attachment 51160
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51160=edit
Reduced program

[Bug middle-end/95681] False positive uninitialized variable usage in decNumberCompareTotalMag

2021-07-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95681

Martin Sebor  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 CC||msebor at gcc dot gnu.org
 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2021-07-09

--- Comment #2 from Martin Sebor  ---
Could you please reduce the warning to a standalone test case (or translation
unit) and attach it to the report so that it can be more easily reproduced
(with a cross-compiler) and analyzed?

[Bug middle-end/95681] False positive uninitialized variable usage in decNumberCompareTotalMag

2021-07-08 Thread trnsz at pobox dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95681

--- Comment #1 from Jeffrey H. Johnson  ---
Confirm this behavior and reached same analysis with gcc version 11.1.1
20210531 (Red Hat 11.1.1-3) on x86_64.