On May 27, 2014 3:58:06 AM CEST, David Edelsohn <dje....@gmail.com> wrote: >This patch (further) broke bootstrap on AIX. AIX defaults to 32 bit, >although it supports 64 bit HWI. > >/nasfarm/edelsohn/src/src/gcc/bitmap.c: In function 'int >print_statistics(bitmap_descriptor_d**, output_info*)': >/nasfarm/edelsohn/src/src/gcc/bitmap.c:2168:24: error: expected ')' >before 'PRId64' >/nasfarm/edelsohn/src/src/gcc/bitmap.c: In function 'void >dump_bitmap_statistics()': >/nasfarm/edelsohn/src/src/gcc/bitmap.c:2202:15: error: expected ')' >before 'PRId64' > >/nasfarm/edelsohn/src/src/gcc/bt-load.c: In function 'void >migrate_btr_defs(reg_class, int)': >/nasfarm/edelsohn/src/src/gcc/bt-load.c:1414:34: error: expected ')' >before 'PRId64' > >/nasfarm/edelsohn/src/src/gcc/cfg.c: In function 'void >dump_edge_info(FILE*, edge, int, int)': >/nasfarm/edelsohn/src/src/gcc/cfg.c:489:25: error: expected ')' before >'PRId64' >/nasfarm/edelsohn/src/src/gcc/cfg.c: In function 'void >dump_bb_info(FILE*, basic_block, int, int, bool, bool)': >/nasfarm/edelsohn/src/src/gcc/cfg.c:737:33: error: expected ')' before >'PRId64'
This means aix has inttypes.h but not the standard mandated PRI?64 macros. Does it have stdint.h and therein int64_t? A possibility is to define the GCC fallbacks when the defines are not defined as opposed to only when inttypes.h is not available. Can you investigate some more the situation on aix? Thanks, Richard. >bitmap.i looks like: > >int >print_statistics (bitmap_descriptor_d **slot, output_info *i) >{ > bitmap_descriptor d = *slot; > char s[4096]; > > if (d->allocated) > { > const char *s1 = d->file; > const char *s2; > while ((s2 = strstr (s1, "gcc/"))) > s1 = s2 + 4; > sprintf (s, "%s:%i (%s)", s1, d->line, d->function); > s[41] = 0; > fprintf ((&_iob[2]), > "%-41s %9u %15"PRId64" %15"PRId64" %15"PRId64 > " %10"PRId64" %10"PRId64"\n", > s, d->created, > d->allocated, d->peak, d->current, > d->nsearches, d->search_iter); > i->size += d->allocated; > i->count += d->created; > } > return 1; >} > > >- David