[llvm-bugs] [Bug 31828] New: assembler warning "entity size for SHF_MERGE not specified"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 31 12:30:35 PST 2017


            Bug ID: 31828
           Summary: assembler warning "entity size for SHF_MERGE not
           Product: new-bugs
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: arnd at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I found this while building the Linux kernel, in

$ clang -Wall -O2 -no-integrated-as -fno-strict-overflow -c test.c
/tmp/test-d0fed2.s: Assembler messages:
/tmp/test-d0fed2.s:25: Warning: entity size for SHF_MERGE not specified

$ cat test.c
static int a[][1] __attribute__((__section__(".init.rodata"))) = {{}};
int b;
int fn1(void) {
  for (;;)
    if (a[b][0])
      for (;;)

It appears to be related to a old bug that was marked fixed in 2010

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/20170131/c379e423/attachment.html>

More information about the llvm-bugs mailing list