This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/62067] New: lto-lang.c:549: too many calls to va_end on some code paths ?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62067

            Bug ID: 62067
           Summary: lto-lang.c:549: too many calls to va_end on some code
                    paths ?
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

[trunk/gcc/lto/lto-lang.c:549]: (error) va_list 'list' used before va_start()
was called.

 egress:
  builtin_types[def] = t;
  va_end (list);

For function def_fn_type, there are some code paths
where va_end is called twice.

Suggest code rework. If that means removing the goto statement,
even better.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]