[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64

Bill Wendling isanbard at gmail.com
Thu Mar 27 14:44:57 PDT 2008


Sure. Chandler, could you file a PR for this?

-bw

On Thu, Mar 27, 2008 at 2:32 PM, Evan Cheng <evan.cheng at apple.com> wrote:
> Probably better to move the discussion to a bug?
>
>  Evan
>
>
>
>  On Mar 27, 2008, at 9:04 AM, Duncan Sands wrote:
>
>  > Does this fix it?
>  >
>  > Index: lib/Target/X86/X86Subtarget.h
>  > ===================================================================
>  > --- lib/Target/X86/X86Subtarget.h     (revision 48879)
>  > +++ lib/Target/X86/X86Subtarget.h     (working copy)
>  > @@ -144,9 +144,12 @@
>  >
>  >   std::string getDataLayout() const {
>  >     const char *p;
>  > -    if (is64Bit())
>  > -      p = "e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128";
>  > -    else {
>  > +    if (is64Bit()) {
>  > +      if (isTargetDarwin())
>  > +        p = "e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128";
>  > +      else
>  > +        p = "e-p:64:64-s:64-f64:64:64-i64:64:64-f80:32:32";
>  > +    } else {
>  >       if (isTargetDarwin())
>  >         p = "e-p:32:32-f64:32:64-i64:32:64-f80:128:128";
>  >       else
>  > _______________________________________________
>  > LLVM Developers mailing list
>  > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>  > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>  _______________________________________________
>  LLVM Developers mailing list
>  LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>  http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list