This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC5 optimization level causes runtime error in WINE
- From: Michael Cronenworth <mike at cchtml dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 07 Mar 2015 17:16:08 -0600
- Subject: GCC5 optimization level causes runtime error in WINE
- Authentication-results: sourceware.org; auth=none
Hello,
I am attempting to debug why WINE[1], when compiled with GCC 5[2] on Fedora Rawhide,
cannot run when an optimization level is specified.
-O0 : works
-O1 : segfault
-O2 : segfault
I have enabled -O1 flags manually and WINE works. What other settings is GCC 5
enabling between optimization levels? I have run -Q --help=optimizers and that's
what I based my flag settings on, but there is something obviously missing that -O1
enables.
Thanks,
MIchael
[1] https://www.winehq.org/
[2] gcc (GCC) 5.0.0 20150226 (Red Hat 5.0.0-0.18)