--- 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.
--
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
--- Comment #22 from rguenth at gcc dot gnu dot org 2010-05-19 14:48
---
Subject: Bug 43987
Author: rguenth
Date: Wed May 19 14:48:24 2010
New Revision: 159567
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159567
Log:
2010-05-19 Richard Guenther rguent...@suse.de
PR
--- Comment #23 from rguenth at gcc dot gnu dot org 2010-05-19 15:08
---
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #21 from bernhardloos at googlemail dot com 2010-05-10 16:48
---
*** Bug 44060 has been marked as a duplicate of this bug. ***
--
bernhardloos at googlemail dot com changed:
What|Removed |Added
--- Comment #20 from rguenth at gcc dot gnu dot org 2010-05-06 08:54
---
Fixed on the trunk. Queued for backporting to 4.5.1.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--- 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_stableid=1_16_1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-05-05 10:15 ---
Waiting for a testcase (which could be just preprocessed source of
sed.c).
Can you reproduce the issue when you add -fno-inline?
Can you reproduce the issue with the current 4.5 branch?
As you can reproduce with
--- 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=20561action=view)
Preprocessor output of sed.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
--- 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 issue when you add
--- 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
--- Comment #12 from rguenth at gcc dot gnu dot org 2010-05-05 13:13
---
I see
extern char bb_common_bufsiz1[COMMON_BUFSIZE];
static void add_input_file(FILE *file)
{
fprintf(stderr, Adding input file %x.\n, file);
(*(struct globals*)bb_common_bufsiz1).input_file_list =
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-04 22:48 ---
Can you try also -fwrapv? There could be other issues with the code besides
just aliasing issues. Maybe there is a buffer overflow that shows up now with
the new optimizers.
--
pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-05-04 22:48 ---
Also without a testcase it is hard to figure out what is going on.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
--- 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), but I can try my
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-05-04 23:08 ---
What is -fwrapv supposed to do? I
Changes the behavior of signed integer overflow to be defined as wrapping
rather than being undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
--- 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_stableid=1_16_1#n738
In the function add_input_file(), the 'file' argument is not a
--- Comment #6 from pinskia at gcc dot gnu dot org 2010-05-04 23:53 ---
How is xrealloc_vector defined?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
18 matches
Mail list logo