This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81466] New: [SH]: Error: syntax error in @(disp,[Rn, gbr, pc]) when building with -mlra


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81466

            Bug ID: 81466
           Summary: [SH]: Error: syntax error in @(disp,[Rn, gbr, pc])
                    when building with -mlra
           Product: gcc
           Version: 7.1.0
               URL: https://people.debian.org/~glaubitz/webkit2gtk_2.16.5-
                    1-mlra_sh4.build
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glaubitz at physik dot fu-berlin.de
  Target Milestone: ---
            Target: sh*-*-*

Created attachment 41774
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41774&action=edit
Intermediate source for MapPrototype.cpp (gzipped)

After running into #81426 when trying to build webkit2gtk on Debian sh4
unstable, I tried building with "-mlra". While this actually fixed #81246,
another issue was exposed that only shows when using "-mlra":

[ 21%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/MapPrototype.cpp.o
cd /<<PKGBUILDDIR>>/obj-sh4-linux-gnu/Source/JavaScriptCore && /usr/bin/c++  
-DBUILDING_GTK__=1 -DBUILDING_JavaScriptCore -DBUILDING_WITH_CMAKE=1
-DDATA_DIR=\"share\" -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1
-DJavaScriptCore_EXPORTS -DLIBDIR=\"/usr/lib/sh4-linux-gnu\"
-DSTATICALLY_LINKED_WITH_WTF -DUSER_AGENT_GTK_MAJOR_VERSION=\"604\"
-DUSER_AGENT_GTK_MINOR_VERSION=\"1\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\"
-isystem /usr/include/glib-2.0 -isystem /usr/lib/sh4-linux-gnu/glib-2.0/include
-I/<<PKGBUILDDIR>>/obj-sh4-linux-gnu -I/<<PKGBUILDDIR>>/Source/JavaScriptCore
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/..
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/API
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/ForwardingHeaders
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/assembler
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/b3
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/b3/air
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/bindings
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/builtins
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/bytecode
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/bytecompiler
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/dfg
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/disassembler
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/disassembler/udis86
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/disassembler/ARM64
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/domjit
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/ftl
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/heap
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/debugger
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/inspector
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/inspector/agents
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/inspector/augmentable
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/inspector/remote
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/interpreter
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/jit
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/llint
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/parser
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/profiler
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/replay
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/runtime
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/tools
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/wasm
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/wasm/js
-I/<<PKGBUILDDIR>>/Source/JavaScriptCore/yarr
-I/<<PKGBUILDDIR>>/obj-sh4-linux-gnu/DerivedSources/ForwardingHeaders
-I/<<PKGBUILDDIR>>/obj-sh4-linux-gnu/DerivedSources/JavaScriptCore
-I/<<PKGBUILDDIR>>/obj-sh4-linux-gnu/DerivedSources/JavaScriptCore/inspector
-I/<<PKGBUILDDIR>>/Source/bmalloc -I/<<PKGBUILDDIR>>/Source/WTF
-I/<<PKGBUILDDIR>>/obj-sh4-linux-gnu/DerivedSources
-I/<<PKGBUILDDIR>>/Source/ThirdParty  -g1 -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs
-fstack-protector-strong -Wformat -Werror=format-security -mlra -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -DENABLE_ASSEMBLER=0 -DNDEBUG -DG_DISABLE_CAST_CHECKS
-Wdate-time -D_FORTIFY_SOURCE=2 -Wall -DENABLE_ASSEMBLER=0 -DNDEBUG
-DG_DISABLE_CAST_CHECKS -fno-exceptions -fno-strict-aliasing -fno-rtti
-std=c++1y -fPIC   -Wall -Wextra -Wcast-align -Wformat-security
-Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings  -o
CMakeFiles/JavaScriptCore.dir/runtime/MapPrototype.cpp.o -c
/<<PKGBUILDDIR>>/Source/JavaScriptCore/runtime/MapPrototype.cpp
(...)
/tmp/cck5XKuE.s: Assembler messages:
/tmp/cck5XKuE.s:3780: Error: syntax error in @(disp,[Rn, gbr, pc])
/tmp/cck5XKuE.s:3780: Error: invalid operands for opcode
/tmp/cck5XKuE.s:3787: Error: syntax error in @(disp,[Rn, gbr, pc])
/tmp/cck5XKuE.s:3787: Error: invalid operands for opcode
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/build.make:18583: recipe
for target
'Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/MapPrototype.cpp.o'
failed
make[3]: ***
[Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/MapPrototype.cpp.o]
Error 1

Dropping "-mlra" from the command line above fixes the issue.

Full log in [1]. Attaching the output from running with "-save-temps".

> [1] https://people.debian.org/~glaubitz/webkit2gtk_2.16.5-1-mlra_sh4.build

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]