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

            Bug ID: 30797
           Summary: clear_cache doesn't compile in Debug mode
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedb...@nondot.org
          Reporter: renato.go...@linaro.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

clear_cache.c fails to build on ARM in debug mode because of the line:

const register int syscall_nr __asm("r7") = __ARM_NR_cacheflush;

with the error:

error: r7 cannot be used in asm here

It passes on Release mode because -O2/3 implies -fmoit-frame-pointer.

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

Reply via email to