[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please hint puf 1.0.0-4



The new version of puf corrects only a weird bug (#411069) on at least
i386 arch when it is compiled with gcc-4.1.

The diff is very small and is attached for your convenience.

Regards

-- 
---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| mnencia@prato.linux.it | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4

diff -u puf-1.0.0/debian/changelog puf-1.0.0/debian/changelog
--- puf-1.0.0/debian/changelog
+++ puf-1.0.0/debian/changelog
@@ -1,3 +1,10 @@
+puf (1.0.0-4) unstable; urgency=low
+
+  * Decleared all global static variables as volatile to fix gcc-4.1
+    optimization issue (Closes: #411069)
+
+ -- Marco Nenciarini <mnencia@debian.org>  Sat, 17 Feb 2007 13:18:41 +0100
+
 puf (1.0.0-3) unstable; urgency=low
 
   * debian/control: Bump Standards-Version to 3.7.2.2; no changes
only in patch2:
unchanged:
--- puf-1.0.0.orig/src/url.c
+++ puf-1.0.0/src/url.c
@@ -12,9 +12,9 @@
 #include "puf.h"
 
 int economize_dns;
-static url_t *urllist;
-static int real_num_urls;
-static proxy_t *proxylist;
+volatile static url_t *urllist;
+volatile static int real_num_urls;
+volatile static proxy_t *proxylist;
 
 /*  calculate hash code for given url. eliminate duplicates  */
 int 
only in patch2:
unchanged:
--- puf-1.0.0.orig/src/http_req.c
+++ puf-1.0.0/src/http_req.c
@@ -11,7 +11,7 @@
 
 #include "puf.h"
 
-static char *user_agent;
+volatile static char *user_agent;
 
 void 
 init_user_agent(void)
only in patch2:
unchanged:
--- puf-1.0.0.orig/src/hostlist.c
+++ puf-1.0.0/src/hostlist.c
@@ -13,8 +13,8 @@
 
 int always_primary_name;
 
-static host_t *hostlist;	/*  list of known hosts  */
-static int real_num_hosts;
+volatile static host_t *hostlist;	/*  list of known hosts  */
+volatile static int real_num_hosts;
 
 whost_t *queue_dns_lookup;	/*  waiting for start of lookup  */
 dnsproc_t *list_dns_busy, *list_dns_idle;	/*  helper processes  */

Attachment: signature.asc
Description: Digital signature


Reply to: