[Bug c/40757] gcc 4.4.0 miscompiles mpfr-2.4.1

marc dot glisse at normalesup dot org gcc-bugzilla@gcc.gnu.org
Fri Jul 17 15:51:00 GMT 2009



------- Comment #19 from marc dot glisse at normalesup dot org  2009-07-17 15:51 -------
(In reply to comment #18)
> I've compiled and linked that code. It does not abort.

Bad point for this theory :-(
The result could still depend on the alignment of the pointer, so you could try
replacing buf[0] by buf[4] and calling memset(buf+4,...) (try several small
values instead of 4).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40757



More information about the Gcc-bugs mailing list