This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR other/3782 (3.2/3.3/3.4 regression)
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: 19 Feb 2003 11:56:13 +0100
- Subject: 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)