[Wayland-bugs] [Bug 92988] altmacro is not supported by clang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 18 02:07:41 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92988

            Bug ID: 92988
           Summary: altmacro is not supported by clang
           Product: Wayland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: wayland
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: vjaquez at igalia.com

In commit f66e2d5 (Validate the protocol xml during scanning) the dtd is
embedded in the executable and validated. Nonetheless, in order to do that
trick, an assembly snipped is used, but it is not clang/llvm friendly[1]

I don't know if there's a way to workaround this, or perhaps in configure.ac,
if clang is detected, the validation during scanning would be disabled.

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

clang    -c -o src/dtddata.o src/dtddata.S
src/dtddata.S:25:1: error: unknown directive
.altmacro
^
<instantiation>:2:17: error: unexpected token in directive
 .globl DTD_DATA&_begin
                ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:3:9: error: unknown token in expression
DTD_DATA&_begin:
        ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:4:10: error: expected string in '.incbin' directive
 .incbin src/wayland.dtd.embed
         ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:5:9: error: unknown token in expression
DTD_DATA&_end:
        ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:8:17: error: unexpected token in directive
 .globl DTD_DATA&_len
                ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:9:9: error: unknown token in expression
DTD_DATA&_len:
        ^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20151118/1592d781/attachment.html>


More information about the wayland-bugs mailing list