public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/17491] New: [4.0 Regression] profiledbootstrap fails on powerpc-apple-darwin
@ 2004-09-15  3:51 pinskia at gcc dot gnu dot org
  2004-09-15  3:52 ` [Bug rtl-optimization/17491] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-15  3:51 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-29 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-15  3:51 [Bug rtl-optimization/17491] New: [4.0 Regression] profiledbootstrap fails on powerpc-apple-darwin pinskia at gcc dot gnu dot org
2004-09-15  3:52 ` [Bug rtl-optimization/17491] " pinskia at gcc dot gnu dot org
2004-09-15  3:54 ` pinskia at gcc dot gnu dot org
2004-09-21 12:59 ` pinskia at gcc dot gnu dot org
2004-09-21 19:25 ` pinskia at gcc dot gnu dot org
2004-09-21 20:58 ` pinskia at gcc dot gnu dot org
2004-11-27  0:24 ` [Bug rtl-optimization/17491] -fspeculative-prefetching fails on powerpc-* pinskia at gcc dot gnu dot org
2005-07-29  9:52 ` reichelt at gcc dot gnu dot org
2005-07-29 11:42 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).