[Debian GNUstep maintainers] Bug#362192: [bug #16342] bus error in
autogsdoc on some architectures
Hubert Chan
INVALID.NOREPLY at gnu.org
Sat Apr 22 21:53:23 UTC 2006
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/
More information about the pkg-GNUstep-maintainers
mailing list