[cfe-dev] Duplicate .file in debug information when clang is called with full path

Eric Christopher echristo at gmail.com
Thu Oct 17 11:56:37 PDT 2013


Nah, the patch and resulting email thread is good enough for this :)

-eric

On Thu, Oct 17, 2013 at 10:30 AM, Yaron Keren <yaron.keren at gmail.com> wrote:
> Hi Hans,
>
> By chance I found a solution and posted a patch to cfe-commits. Would the
> bug report still be useful?
>
> Yaron
>
>
>
> 2013/10/17 Hans Wennborg <hans at chromium.org>
>>
>> Hi Yaron,
>>
>> On Thu, Oct 17, 2013 at 3:09 AM, Yaron Keren <yaron.keren at gmail.com>
>> wrote:
>> > When compiling a trivial main.cpp with latest clang on  Windows 7,
>> >
>> > clang -S c:\llvm\test\main.cpp -g -std=c++1y -target i686-pc-mingw32
>> >
>> > main.cpp appears twice in the debug information in the assembly file,
>> > once
>> > with back slash and once with forward slash:
>> >
>> > Lsection_debug_loc:
>> > .text
>> > Ltext_begin:
>> > .data
>> > .file 1 "c:\\llvm\\test/main.cpp"
>> > .file 2 "c:\\llvm\\test\\main.cpp"
>> > .def _main;
>> >
>> > compiling with MingW gcc results in one file only.
>>
>> This sounds like a bug. Can you please file it at http://llvm.org/bugs/ ?
>>
>>  - Hans
>
>



More information about the cfe-dev mailing list