[llvm-bugs] [Bug 48825] New: Clang frontend crash with -target aarch64-unknown-linux-gnu -mgeneral-regs-only

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 20 14:47:08 PST 2021


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

            Bug ID: 48825
           Summary: Clang frontend crash with -target
                    aarch64-unknown-linux-gnu -mgeneral-regs-only
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jordan.w.frank at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

// clang -c boom.c -target aarch64-unknown-linux-gnu -mgeneral-regs-only
#include <stdbool.h>
bool foo(void);
bool boom() {
  return foo();
}

Note that if you instead do 

#include <stdbool.h>
bool foo(void);
bool boom() {
  bool f = foo();
  return f;
}

it compiles fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210120/04e08f9c/attachment.html>


More information about the llvm-bugs mailing list