[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-18 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #17 from marcus at jet dot franken.de --- can also confirm this. wine64 built with trunk gcc so far has no crashes and the wine testsuite so far had no failures

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-15 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #11 from marcus at jet dot franken.de --- Created attachment 35984 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35984action=edit 707.c delta reduced testcase. gcc -O2 -fPIC -c 707.c

[Bug rtl-optimization/66865] [6 Regression] wine segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #3 from marcus at jet dot franken.de --- dlls/ntdll/sec.c, and probably RtlConvertSidToUnicodeString is miscompiled... looking further.

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #6 from marcus at jet dot franken.de --- Created attachment 35980 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35980action=edit foo.patch the comment out TRACE() makes the function RtlConvertSidToUnicodeString build correctly

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #8 from marcus at jet dot franken.de --- FWIW, it seems it is thinking that %rsi stays alive over sprintfW calls. leaqformatW.23952(%rip), %rsi #, movzbl (%r14), %edx# MEM[(const struct SID *)pSid_9(D

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #7 from marcus at jet dot franken.de --- (can continue to work on this tomorrow. good night)

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #10 from marcus at jet dot franken.de --- Created attachment 35982 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35982action=edit sec.s.bad bad assembly. %rsi not restored with formatW

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #9 from marcus at jet dot franken.de --- Created attachment 35981 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35981action=edit sec.s.good good assembly (with TRACE)

[Bug rtl-optimization/66845] one more %si register function clobbering issue

2015-07-12 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66845 --- Comment #1 from marcus at jet dot franken.de --- Created attachment 35952 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35952action=edit testcase.c delta minimized testcase. gcc -c -O2 -fPIC look for second call of RPCRT4_strndupA

[Bug rtl-optimization/66845] New: one more %si register function clobbering issue

2015-07-12 Thread marcus at jet dot franken.de
: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marcus at jet dot franken.de Target Milestone: --- bug 66782 fixes one %si clobbering issues when transitioning between win64 and sysv ABI. Here is the next one. RPCRT4_strndupA is a SysV ABI static

[Bug rtl-optimization/66845] one more %si register function clobbering issue

2015-07-12 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66845 --- Comment #2 from marcus at jet dot franken.de --- compiler used is gcc version 5.1.1 20150707 [gcc-5-branch revision 225501] (SUSE Linux) with the patch from bug 66782 applied.

[Bug rtl-optimization/66782] [5/6 Regression] Unable to run 64-bit wine after MS-SYSV register changes

2015-07-12 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66782 --- Comment #16 from marcus at jet dot franken.de --- I can confirm that this testcase fixed here and in Wine. I have however found another issue with register clobbering and opened a new bug 66845 for it.

[Bug target/66782] Unable to run 64-bit wine after MS-SYSV register changes

2015-07-07 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66782 --- Comment #3 from marcus at jet dot franken.de --- Created attachment 35927 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35927action=edit testcase-min.i gcc -S -fPIC -O2 -g testcase.i -o testcase.s there will be a pattern to spot

[Bug target/66782] Unable to run 64-bit wine after MS-SYSV register changes

2015-07-07 Thread marcus at jet dot franken.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66782 --- Comment #4 from marcus at jet dot franken.de --- (actually not sure this is the same issue that my wine colleagueds are seeing, but it also a miscompilation)

[Bug middle-end/50323] New: verify_ssa fail: number of operands and imm-links don't agree in statement

2011-09-07 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50323 Bug #: 50323 Summary: verify_ssa fail: number of operands and imm-links don't agree in statement Classification: Unclassified Product: gcc Version: 4.7.0 Status:

[Bug middle-end/50323] verify_ssa fail: number of operands and imm-links don't agree in statement

2011-09-07 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50323 marcus at jet dot franken.de changed: What|Removed |Added Target||x86_64-suse-linux

[Bug lto/49703] New: -flto makes stack executable by default

2011-07-11 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49703 Summary: -flto makes stack executable by default Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: critical Priority: P3 Component: lto AssignedTo:

[Bug lto/49703] -flto makes stack executable by default

2011-07-11 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49703 --- Comment #2 from marcus at jet dot franken.de 2011-07-11 12:11:35 UTC --- Created attachment 24738 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24738 xx.c gcc -O2 -flto -o xx xx.c readelf -a xx|grep GNU_STACK should NOT show RWE

[Bug c/49642] New: constant part of a macro not optimized away as expected due to splitter

2011-07-05 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49642 Summary: constant part of a macro not optimized away as expected due to splitter Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/49642] constant part of a macro not optimized away as expected due to splitter

