This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17491] New: [4.0 Regression] profiledbootstrap fails on powerpc-apple-darwin
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2004 03:51:43 -0000
- Subject: [Bug rtl-optimization/17491] New: [4.0 Regression] profiledbootstrap fails on powerpc-apple-darwin
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
doing a profiledbootstrap on powerpc-apple-darwin we get a failuring in getmodes, reduced testcase
which can be used to run:
typedef long unsigned int size_t;
typedef unsigned int hashval_t;
typedef hashval_t (*htab_hash) (const void *);
typedef int (*htab_eq) (const void *, const void *);
typedef void (*htab_del) (void *);
typedef int (*htab_trav) (void **, void *);
typedef void * (*htab_alloc) (size_t, size_t);
typedef void (*htab_free) (void *);
void free(void *);
void abort ();
int strcmp(const char *, const char *);
void * calloc (size_t, size_t) __attribute__ ((__malloc__));
void * xcalloc (size_t a, size_t b) { return calloc(a, b);}
struct htab { int i; };
typedef struct htab *htab_t;
hashval_t hash_mode (const void *p){return 0;}
int eq_mode (const void *p, const void *q){return 0;}
const char *progname;
htab_t htab_create_alloc (size_t a, htab_hash b, htab_eq c,
htab_del d, htab_alloc e, htab_free f)
{
if (a!=64)
abort();
if (b!=hash_mode)
abort();
if (c!=eq_mode)
abort();
if (d != 0)
abort ();
if (e != xcalloc)
abort ();
if (f != free)
abort();
return 0;
}
unsigned char gen_header = 0, gen_min = 0;
void error (const char *a, ...) {}
static htab_t modes_by_name;
int
main(int argc, char **argv)
{
progname = argv[0];
if (argc == 1)
;
else if (argc == 2 && !strcmp (argv[1], "-h"))
gen_header = 1;
else if (argc == 2 && !strcmp (argv[1], "-m"))
gen_min = 1;
else
{
error ("usage: %s [-h|-m] > file", progname);
return 1;
}
modes_by_name = htab_create_alloc (64, hash_mode, eq_mode, 0, xcalloc, free);
}
--
Summary: [4.0 Regression] profiledbootstrap fails on powerpc-
apple-darwin
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: wrong-code, build
Severity: critical
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,rakdver at gcc dot gnu
dot org
GCC target triplet: powerpc-apple-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17491