rationale for eliding modifications to string constants
Godmar Back
godmar@gmail.com
Tue Sep 14 21:15:00 GMT 2010
On Tue, Sep 14, 2010 at 2:35 PM, Ian Lance Taylor <iant@google.com> wrote:
>
> I think this is simply a bug. It doesn't happen with current gcc. With
> gcc 4.4.3 the assignment is being eliminated because it is considered to
> be dead code.
>
> I agree that it is an error for gcc to simply eliminate this assignment
> with no warning.
>
Thanks, that's what I thought.
- Godmar
More information about the Gcc
mailing list