[LLVMbugs] [Bug 6587] New: llvm-gcc fails to compile clang-emitted .secrel32 assembly directives

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 12 01:27:29 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6587

           Summary: llvm-gcc fails to compile clang-emitted .secrel32
                    assembly directives
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: A.Mazur at adbglobal.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4487)
 --> (http://llvm.org/bugs/attachment.cgi?id=4487)
Patch for DwarfPrinter (fixes the issue)

Using LLVM+clang from trunk on a Win32 platform, clang generates assembly file
(with no errors/warnings) which contains .secrel32 directives not in separate
lines, but along with other directives.
This leads to a compilation error with released llvm-gcc-4.2 and MinGW GCC
3.4.5:
> Assembler messages:
> Error: junk at end of line, first unrecognized character is `.'

clang -v output:

"C:/projekty/llvm/llvm/bin/Release/clang.exe" -cc1 -triple i686-pc-win32 -S
-disable-free -disable-llvm-verifier -main-file-name <filename.c>
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -v -g
-resource-dir C:/projekty/llvm/llvm/bin/lib/clang/1.1 -dependency-file
<dependency_file_location> -MT <o_file_location> <serveral_-D_definitions>
<several_-I_paths> -O0 -Wall -Wno-unused-value -fmessage-length 0
-fms-extensions -fgnu-runtime -fdiagnostics-show-option -o
C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s -x c <filename.c>
clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i686-pc-win32

llvm-gcc -v output:

"C:/Program Files/llvm-gcc-4.2/bin/llvm-gcc.exe" -Wall -Wno-unused-value -O0
-fno-strict-aliasing -g -v -fno-strict-aliasing<serveral_-D_definitions>
<several_-I_paths> -MMD -c -o <o_file_location> -x assembler
C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s
Using built-in specs.
Target: i386-mingw32
Configured with: ../src/configure --build=i386-mingw32 --host=i386-mingw32
--tar
get=i386-mingw32 --disable-shared --disable-bootstrap --disable-nls
--with-arch=
i486 --with-cpu=generic --prefix=c:/proj/llvm/llvm-gcc-4.2/install
--enable-llvm
=c:/proj/llvm/build --disable-win32-registry --enable-languages=c,c++
--program-
prefix=llvm- --disable-sjlj-exceptions
Thread model: win32
gcc version 4.2.1 (Based on Apple Inc. build 5649) (LLVM build)
 as --gstabs -o <o_file_location>
C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s

as --version output:

GNU assembler (GNU Binutils) 2.20
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `mingw32'.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list