This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add statistics to bitmaps
- From: Dirk Mueller <dmuell at gmx dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <jh at suse dot cz>
- Date: Mon, 31 Jul 2006 14:56:14 +0200
- Subject: Re: Add statistics to bitmaps
- References: <20060731080856.GC1590@kam.mff.cuni.cz>
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);