title: Invalid register for .seh_savexmm\r using theano with MinGW
body: <p>When I run the file in Spyder, following error message was shown.</p>
  
  <blockquote>
    <p>Exception: ('The following error happened while compiling the node', forall_inplace,cpu,scan_fn&amp;scan_fn&amp;scan_fn&amp;scan_fn&amp;scan_fn}(Shape_i{0}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, Subtensor{int64:int64:int8}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, IncSubtensor{InplaceSet;:int64:}.0, , , , , AllocDiag.0, AllocDiag.0, AllocDiag.0, , , , , AllocDiag.0, AllocDiag.0, AllocDiag.0, , , , , AllocDiag.0, AllocDiag.0, AllocDiag.0, , , , , AllocDiag.0, AllocDiag.0, AllocDiag.0, , , , , AllocDiag.0, AllocDiag.0, AllocDiag.0), '\n', 'The following error happened while compiling the node', Elemwise{Composite{((scalar_sigmoid(i0) * i1) + (scalar_sigmoid(i2) * tanh(i3)))}}(Gemm{inplace}.0, , Gemm{inplace}.0, Gemm{no_inplace}.0), '\n', 'Compilation failed (return status=1): C:\Users\uos\AppData\Local\Temp\ccOVbwzm.s: Assembler messages:\r. C:\Users\uos\AppData\Local\Temp\ccOVbwzm.s:2133: Error: invalid register for .seh_savexmm\r. ', '[Elemwise{Composite{((scalar_sigmoid(i0) * i1) + (scalar_sigmoid(i2) * tanh(i3)))}}(, , , )]')</p>
  </blockquote>
  
  <p>I'm working on Anaconda / Python 2.7 / MinGW-w64/ Theano 1.0.2</p>
  
  <p>I think "Error: invalid register for .seh_savexmm\r." is the important part.</p>
  
  <p>With some search, I assume this can be solved by disabling optimization of the GCC. Is it right? </p>
  
  <p>There are two possible suggested solutions for similar problems:
  1) -fno-asynchronous-unwind-tables compiler option
  2) disabling Dispatched CPU optimizations by passing the -DCPU_DISPATCH= flag to CMake.</p>
  
  <p>I cannot figure out how to set up the options. Could you please help me with this?</p>