[Bug target/55014] ICE: Segmentation fault while compiling complex_io.cc on x86_64-w64-mingw32

2012-10-24 Thread squallatf at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55014



SquallATF  changed:



   What|Removed |Added



 CC||squallatf at gmail dot com



--- Comment #2 from SquallATF  2012-10-24 13:04:48 
UTC ---

I get the same ICE when compiling i686-w64-mingw32 rev 192488 and beyond

this gdb info



Analyzing compilation unit

Performing interprocedural optimizations

 <*free_lang_data>   {GC 10079k -> 7915k}

<*free_inline_summary>

  Assembling functions:

 virtual std::basic_stringbuf::~basic_stringbuf() virtual

std::basic_stringbuf::~basic_stringbuf() std::basic_istream<_CharT,

_Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&,

std::complex<_Tp>&) [with _Tp = float; _CharT = char; _Traits =

std::char_traits] std::basic_ostream<_CharT, _Traits>&

std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::complex<_Tp>&)

[with _Tp = float; _CharT = char; _Traits = std::char_traits]

Program received signal SIGSEGV, Segmentation fault.

0x00a2afc5 in emit_case_dispatch_table(tree_node*, tree_node*, case_node*,

rtx_def*, tree_node*, tree_node*, tree_node*, basic_block_def*) ()

at ../../gcc/stmt.c:1919

1919  edge default_edge = EDGE_SUCC(stmt_bb, 0);

(gdb) warning: (Internal error: pc 0xa2afc5 in read in psymtab, but not in

symtab.)



warning: (Internal error: pc 0xa2afc5 in read in psymtab, but not in symtab.)


[Bug target/55014] ICE: Segmentation fault while compiling complex_io.cc on x86_64-w64-mingw32

2012-10-24 Thread squallatf at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55014



--- Comment #4 from SquallATF  2012-10-24 14:06:29 
UTC ---

may be this bus same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54957

there have a path in that post can solve this bug.


[Bug target/55268] New: gcc4.8 mingw-w64 Wrong stdcall import symbols generated after rev 193204

2012-11-10 Thread squallatf at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55268



 Bug #: 55268

   Summary: gcc4.8 mingw-w64 Wrong stdcall import symbols

generated after rev 193204

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: blocker

  Priority: P3

 Component: target

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: squall...@gmail.com





Warning: resolving __imp__GetModuleHandleA by linking to

__imp__GetModuleHandleA@4

Use --enable-stdcall-fixup to disable these warnings

Use --disable-stdcall-fixup to disable these fixups

Warning: resolving __imp__VirtualProtect by linking to __imp__VirtualProtect@16

Warning: resolving __imp__Sleep by linking to __imp__Sleep@4

Warning: resolving __imp__GetLastError by linking to __imp__GetLastError@0

Warning: resolving __imp__TlsGetValue by linking to __imp__TlsGetValue@4

Warning: resolving __imp__GetCurrentThreadId by linking to

__imp__GetCurrentThreadId@0

Warning: resolving __imp__VirtualQuery by linking to __imp__VirtualQuery@12

E:/msys/src/gcc/trunk/build/gcc/crtbegin.o:cygming-crtbegin.c:(.text+0x35):

undefined reference to `_imp__GetProcAddress'

gthr-win32_s.o: In function `_gthr_win32_key_create':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:105:

undefined reference to `_imp__TlsAlloc'

gthr-win32_s.o: In function `_gthr_win32_key_delete':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:123:

undefined reference to `_imp__TlsFree'

gthr-win32_s.o: In function `_gthr_win32_getspecific':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:133:

undefined reference to `_imp__SetLastError'

gthr-win32_s.o: In function `_gthr_win32_setspecific':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:140:

undefined reference to `_imp__TlsSetValue'

gthr-win32_s.o: In function `_gthr_win32_mutex_init_function':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:150:

undefined reference to `_imp__CreateSemaphoreA'

gthr-win32_s.o: In function `_gthr_win32_mutex_destroy':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:156:

undefined reference to `_imp__CloseHandle'

gthr-win32_s.o: In function `_gthr_win32_mutex_lock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:163:

undefined reference to `_imp__WaitForSingleObject'

gthr-win32_s.o: In function `_gthr_win32_mutex_unlock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:187:

undefined reference to `_imp__ReleaseSemaphore'

gthr-win32_s.o: In function `_gthr_win32_recursive_mutex_init_function':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:198:

undefined reference to `_imp__CreateSemaphoreA'

gthr-win32_s.o: In function `_gthr_win32_recursive_mutex_lock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:215:

undefined reference to `_imp__WaitForSingleObject'

gthr-win32_s.o: In function `_gthr_win32_recursive_mutex_unlock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:256:

undefined reference to `_imp__ReleaseSemaphore'

gthr-win32_s.o: In function `_gthr_win32_recursive_mutex_destroy':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/../../../libgcc/config/i386/gthr-win32.c:265:

undefined reference to `_imp__CloseHandle'

unwind-dw2-fde_s.o: In function `_gthread_mutex_init_function':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:638:

undefined reference to `_imp__CreateSemaphoreA'

unwind-dw2-fde_s.o: In function `_gthread_mutex_lock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:655:

undefined reference to `_imp__WaitForSingleObject'

unwind-dw2-fde_s.o: In function `_gthread_mutex_unlock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:689:

undefined reference to `_imp__ReleaseSemaphore'

unwind-dw2-fde_s.o: In function `_gthread_mutex_lock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:655:

undefined reference to `_imp__WaitForSingleObject'

unwind-dw2-fde_s.o: In function `_gthread_mutex_unlock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:689:

undefined reference to `_imp__ReleaseSemaphore'

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:689:

undefined reference to `_imp__ReleaseSemaphore'

unwind-dw2-fde_s.o: In function `_gthread_mutex_lock':

E:\msys\src\gcc\trunk\build\i686-w64-mingw32\libgcc/./gthr-default.h:655:

undefined reference to `_imp__WaitForSingleObject'

unwind-dw2-fde_s.o: In function `_gt

[Bug target/55268] gcc4.8 mingw-w64 wrong stdcall import symbols generated after rev 193204

2012-11-11 Thread squallatf at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55268



--- Comment #1 from SquallATF  2012-11-11 11:05:58 
UTC ---

I found the reason, TARGET_MANGLE_DECL_ASSEMBLER_NAME is defined to

ix86_mangle_decl_assembler_name in gcc/config/i386/i386.c overide the define

i386_pe_mangle_decl_assembler_name in gcc/config/i386/cygming.h


[Bug other/55310] New: libsanitizer con't be complier use gcc on windows

2012-11-13 Thread squallatf at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55310



 Bug #: 55310

   Summary: libsanitizer con't be complier use gcc on windows

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: other

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: squall...@gmail.com





../../../../libsanitizer/asan/asan_win.cc:31:0: warning: ignoring #pragma

comment  [-Wunknown-pragmas]

 #pragma comment(lib, "dbghelp.lib")

 ^

../../../../libsanitizer/asan/asan_win.cc:119:2: error: #error Please build the

runtime with a non-debug CRT: /MD or /MT

 #error Please build the runtime with a non-debug CRT: /MD or /MT

  ^