Hi,

When going through building pfmon on f9 with GCC 4.3 there were a couple problems found on ia64. One of the problems has been fix in the pfmon cvs. However, the other problem with unitialized local variable doesn't appear to be corrected in the latest cvs. The attached patch should initialize the variable.

There are more details about the bug at:

https://bugzilla.redhat.com/show_bug.cgi?id=435048

-Will
diff -up pfmon-3.3/pfmon/smpl_mod/inst_hist_ia64_old_smpl.c.broken 
pfmon-3.3/pfmon/smpl_mod/inst_hist_ia64_old_smpl.c
--- pfmon-3.3/pfmon/smpl_mod/inst_hist_ia64_old_smpl.c.broken   2008-02-26 
19:03:04.000000000 -0500
+++ pfmon-3.3/pfmon/smpl_mod/inst_hist_ia64_old_smpl.c  2008-02-26 
19:04:01.000000000 -0500
@@ -308,7 +308,7 @@ inst_hist_show_results(pfmon_sdesc_t *sd
        pfmon_smpl_desc_t *csmpl;
        FILE *fp;
        hash_data_t **tab;
-       unsigned long addr, ns;
+       unsigned long addr, ns=0;
        unsigned long i, num_entries, j;
        double d_cum, cum_total;
        hash_sort_arg_t arg;
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to