This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: miscompilation with current gcc on x86
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: miscompilation with current gcc on x86
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 28 Mar 2000 09:27:18 -0700
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <m3ya7avf4k.fsf@localhost.localnet>you write:
> The appended code compiled with the current gcc (this bugs exists for
> at least a week now) produces strange results. It's supposed to write
> to stdout the string "Hello World " but it does not write anything.
>
> The problem is that the inlined function `f' modifies the variable
> `format' in function `bar'. Therefore end - (const unsigned char *) format
> in the `write' call leads to zero. If you look at the code, the compiler
> actually pushes the constant zero.
I believe this bug has been fixed in the development sources.
THanks,
jeff