c++/3782: [3.4 regression] -quiet -fstats produces a segmentation fault in cc1plus

ehrhardt@mathematik.uni-ulm.de ehrhardt@mathematik.uni-ulm.de
Wed Apr 16 20:07:00 GMT 2003


Synopsis: [3.4 regression] -quiet -fstats produces a segmentation fault in cc1plus

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Wed Apr 16 20:07:20 2003
State-Changed-Why:
    This PR is the cc1plus crash with -fstats. It now crashes due to a call
    to get_run_time in init_c_lex before timevar is initialized.
    
    Neil moved the call to init_c_lex from c_common_init to c_common_init to
    c_common_post_options with this patch:
    
    2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
    
            * c-common.h (c_common_init, c_common_post_options): Update.
            * c-objc-common.c (c_objc_common_init): Update for new prototype.
            * c-opts.c (saved_lineno): New.
            (c_common_post_options, c_common_init): Update prototypes,
            move call to cpp_read_main_file from latter to former.
    
    Unfortunately c_common_post_options is called before timevar_init.
    
       regards  Christian
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3782



More information about the Gcc-bugs mailing list