This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/77663] New: libgfortran/caf/single.c: four minor problems
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Sep 2016 15:34:47 +0000
- Subject: [Bug libfortran/77663] New: libgfortran/caf/single.c: four minor problems
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77663
Bug ID: 77663
Summary: libgfortran/caf/single.c: four minor problems
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: libfortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
[trunk/libgfortran/caf/single.c:1468]: (style) Redundant condition:
realloc_need
ed. '!realloc_needed || (realloc_needed && dst_reallocatable)' is equivalent to
'!realloc_needed || dst_reallocatable'
[trunk/libgfortran/caf/single.c:153]: (error) Memory leak: local
[trunk/libgfortran/caf/single.c:1923]: (error) Memory leak: single_token
[trunk/libgfortran/caf/single.c:90]: (error) va_list 'args' was opened but not
c
losed by va_end().
#1 is a simple optimisation, #2 looks only slightly pointful,
#3 I'm not sure about and #4 I know of no architecture where
this matters.