[llvm-commits] [llvm] r77621 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Julien Lerouge jlerouge at apple.com
Thu Jul 30 23:54:18 PDT 2009


On Thu, Jul 30, 2009 at 10:07:36PM -0700, Devang Patel wrote:
> Hi Julien
> 
> On Thu, Jul 30, 2009 at 5:58 PM, Julien Lerouge<jlerouge at apple.com> wrote:
> > I'm seeing the following when doing a universal debug build of llvm-gcc (non
> > bootstrap) for Darwin, when configuring libiberty for the i686->powerpc part:
> >
> > Assertion failed: (I != CompileUnitMap.end() && "Missing compile unit."), function FindCompileUnit, file /Volumes/llvm
> > /src/head/llvm-src/lib/CodeGen/AsmPrinter/DwarfDebug.cpp, line 922.
> > conftest.c:53: internal compiler error: Abort trap
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://developer.apple.com/bugreporter> for instructions.
> >
> > Any chance it's related ?
> 
> Possible. Is it possible for you to send me .bc file ?
> Thanks,
> -
> Devang

Attached, both the conftest and the bytecode. Thank you.

-- 
Julien Lerouge
PGP Key Id: 0xB1964A62
PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
PGP Public Key from: keyserver.pgp.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.bc
Type: application/octet-stream
Size: 15104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090730/58590674/attachment.obj>
-------------- next part --------------
/* confdefs.h.  */

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std1 is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std1.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}



More information about the llvm-commits mailing list