[llvm-bugs] [Bug 37976] New: Allow '||' inside of ASSERT expressions

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 28 08:04:46 PDT 2018


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

            Bug ID: 37976
           Summary: Allow '||' inside of ASSERT expressions
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: royger at freebsd.org
                CC: llvm-bugs at lists.llvm.org

LLD 6.0.0 (FreeBSD 326565-1200002) (compatible with GNU linkers) as shipped by
FreeBSD doesn't allow the usage of the '||' operator inside of ASSERT
expressions:

$ cat script.lds
ASSERT(0 || 0, "Foo")
$ ld -T script.lds
ld: error: script.lds:1: malformed number: |
>>> ASSERT(0 || 0, "Foo")
>>>           ^

ld: error: target emulation unknown: -m or at least one .o file required
$ /usr/local/bin/ld -T script.lds
/usr/local/bin/ld: no input files

The same expression work just fine with GNU ld.

-- 
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/20180628/464fe8f5/attachment-0001.html>


More information about the llvm-bugs mailing list