bug-gnustep
[Top][All Lists]
Advanced

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

[bug #16342] bus error in autogsdoc on some architectures


From: Hubert Chan
Subject: [bug #16342] bus error in autogsdoc on some architectures
Date: Sat, 22 Apr 2006 17:53:23 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060110 Debian/1.5.dfsg-4 Firefox/1.5

Follow-up Comment #1, bug #16342 (project gnustep):

Jurij Smakov found the cause of the bug, as recorded in the Debian bug log. 
Apparently, the test in config/config.align.c for testing whether the
architecture needs shorts/ints to be word-aligned does not work properly, as
gcc optimizes away the assignments that are used to test it if "-O2" is part
of CFLAGS (which it is by default).

A fix is to force the compiler to make the assignments by, for example,
passing buf to an external function.  For example, the attached file (just a
3-line change from the original config/config.align.c) does this by passing
buf to puts.

    _______________________________________________________

Additional Item Attachment:

File name: config.align.c                 Size:0 KB
patched config/config.align.c that forces the compiler to not optimize away
assignments
<http://savannah.gnu.org/bugs/download.php?file_id=9823>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16342>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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