https://bugs.llvm.org/show_bug.cgi?id=51626

            Bug ID: 51626
           Summary: Wrong data layout for M68k
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: M68k
          Assignee: unassignedb...@nondot.org
          Reporter: glaub...@physik.fu-berlin.de
                CC: glaub...@physik.fu-berlin.de, jrt...@jrtc27.com,
                    llvm-bugs@lists.llvm.org, miny...@uci.edu,
                    rickytaylo...@gmail.com

According to the comment by Jessica Clarke in [1], the data layout for M68k is
wrong.

Quote:

> glaubitz@node54:/data/home/glaubitz/llvm-project/build> clang -S -x c 
> /dev/null -o - -emit-llvm --target=m68k-linux-gnu | grep datalayout
> target datalayout = 
> "E-m:e-p:32:32-i8:8:8-i16:16:16-i32:16:32-n8:16:32-a:0:16-S16"
> glaubitz@node54:/data/home/glaubitz/llvm-project/build>

"p:32:32 still looks wrong, _Alignof(void *) is 2 not 4 so it should be
p:32:16:32 just like i32, so that needs fixing in LLVM"

> [1] https://github.com/rust-lang/rust/pull/88321#discussion_r696022822

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to