> "-O2 -fwritable-strings" produces the same behavior as "-O2".
It's fine with -O0 and -O1. Should I be trying -fwritable-strings with
one of those?
> I missed the beginning of this thread. What gcc version? Do you have a
> small test program? How about "-O2 -fwritable-strings"?
ii gcc3.3.3-2The GNU C compiler
No.
"-O2 -fwritable-strings" produces the same behavior as "-O2".
Clint Adams <[EMAIL PROTECTED]> writes:
>> The string stored at ptr, after ptr is no longer equal to optr, changes
>> from "" to "\020" when checkunary() is called. I'm going to try again
>> with gcc -O0 to see if the same thing happens.
>
> The test passes with no optimization; I guess this mean
> The string stored at ptr, after ptr is no longer equal to optr, changes
> from "" to "\020" when checkunary() is called. I'm going to try again
> with gcc -O0 to see if the same thing happens.
The test passes with no optimization; I guess this means it's a gcc bug
specific to mips.
4 matches
Mail list logo