[Bug c/78408] New: Aggressive optimization of zeroing results in incorrect behavior

2016-11-17 Thread npmccallum at redhat dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: npmccallum at redhat dot com Target Milestone: --- $ gcc -v Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.2.1/lto-wrapper Target

[Bug c/78408] Aggressive optimization of zeroing results in incorrect behavior

2016-11-17 Thread npmccallum at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78408 --- Comment #2 from Nathaniel McCallum --- Created attachment 40076 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40076&action=edit simple test case Compile with: gcc -o test test.c This is a simple echo server. It *should* echo whatever

[Bug c/78408] Aggressive optimization of zeroing results in incorrect behavior

2016-11-17 Thread npmccallum at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78408 --- Comment #3 from Nathaniel McCallum --- Created attachment 40077 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40077&action=edit output assembly from the test case This assembly was produced with: gcc -S test.c.