public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52124] New: config/cr16/cr16.c: possibly redundant code
@ 2012-02-04 16:05 dcb314 at hotmail dot com
2021-09-12 22:18 ` [Bug target/52124] " pinskia at gcc dot gnu.org
2021-09-12 22:22 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2012-02-04 16:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52124
Bug #: 52124
Summary: config/cr16/cr16.c: possibly redundant code
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dcb314@hotmail.com
I just ran the static analysis checker cppcheck over the latest trunk code
and it said
[gcc/config/cr16/cr16.c:2024] -> [gcc/config/cr16/cr16.c:2024]: (style) Same
expression on both sides of '||'.
The source code is
return (cfun->calls_alloca || crtl->calls_eh_return
|| cfun->has_nonlocal_label || crtl->calls_eh_return);
which looks to me like one too many mentions of crtl->calls_eh_return,
but may mean some other variable has been missed out.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/52124] config/cr16/cr16.c: possibly redundant code
2012-02-04 16:05 [Bug target/52124] New: config/cr16/cr16.c: possibly redundant code dcb314 at hotmail dot com
@ 2021-09-12 22:18 ` pinskia at gcc dot gnu.org
2021-09-12 22:22 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-12 22:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52124
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ettl.martin at gmx dot de
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 62311 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/52124] config/cr16/cr16.c: possibly redundant code
2012-02-04 16:05 [Bug target/52124] New: config/cr16/cr16.c: possibly redundant code dcb314 at hotmail dot com
2021-09-12 22:18 ` [Bug target/52124] " pinskia at gcc dot gnu.org
@ 2021-09-12 22:22 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-12 22:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52124
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-09-12
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-12 22:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-04 16:05 [Bug target/52124] New: config/cr16/cr16.c: possibly redundant code dcb314 at hotmail dot com
2021-09-12 22:18 ` [Bug target/52124] " pinskia at gcc dot gnu.org
2021-09-12 22:22 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).