[Bug middle-end/43987] [4.5 Regression] type-punning causes broken binaries unless -O0 is used

2010-05-21 Thread thomas at archlinux dot org
--- Comment #24 from thomas at archlinux dot org 2010-05-21 08:16 --- Preliminary tests with a recent gcc snapshot from the 4.5 branch shows that the problem is entirely solved by this patch (maybe in combination with other fixes). Thanks for the quick responses and fixes. -- http

[Bug middle-end/43987] [4.5/4.6 Regression] type-punning causes broken binaries unless -O0 is used

2010-05-05 Thread thomas at archlinux dot org
--- Comment #17 from thomas at archlinux dot org 2010-05-05 14:10 --- > I have a patch. Workaround for 4.5.0: -fno-pta. There is no -fno-pta option in 4.5.0, but I can confirm that -fno-tree-pta fixes the problem in the testcase and in busybox. -- http://gcc.gnu.org/bugzi

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-05 Thread thomas at archlinux dot org
--- Comment #11 from thomas at archlinux dot org 2010-05-05 11:57 --- The problem persists with the 4.5-20100429 snapshot. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-05 Thread thomas at archlinux dot org
--- Comment #10 from thomas at archlinux dot org 2010-05-05 10:58 --- (In reply to comment #8) > Waiting for a testcase (which could be just preprocessed source of > sed.c). Attached. If I find a better (shorter) test case, I'll add that too. > Can you reproduce the issu

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-05 Thread thomas at archlinux dot org
--- Comment #9 from thomas at archlinux dot org 2010-05-05 10:53 --- Created an attachment (id=20561) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20561&action=view) Preprocessor output of sed.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-05 Thread thomas at archlinux dot org
--- Comment #7 from thomas at archlinux dot org 2010-05-05 07:23 --- It has its own file: http://git.busybox.net/busybox/tree/libbb/xrealloc_vector.c?h=1_16_stable&id=1_16_1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-04 Thread thomas at archlinux dot org
--- Comment #5 from thomas at archlinux dot org 2010-05-04 23:49 --- I am still not able to produce a short test case, but maybe this will help: http://git.busybox.net/busybox/tree/editors/sed.c?h=1_16_stable&id=1_16_1#n738 In the function add_input_file(), the 'file' arg

[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-04 Thread thomas at archlinux dot org
--- Comment #3 from thomas at archlinux dot org 2010-05-04 23:06 --- What is -fwrapv supposed to do? I don't see any changes in behaviour or compiler output. As I said, I don't know exactly what to put into a test case (I didn't write any of the code that breaks), b

[Bug c/43987] New: [4.5 regression] type-punning causes broken binaries unless -O0 is used

2010-05-04 Thread thomas at archlinux dot org
on] type-punning causes broken binaries unless -O0 is used Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org Repor