[llvm-bugs] [Bug 48266] New: Discrepancy between predefined macros compared to ARM GCC

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 23 05:09:45 PST 2020


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: unassignedclangbugs at nondot.org
          Reporter: valeros08 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201123/64dabd3c/attachment.html>


More information about the llvm-bugs mailing list