svn commit: r1665 - trunk/yasm/libyasm

peter at tortall.net peter at tortall.net
Fri Oct 27 00:29:28 PDT 2006


Author: peter
Date: Fri Oct 27 00:29:28 2006
New Revision: 1665

Modified:
   trunk/yasm/libyasm/expr.c
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1665

Log:
expr.c (expr_expand_equ): Work around what I believe to be a GCC aliasing
bug (probably http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778) by not
accepting NULL for eh, and giving it the static eh at the sole caller of
this function (yasm_expr__level_tree).  While I'm here, clean up the logic
a bit to avoid relying on ee.e NULL value.  This fix prevents crashes in
GCC 4.1.1 with -fstrict-aliasing (enabled by -O2).

Noticed by: Danny Reeves <danny_reeves at hotmail.com>



More information about the yasm-cvs mailing list