This is the mail archive of the gcc-patches@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]

PR other/3782 (3.2/3.3/3.4 regression)


In this stupid little buglet, timevars are disabled, so the timevar
stack is always empty.  But c_lex() tries to get timing information from
the timevar stack for its detailed statistics...  This causes a segfault
when one tries "cc1plus -quiet -fstats".

With this patch, timevars are enabled with -fstats.  Is this correct or
should -quiet override -fstats?  Can't tell myself, because -quiet is
not documented :-)

Greetz
Steven


2003-02-19  Steven Bosscher  <s dot bosscher at student dot tudelft dot nl>

	PR other/3782
	* toplev.c (process_options): If flag_detailed_statistics
	is set, then set time_report as well.

Index: toplev.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.709
diff -c -3 -p -r1.709 toplev.c
*** toplev.c	12 Feb 2003 21:48:57 -0000	1.709
--- toplev.c	19 Feb 2003 10:50:38 -0000
*************** process_options ()
*** 5169,5175 ****
  	print_switch_values (stderr, 0, MAX_LINE, "", " ", "\n");
      }
  
!   if (! quiet_flag)
      time_report = 1;
  
    if (flag_syntax_only)
--- 5169,5175 ----
  	print_switch_values (stderr, 0, MAX_LINE, "", " ", "\n");
      }
  
!   if (!quiet_flag || flag_detailed_statistics)
      time_report = 1;
  
    if (flag_syntax_only)


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