2011-07-05 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49642 --- Comment #1 from marcus at jet dot franken.de 2011-07-05 12:41:05 UTC --- Created attachment 24690 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24690 ehca_mrmw.i gcc -m64 -O2 -fno-inline-functions-called-once -c ehca_mrmw.i ; objdump -dr

[Bug c/49642] constant part of a macro not optimized away as expected due to splitter

2011-07-05 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49642 --- Comment #2 from marcus at jet dot franken.de 2011-07-05 12:42:28 UTC --- looking at the assembly, both x() and y() call the assembler functions, just the static function is still emitted with .ehca_get_max_hwpage_size.part.0

[Bug driver/48832] -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q

2011-05-03 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48832 marcus at jet dot franken.de changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug driver/48832] -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q

2011-05-02 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48832 marcus at jet dot franken.de changed: What|Removed |Added Version|4.6.0 |4.7.0 --- Comment #2 from

[Bug driver/48832] New: -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q

2011-04-30 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48832 Summary: -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority:

[Bug middle-end/48269] Incorrect fortify warning for a packed struct member

2011-03-24 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48269 marcus at jet dot franken.de changed: What|Removed |Added CC||marcus at jet dot

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-28 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #9 from marcus at jet dot franken.de 2010-11-28 14:55:31 UTC --- (gdb) bt #0 0xe425 in __kernel_vsyscall () #1 0xf7d1eb46 in kill () from /lib/libc.so.6 #2 0x7efab485 in server_protocol_error (err=0x7efcfe71 write errnp=%d

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-28 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #11 from marcus at jet dot franken.de 2010-11-28 19:31:27 UTC --- it is unclear. ... it seems to crash in libgcc_s.so.1 (both the installed 4.5 and the built 4.6 trunk versuon) during this pthread_exit unwinding. behaviour changes

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-28 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #12 from marcus at jet dot franken.de 2010-11-28 19:31:58 UTC --- the gcc or glibc unwinding is in use, not wine's if I take it correctly from the bakctrace.

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-28 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #14 from marcus at jet dot franken.de 2010-11-28 19:53:45 UTC --- actually it is built with it and crashes. Atfer i change thread.o with -fno-asynchronous-unwind-tables it starts to work again. so somehting in there confuses

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-28 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #16 from marcus at jet dot franken.de 2010-11-28 20:44:38 UTC --- glibc-32bit-2.11.2-3.3.1.x86_64 /lib/libc.so.6 GNU C Library stable release version 2.11.2 (20100531), by Roland McGrath et al. [...] Configured for i686-suse-linux

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-25 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #5 from marcus at jet dot franken.de 2010-11-25 08:12:28 UTC --- i can reproduce this. I will try to bisect which file of wine gets miscompiled to get a smaller testcase.

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-25 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #6 from marcus at jet dot franken.de 2010-11-25 10:01:26 UTC --- first wine search converged on ntdll.dll.so being miscompiled (as i expected to some degree). i will tomorrow focus on the specific object files.

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-25 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #7 from marcus at jet dot franken.de 2010-11-26 07:26:56 UTC --- .o hunting converged on dlls/ntdll/thread.o however: $ diff -u bad.lst good.lst --- bad.lst 2010-11-26 08:25:05.0 +0100 +++ good.lst2010-11-26 08:25

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-25 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 --- Comment #8 from marcus at jet dot franken.de 2010-11-26 07:31:39 UTC --- when I add -fno-omit-frame-pointer -fno-asynchronous-unwind-tables it goes back to the good behaviour.

[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2010-11-20 Thread marcus at jet dot franken.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468 marcus at jet dot franken.de changed: What|Removed |Added CC||marcus at jet dot