This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Typo? in mips.c "warning: statement with no effect"
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: Typo? in mips.c "warning: statement with no effect"
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Tue, 10 Jul 2001 05:01:15 -0000
- Cc: "'echristo at redhat dot com'" <echristo at redhat dot com>
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.