Typo? in mips.c "warning: statement with no effect"
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Mon Jul 9 22:01:00 GMT 2001
I get a warning
gcc/config/mips/mips.c:4905: warning: statement with no effect
The line in question looks like a typo using "==" rather than "=", but I am
not sure
if (mips_tune_string == 0
|| ! strcmp (mips_tune_string, "default")
|| ! strcmp (mips_tune_string, "DEFAULT"))
{
if (mips_arch != PROCESSOR_DEFAULT)
mips_tune == mips_arch; <--- warning here
else
switch (mips_isa)
The warning is recent, and possibly due to
2001-07-05 Eric Christopher <echristo@redhat.com>
* config/mips/mips.c (mips_arch_string): New.
(mips_arch): New.
(override_options): Handle -march for codegen and -mtune
for scheduling. Use mips_arch. Move tx39 target default here.
More information about the Gcc-bugs
mailing list