https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62311
Bug ID: 62311
Summary: Found a potential copy and paste issue on in
gcc/config/cr16.c
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: ettl.martin at gmx dot de
Please take a look at following suspicious code, where the same statement
appears twice in a logical or-operation:
/*file gcc/config/cr16.c, line 2027*/
static bool
cr16_frame_pointer_required (void)
{
return (cfun->calls_alloca || crtl->calls_eh_return
|| cfun->has_nonlocal_label || crtl->calls_eh_return);
}
As you can see, the statement crtl->calls_eh_return appears twice, which looks
like a copy&paste issue.
Best regards and many thanks
Martin Ettl