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]

[davej@redhat.com: gcc-ssa bug ?]


Hi -

Does the following patch look obvious?  It seems applicable
to at least the tree-ssa branch.

2004-01-07  Dave Jones <davej@redhat.com>

	* malloc.c (GC_generic_malloc): Correct initialization typo.
	* mallocx.c (GC_generic_malloca_ignore_off_page): Ditto.

> Date: Wed, 7 Jan 2004 20:40:21 +0000
> From: Dave Jones <davej@redhat.com>
> To: fche@redhat.com
> Subject: gcc-ssa bug ?
> 
> simple logic bug ?

--- cvs-pkgs/./gcc-ssa/gcc/boehm-gc/malloc.c~	2004-01-07 20:38:22.000000000 +0000
+++ cvs-pkgs/./gcc-ssa/gcc/boehm-gc/malloc.c	2004-01-07 20:38:27.000000000 +0000
@@ -217,7 +217,7 @@
 	GC_words_allocd += lw;
 	UNLOCK();
 	ENABLE_SIGNALS();
-    	if (init & !GC_debugging_started && 0 != result) {
+    	if (init && !GC_debugging_started && 0 != result) {
 	    BZERO(result, n_blocks * HBLKSIZE);
         }
     }
--- cvs-pkgs/./gcc-ssa/gcc/boehm-gc/mallocx.c~	2004-01-07 20:38:28.000000000 +0000
+++ cvs-pkgs/./gcc-ssa/gcc/boehm-gc/mallocx.c	2004-01-07 20:38:34.000000000 +0000
@@ -202,7 +202,7 @@
     if (0 == result) {
         return((*GC_oom_fn)(lb));
     } else {
-    	if (init & !GC_debugging_started) {
+    	if (init && !GC_debugging_started) {
 	    BZERO(result, n_blocks * HBLKSIZE);
         }
         return(result);


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