2006-05-02 James E Wilson <wilson@specifix.com>
* gprof.c (main): When setting default output_style, add separate
checks for INPUT_HISTOGRAM and INPUT_CALL_GRAPH.
+2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Backport:
+ 2006-05-02 James E Wilson <wilson@specifix.com>
+ * gprof.c (main): When setting default output_style, add separate
+ checks for INPUT_HISTOGRAM and INPUT_CALL_GRAPH.
+
2006-11-29 Mark Shinwell <shinwell@codesourcery.com>
Backport from mainline:
if (output_style == 0)
{
if (gmon_input & (INPUT_HISTOGRAM | INPUT_CALL_GRAPH))
- output_style = STYLE_FLAT_PROFILE | STYLE_CALL_GRAPH;
+ {
+ if (gmon_input & INPUT_HISTOGRAM)
+ output_style |= STYLE_FLAT_PROFILE;
+ if (gmon_input & INPUT_CALL_GRAPH)
+ output_style |= STYLE_CALL_GRAPH;
+ }
else
output_style = STYLE_EXEC_COUNTS;