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: unassignedclangb...@nondot.org
          Reporter: jordan.w.fr...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to