[Bug middle-end/91691] Cross compiling glibc produces a false maybe-uninitialized error

2019-10-10 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91691

Jim Wilson  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Jim Wilson  ---
Fixed on mainline.  Not backporting to gcc-8 or gcc-9 branches.

[Bug middle-end/91691] Cross compiling glibc produces a false maybe-uninitialized error

2019-10-10 Thread alistair at alistair23 dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91691

--- Comment #4 from Alistair  ---
Thanks for looking into this Jim. We have worked around it in glibc master, so
that's fine that it can't be back ported. I'm glad it has been fixed in the
latest version.

[Bug middle-end/91691] Cross compiling glibc produces a false maybe-uninitialized error

2019-10-09 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91691

Jim Wilson  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-10-10
 CC||wilson at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Jim Wilson  ---
I can reproduce using gcc-8 and gcc-9 but not mainline.  I'm using gcc options:
-std=gnu11 -fgnu89-inline  -mcmodel=medlow -g -O2 -Wall -Wwrite-strings -Wundef 
-fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes
-
Wold-style-definition -fmath-errno   -fPIC   -ftls-model=initial-exec \
tmp.i -fdump-tree-all -fdump-ipa-all 

Bisecting on mainline shows that the new IPA SRA pass added Sept 20 fixed this.
Without that patch, I see that total_deadline is being decomposed, but
apparently there is something wrong with the tracking info. If I add
-fno-ipa-sra the warning goes away.

The new IPA-SRA is too big of a patch to backport, so it looks like this will
have to remain unfixed on the gcc-8 and gcc-9 branches.