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]

Re: Add statistics to bitmaps


On Monday, 31. July 2006 10:08, Jan Hubicka wrote:

> Bootstrapped/regtested i686-linux, OK?

Breaks -Werror bootstrap: 

../../gcc/bitmap.c: In function 'bitmap_descriptor':
../../gcc/bitmap.c:78: warning: initializer element is not computable at load 
time
../../gcc/bitmap.c:78: warning: initializer element is not computable at load 
time
../../gcc/bitmap.c:78: warning: initializer element is not computable at load 
time


--- bitmap.c
+++ bitmap.c
@@ -75,7 +75,10 @@
 bitmap_descriptor (const char *file, const char *function, int line)
 {
   struct bitmap_descriptor **slot;
-  struct loc loc = {file, function, line};
+  struct loc loc;
+  loc.file = file;
+  loc.function = function;
+  loc.line = line;

   if (!bitmap_hash)
     bitmap_hash = htab_create (10, hash_descriptor, eq_descriptor, NULL);


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