This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c


Compiling libffi/src/powerpc/ffi.c as part of a bootstrap for powerpc*-*-linux*
fails starting with this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=149624

    r149624 | rguenth | 2009-07-14 09:59:18 +0000 (Tue, 14 Jul 2009)

This minimized testcase demonstrates the problem:

--------------------------------------------------------------
typedef long unsigned int size_t;
typedef struct {
  unsigned nargs;
} ffi_cif;
typedef struct {
  char tramp[24];
  ffi_cif *cif;
} ffi_closure;
extern void *memcpy (void *, const void *, size_t);
extern void ffi_closure_LINUX64 (void);

int
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
{
  void **tramp = (void **) &closure->tramp[0];

  memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
  closure->cif = cif;

  return 0;
}
--------------------------------------------------------------

elm3b149% /home/janis/build/build-gcc-trunk-anonsvn/gcc/cc1 -quiet -O2
bug0714.c
bug0714.c: In function ?ffi_prep_closure_loc?:
bug0714.c:21:1: internal compiler error: in refs_may_alias_p_1, at
tree-ssa-alias.c:746
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc*-*-linux*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753


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