r195676 - Make the integrated assembler the default for cygwin/mingw too.

Yaron Keren yaron.keren at gmail.com
Mon Dec 2 06:05:04 PST 2013


With svn clang and MingW 4.8.1 the integrated assembler breaks C++
exceptions.
Example:
#include <stdio.h>
int main() {
  try {
    throw 1.0;
  }
  catch (...) {
    printf("Caught.\n");
  }
  return 0;
}

Compiled with:
clang t.cpp -o t.exe -g -target i686-pc-mingw32 -nostdinc
-Ic:\mingw-builds\x32-4.8.1-win32-dwarf-rev5\mingw32\i686-w64-mingw32\include\
-Wno-deprecated-register -Wno-ignored-attributes -lstdc++

Results in:
terminate called after throwing an instance of 'double'

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


Yaron

2013/12/1 Rafael EspĂ­ndola <rafael.espindola at gmail.com>

> On 30 November 2013 20:28, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> > Rafael,
> > I see. I don't object to switch -integrated-as by default. It's good
> > and what I'd like to do.
> > To give an error to -no-integrated-as, could you file bugzilla for
> > this issue, "incompatibilities to gnu as"?
> > (llc is already affected.)
>
> What do you think of the attached patch?
>
> Cheers,
> Rafael
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131202/cd3603dc/attachment.html>


More information about the cfe-commits mailing list