[llvm] ce23515 - [tablegen] Emit string literals instead of char arrays

Luke Drummond via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 08:54:20 PST 2020


On Thu Jan 23, 2020 at 3:19 PM, Krzysztof Parzyszek wrote:
> Hi,
>
> I'm getting this warning now:
>
> In file included from
> /w/src/llvm.org/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp:44:
> /w/bld/org/lib/Target/X86/X86GenInstrInfo.inc:32952:11: warning: string
> literal of length 209447 exceeds maximum length 65536 that C++ compilers
> are required to support [-Woverlength-strings]
> /* 0 */ "G_FLOG10\0"
> ^~~~~~~~~~~~
>
Hi

This patch has been reverted upstream. However, I intend to push it again, so
please tell me (or preferably comment on
https://reviews.llvm.org/D73044) with the following:

- What compiler and version is this?
- Are you cross-compiling?
- What is your build OS?
- Are you passing any special CMake flags?

I don't see this warning for a native Linux build with gcc-9.2.1, Ninja,
and default cmake flags, so I assume your build is different in some
way.

All the Best

Luke

-- 
Codeplay Software Ltd.
Company registered in England and Wales, number: 04567874
Registered office: Regent House, 316 Beulah Hill, London, SE19 3HF


More information about the llvm-commits mailing list