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

            Bug ID: 48266
           Summary: Discrepancy between predefined macros compared to ARM
                    GCC
           Product: clang
           Version: 11.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: valero...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

Hi. I'm trying to use Clangd as a language server for embedded development. One
of the maintainers of Clangd suggested reporting my problem here.

I bumped into an issue when predefined macros that describe floating point
support generated by Clang differ from macros generated by ARM GCC.
For more detailed info please visit
https://github.com/clangd/clangd/issues/533#issuecomment-731405643

Here is the output from GCC:

arm-none-eabi-gcc -dM -E -mcpu=cortex-m4 -mthumb - < /dev/null | grep FP__

#define __SOFTFP__ 1
#define __VFP_FP__ 1

At the same time Clang generates only `VFP_FP`

./clang --target=arm-none-eabi -mcpu=cortex-m4 -mthumb -dM -xc /dev/null -c -v
-E | grep FP__

#define __VFP_FP__ 1

Thanks!

-- 
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