[cfe-dev] MinGW 4.7.0-compiled Clang Mis-compiles Simple Programs
Justin Holewinski
justin.holewinski at gmail.com
Mon Jun 18 10:36:12 PDT 2012
On Mon, Jun 18, 2012 at 1:33 PM, Justin Holewinski <
justin.holewinski at gmail.com> wrote:
> On Mon, Jun 18, 2012 at 11:38 AM, Anton Korobeynikov <
> anton at korobeynikov.info> wrote:
>
>> > I'm not sure this bug applies here, since it's the program generated
>> *by*
>> > Clang that is crashing, not Clang itself. This leads me to believe it
>> is a
>> > codegen issue somewhere within Clang and not a mis-compile of Clang
>> itself.
>> > Or perhaps its a subtle bug in MinGW's libstdc++ 4.7.0 build.
>> > Everything does work fine if I downgrade to MinGW 4.6.3.
>> This smells like static ctors problem described by Rafael on
>> llvm-commits. What if you change the .ctors section to .init_array?
>>
>
> I tried with:
> + .section .ctors,"w"
> - .section .init_array,"w"
>
> and re-assembled (as)/re-linked (collect2) the executable, but the problem
> still persists.
>
Sorry, switch the + and -...
>
>
>
>>
>> --
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>>
>
>
>
> --
>
> Thanks,
>
> Justin Holewinski
>
>
--
Thanks,
Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120618/e4561981/attachment.html>
More information about the cfe-dev
mailing list