I'm compiling a code which has GCC library extra separately added. While compiling it with clang error
cannot compile
is showing
I've tried added flags. -std=89gnu does not work with a clang. After some inspection found the same function in compiler file.
BUILTIN(__builtin_init_dwarf_reg_size_table, "vv*", "n")
Error:
gcc/unwind-dw2.c:1336:3: error: cannot compile this __builtin_init_dwarf_reg_size_table
That's a really weird error message, can you put the full one here? Also, I'm surprised that you want to compile libgcc with clang, I don't think anyone has really tried before. Some better repro instructions would help though as this seems to work:
echristo@jhereg ~/tmp> cat foo.c
echristo@jhereg ~/tmp> clang -S -o - foo.c --target=x86_64-linux-gnu