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 jit/68446] [6 Regression] jit testsuite failures seen inside dwarf2out.c:gen_producer_string


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

--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Tue Jan 19 14:35:16 2016
New Revision: 232567

URL: https://gcc.gnu.org/viewcvs?rev=232567&root=gcc&view=rev
Log:
Fix memory chunk corruption for opts_obstack (PR jit/68446)

gcc/ChangeLog:
        PR jit/68446
        * gcc.c (driver::decode_argv): Add call to
        init_opts_obstack before init_options_struct.
        * opts.c (init_opts_obstack): Remove idempotency.
        (init_options_struct): Replace call to init_opts_obstack
        with a gcc_assert to verify that it has already been called.
        * toplev.c (toplev::main): Add call to init_opts_obstack before
        calls to init_options_struct.
        (toplev::finalize): Move cleanup of opts_obstack next to
        cleanup of save_decoded_options, clearing the latter, and
        save_decoded_options_count.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc.c
    trunk/gcc/opts.c
    trunk/gcc/toplev.c

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