bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] strict aliasing redux


From: Mike Frysinger
Subject: Re: [Bug-ed] strict aliasing redux
Date: Sat, 3 Jan 2009 06:21:44 -0500
User-agent: KMail/1.10.3 (Linux/2.6.28; KDE/4.1.3; x86_64; ; )

On Saturday 03 January 2009 05:07:19 Antonio Diaz Diaz wrote:
> Mike Frysinger wrote:
> > ed has had an issue for a while where it violates strict aliasing rules
> > (stack management in buf.c, buffer management in carg_parser.c and
> > glbl.c). depending on the version of gcc, this may trigger a crash in ed.
> >  until the source gets sorted out, can we have configure append
> > -fno-strict-aliasing to CFLAGS (assuming the target compiler supports it)
> > ?
>
> AFAIK the aliasing problem was solved in ed 1.0. If this is not the
> case, please, send a documented bug report and I'll sort out the source
> as soon as possible.

the original reporter in Gentoo was still hitting the issue with ed-1.1, but 
after trying combinations of gcc, it may be a gcc-4.2 bug.

under Debian:
./configure CC=gcc-4.2 CFLAGS='-march=pentium-m -O2 -fomit-frame-pointer -
finline-functions -fpeel-loops'
make && make check
<fail>
adding -fno-strict-aliasing and things work again ...

but all other gcc versions work now with ed-1.1 ... ed-0.8 (the original 
reported version) fails on pretty much every gcc version
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]