[Bug rtl-optimization/90976] New: A suspicious code in lra.c since r177852
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 24 11:47:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90976
Bug ID: 90976
Summary: A suspicious code in lra.c since r177852
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Target Milestone: ---
clang-static-analyzer reports following suspicious code:
$ cat -n gcc/lra.c | less
1031 if (nop > 0)
1032 {
1033 const char *p = recog_data.constraints[0];
1034
1035 for (p = constraints[0]; *p; p++)
1036 nalt += *p == ',';
1037 }
As seen result of 'p = recog_data.constraints[0];' is never used.
More information about the Gcc-bugs
mailing list