[Bug c++/79582] Wrong mangled name for stdcall functions with templated arguments when referenced directly from vtbl.

2017-02-17 Thread jacek at codeweavers dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79582

--- Comment #1 from Jacek Caban  ---
Created attachment 40765
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40765=edit
multifile test case

[Bug c++/79582] New: Wrong mangled name for stdcall functions with templated arguments when referenced directly from vtbl.

2017-02-17 Thread jacek at codeweavers dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79582

Bug ID: 79582
   Summary: Wrong mangled name for stdcall functions with
templated arguments when referenced directly from
vtbl.
   Product: gcc
   Version: 6.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jacek at codeweavers dot com
  Target Milestone: ---

Created attachment 40764
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40764=edit
test case

It was originally reported in mingw-w64 build of Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1336527

The attached test case shows the problem:

$ i686-w64-mingw32-g++ -c test.i -o test.o
$ i686-w64-mingw32-nm child.o |grep test_virtual
 U __ZN6Parent12test_virtualE16templated_structIiE@4

Note that stdcall suffix should be @8: the function has both implicit this
pointer and templated struct of pointer size. I experimented with this a bit
and it seems to be caused by a combination of stdcall and templated argument.
The suffix is always @4 even if I add more simple arguments.

The bug happens only if such function is needed by the vtbl itself. Other
references to the function work as expected.


I will also attach a test that shows the bug by failing to link:

$ i686-w64-mingw32-g++ -c parent.cpp -o parent.o && i686-w64-mingw32-g++ -c
child.cpp -o child.o && i686-w64-mingw32-g++ parent.o child.o -o test.exe
child.o:child.cpp:(.rdata$_ZTV5Child[__ZTV5Child]+0xc): undefined reference to
`Parent::test_virtual(templated_struct)@4'
collect2: error: ld returned 1 exit status

[Bug target/51726] LTO and attribute 'selectany'

2015-05-21 Thread jacek at codeweavers dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 CC||jacek at codeweavers dot com

--- Comment #5 from Jacek Caban jacek at codeweavers dot com ---
It seems like selectany is not supported at all in LTO:

$ cat selectany.c 
__attribute__((selectany)) int i = 0;

$ i686-w64-mingw32-gcc selectany.c selectany.c -flto -shared
/tmp/cchTGZVt.o (symbol from plugin):(.text+0x0): multiple definition of `i'
/tmp/ccAy2OzL.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Should I file separated bug?


[Bug target/64384] mingw-w64: stdcall function returning an aggregate is incompatible with MS ABI

2014-12-23 Thread jacek at codeweavers dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64384

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 CC||jacek at codeweavers dot com

--- Comment #1 from Jacek Caban jacek at codeweavers dot com ---
FWIW the issue is not specific to COM interfaces. It affects all stdcall
functions.


[Bug c++/60474] New: [regression] Crash in tree_class_check

2014-03-09 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60474

Bug ID: 60474
   Summary: [regression] Crash in tree_class_check
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jacek at codeweavers dot com

Created attachment 32317
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32317action=edit
test case

Compiling Mozilla sources with current GCC trunk causes ICE. I'm attaching a
simplified test case. I tested on i686-w64-mingw32 target, but it's unlikely to
matter. The crash happens with -O1 optimization level (and no other that I
tried).

$ i686-w64-mingw32-g++ test.i -c -O1
test.i: In function 'void FillBackgroundList(nsAutoTArrayLayer,
ComputedValueItem Layer::*, uint32_t) [with ComputedValueItem = unsigned char;
uint32_t = unsigned int]':
test.i:26:1: internal compiler error: Segmentation fault
 FillBackgroundList(nsAutoTArray Layer aLayers,
 ^
0xb48fcf crash_signal
../../../gcc-git/gcc/toplev.c:337
0x1061e40 tree_class_check
../../../gcc-git/gcc/tree.h:2831
0x1061e40 double_int_ext_for_comb(double_int, aff_tree*)
../../../gcc-git/gcc/tree-affine.c:44
0x10624a6 aff_combination_scale(aff_tree*, double_int)
../../../gcc-git/gcc/tree-affine.c:86
0xc658a6 difference_cost
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:3896
0xc6a4ba get_computation_cost_at
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4176
0xc6ce8c get_computation_cost
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4290
0xc6ce8c determine_use_iv_cost_generic
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4317
0xc6ce8c determine_use_iv_cost
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4911
0xc6f090 determine_use_iv_costs
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:5031
0xc6f090 tree_ssa_iv_optimize_loop
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:6849
0xc6f9b3 tree_ssa_iv_optimize()
../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:6895
0xc816a7 tree_ssa_loop_ivopts
../../../gcc-git/gcc/tree-ssa-loop.c:362
0xc816a7 execute
../../../gcc-git/gcc/tree-ssa-loop.c:398


[Bug c++/56038] declarations in xmmintrin.h conflict with mingw-w64 intrin.h in c++ mode

2013-09-20 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56038

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 CC||jacek at codeweavers dot com

--- Comment #8 from Jacek Caban jacek at codeweavers dot com ---
It would be great if this could be fixed in GCC so that we wouldn't need to
work around linkage differences in headers, but this should not be a problem
for mingw-w64 since rev 6303, which added a work around to intrin.h.


[Bug target/57848] internal compiler error on builtin and '#pragma GCC target()' option

2013-09-12 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848

--- Comment #17 from Jacek Caban jacek at codeweavers dot com ---
(In reply to Dongsheng Song from comment #14)
 Created attachment 30804 [details]
 32 bit gcc 4.9 build errors

This has to be fixed in mingw-w64-headers. I will attach a draft of the patch
for testing.


[Bug target/57848] internal compiler error on builtin and '#pragma GCC target()' option

2013-09-12 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848

--- Comment #18 from Jacek Caban jacek at codeweavers dot com ---
Created attachment 30806
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30806action=edit
mingw-w64-headers intrins fix


[Bug target/57848] internal compiler error on builtin and '#pragma GCC target()' option

2013-09-11 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848

--- Comment #13 from Jacek Caban jacek at codeweavers dot com ---
Yes, it helps. Thanks.


[Bug c/58287] New: internal compiler error: in c_builtin_function_ext_scope

2013-08-31 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58287

Bug ID: 58287
   Summary: internal compiler error: in
c_builtin_function_ext_scope
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jacek at codeweavers dot com

This is with trunk version. I found it during mingw-w64-crt compilation, but my
simplified test case crashes x86_64-unknown-linux-gnu as well. The test case is
as trivial as:

extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
#pragma GCC target(sse4.2)

and the backtrace is:

 #pragma GCC target(sse4.2)
 ^
0x518de2 c_builtin_function_ext_scope(tree_node*)
../../gcc-git/gcc/c/c-decl.c:3633
0x81d720 add_builtin_function_common
../../gcc-git/gcc/langhooks.c:561
0x81e373 add_builtin_function_ext_scope(char const*, tree_node*, int,
built_in_class, char const*, tree_node*)
../../gcc-git/gcc/langhooks.c:597
0xb92b38 ix86_add_new_builtins
../../gcc-git/gcc/config/i386/i386.c:27368
0xb92b38 ix86_valid_target_attribute_tree(tree_node*)
../../gcc-git/gcc/config/i386/i386.c:4631
0x5d137c ix86_pragma_target_parse
../../gcc-git/gcc/config/i386/i386-c.c:393
0x5b73cd handle_pragma_target
../../gcc-git/gcc/c-family/c-pragma.c:805
0x55596f c_parser_pragma
../../gcc-git/gcc/c/c-parser.c:8972
0x5675ab c_parser_external_declaration
../../gcc-git/gcc/c/c-parser.c:1345
0x568066 c_parser_translation_unit
../../gcc-git/gcc/c/c-parser.c:1251
0x568066 c_parse_file()
../../gcc-git/gcc/c/c-parser.c:11223
0x5b4f14 c_common_parse_file()
../../gcc-git/gcc/c-family/c-opts.c:1046


[Bug c/58287] [4.9 regression] internal compiler error: in c_builtin_function_ext_scope

2013-08-31 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58287

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Jacek Caban jacek at codeweavers dot com ---
Sorry, I didn't find that one.

*** This bug has been marked as a duplicate of bug 57848 ***


[Bug target/57848] internal compiler error on builtin and '#pragma GCC target()' option

2013-08-31 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 CC||jacek at codeweavers dot com

--- Comment #8 from Jacek Caban jacek at codeweavers dot com ---
*** Bug 58287 has been marked as a duplicate of this bug. ***


[Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine

2011-07-29 Thread jacek at codeweavers dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

Jacek Caban jacek at codeweavers dot com changed:

   What|Removed |Added

 CC||jacek at codeweavers dot
   ||com

--- Comment #21 from Jacek Caban jacek at codeweavers dot com 2011-07-29 
18:55:54 UTC ---
FWIW mutation.c was a Wine bug that is already fixed in Wine.


[Bug c++/43031] [4.5 Regression] internal compiler error: verify_gimple failed after non-trivial conversion error when crosscompiling Firefox

2010-02-16 Thread jacek at codeweavers dot com


--- Comment #7 from jacek at codeweavers dot com  2010-02-16 13:35 ---
I've confirmed that it's fixed for Mozilla code. Thank you!


-- 


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



[Bug c++/43093] New: [4.5 Regression] internal compiler error: Segmentation fault when compiling Firefox

2010-02-16 Thread jacek at codeweavers dot com
I get following compiler error when cross compiling Mozilla:

i686-mingw32-g++ -mno-cygwin -o nsSVGOuterSVGFrame.o -c  -DMOZILLA_INTERNAL_API
-D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX
-D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DZLIB_INTERNAL
-DOSTYPE=\WINNT\ -DOSARCH=WINNT -D_IMPL_NS_LAYOUT
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../base
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../generic
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../style
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../xul/base/src
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../../content/svg/content/src
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../../content/base/src
 -I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src -I.
-I../../../../dist/include -I../../../../dist/include/nsprpub 
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nspr
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nss -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -Wno-long-long -pedantic
-fno-strict-aliasing -mms-bitfields -pipe  -DDEBUG -D_DEBUG -DDEBUG_ -DTRACING
-g   -DCROSS_COMPILE=1 -DMOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1 -DWINVER=0x502
-D_WIN32_WINNT=0x502 -D_WIN32_IE=0x0500 -DMOZ_WINSDK_TARGETVER=0x0502
-DMOZ_NTDDI_WS03=0x0502 -DMOZ_NTDDI_LONGHORN=0x0600
-DMOZ_NTDDI_WIN7=0x0601 -DMOZILLA_VERSION=\1.9.3a2pre\
-DMOZILLA_VERSION_U=1.9.3a2pre -DHAVE_SNPRINTF=1 -D_WINDOWS=1 -DWIN32=1
-DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DSTDC_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1
-DNO_X11=1 -D_X86_=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1
-DHAVE_IO_H=1 -DHAVE_LIBM=1 -DNO_X11=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_SETBUF=1 -DHAVE_ISATTY=1
-DHAVE_THREAD_TLS_KEYWORD=1 -DNS_ENABLE_TSF=1 -DMOZ_PHOENIX=1
-DMOZ_BUILD_APP=browser -DMOZ_DEFAULT_TOOLKIT=\cairo-windows\
-DMOZ_DISTRIBUTION_ID=\org.mozilla\ -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1
-DMOZ_OGG=1 -DATTRIBUTE_ALIGNED_MAX=64 -DMOZ_WAVE=1 -DMOZ_SYDNEYAUDIO=1
-DMOZ_MEDIA=1 -DMOZ_XTF=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_MATHML=1
-DMOZ_SVG=1 -DMOZ_SMIL=1 -DMOZ_UPDATE_CHANNEL=default
-DMOZ_DISABLE_PARENTAL_CONTROLS=1 -DMOZ_PLACES=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1
-DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1
-DHAVE___CXA_DEMANGLE=1 -DMOZ_DEMANGLE_SYMBOLS=1 -DHAVE__UNWIND_BACKTRACE=1
-DMOZ_CHROME_FILE_FORMAT_JAR=1 -DMOZ_USER_DIR=\Mozilla\ -DMOZ_ENABLE_LIBXUL=1
-DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DMOZ_TREE_CAIRO=1 -DHAVE_UINT64_T=1
-DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DBUILD_CTYPES=1
-DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\.dll\ -DMOZ_REFLOW_PERF=1
-DMOZ_REFLOW_PERF_DSP=1  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/nsSVGOuterSVGFrame.cpp
/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/nsSVGOuterSVGFrame.cpp:
In member function 'PRBool
nsSVGOuterSVGFrame::UpdateAndInvalidateCoveredRegion(nsIFrame*)':
/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/nsSVGOuterSVGFrame.cpp:640:49:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

GCC 4.4.3 works fine. My GCC version:
$ i686-mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=i686-mingw32-g++
COLLECT_LTO_WRAPPER=/home/jacek/gcc/mingw/libexec/gcc/i686-mingw32/4.5.0/lto-wrapper
Target: i686-mingw32
Configured with: ../gcc/configure --prefix=/home/jacek/gcc/mingw
--target=i686-mingw32 --with-gnu-ld --with-gnu-as --enable-__cxa_atexit
target_alias=i686-mingw32 --enable-languages=c,c++
Thread model: win32
gcc version 4.5.0 20100216 (experimental) (GCC)


-- 
   Summary: [4.5 Regression] internal compiler error: Segmentation
fault when compiling Firefox
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jacek at codeweavers dot com
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: i686-mingw32


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



[Bug c++/43093] [4.5 Regression] internal compiler error: Segmentation fault when compiling Firefox

2010-02-16 Thread jacek at codeweavers dot com


--- Comment #1 from jacek at codeweavers dot com  2010-02-16 13:45 ---
Created an attachment (id=19888)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19888action=view)
Preprocessed nsSVGOuterSVGFrame.cpp

Result of command

$ i686-mingw32-g++ -mno-cygwin -o nsSVGOuterSVGFrame.o -c 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES 
-DZLIB_INTERNAL -DOSTYPE=\WINNT\ -DOSARCH=WINNT -D_IMPL_NS_LAYOUT
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../base
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../generic
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../style
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../xul/base/src
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../../content/svg/content/src
-I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/../../../../content/base/src
 -I/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src -I.
-I../../../../dist/include -I../../../../dist/include/nsprpub 
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nspr
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nss -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -Wno-long-long -pedantic
-fno-strict-aliasing -mms-bitfields -pipe  -DDEBUG -D_DEBUG -DDEBUG_ -DTRACING
-g   -DCROSS_COMPILE=1 -DMOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1 -DWINVER=0x502
-D_WIN32_WINNT=0x502 -D_WIN32_IE=0x0500 -DMOZ_WINSDK_TARGETVER=0x0502
-DMOZ_NTDDI_WS03=0x0502 -DMOZ_NTDDI_LONGHORN=0x0600
-DMOZ_NTDDI_WIN7=0x0601 -DMOZILLA_VERSION=\1.9.3a2pre\
-DMOZILLA_VERSION_U=1.9.3a2pre -DHAVE_SNPRINTF=1 -D_WINDOWS=1 -DWIN32=1
-DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DSTDC_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1
-DNO_X11=1 -D_X86_=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1
-DHAVE_IO_H=1 -DHAVE_LIBM=1 -DNO_X11=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_SETBUF=1 -DHAVE_ISATTY=1
-DHAVE_THREAD_TLS_KEYWORD=1 -DNS_ENABLE_TSF=1 -DMOZ_PHOENIX=1
-DMOZ_BUILD_APP=browser -DMOZ_DEFAULT_TOOLKIT=\cairo-windows\
-DMOZ_DISTRIBUTION_ID=\org.mozilla\ -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1
-DMOZ_OGG=1 -DATTRIBUTE_ALIGNED_MAX=64 -DMOZ_WAVE=1 -DMOZ_SYDNEYAUDIO=1
-DMOZ_MEDIA=1 -DMOZ_XTF=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_MATHML=1
-DMOZ_SVG=1 -DMOZ_SMIL=1 -DMOZ_UPDATE_CHANNEL=default
-DMOZ_DISABLE_PARENTAL_CONTROLS=1 -DMOZ_PLACES=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1
-DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1
-DHAVE___CXA_DEMANGLE=1 -DMOZ_DEMANGLE_SYMBOLS=1 -DHAVE__UNWIND_BACKTRACE=1
-DMOZ_CHROME_FILE_FORMAT_JAR=1 -DMOZ_USER_DIR=\Mozilla\ -DMOZ_ENABLE_LIBXUL=1
-DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DMOZ_TREE_CAIRO=1 -DHAVE_UINT64_T=1
-DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DBUILD_CTYPES=1
-DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\.dll\ -DMOZ_REFLOW_PERF=1
-DMOZ_REFLOW_PERF_DSP=1  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
/home/jacek/mozilla-build/wine-gecko-git/layout/svg/base/src/nsSVGOuterSVGFrame.cpp
-save-temps

(compressed due to attachment size limit)


-- 


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



[Bug c++/43093] [4.5 Regression] internal compiler error: Segmentation fault when compiling Firefox

2010-02-16 Thread jacek at codeweavers dot com


--- Comment #2 from jacek at codeweavers dot com  2010-02-16 14:38 ---
Here is simplified test:

struct S {
  int x;
  S(const S s) {}
};

S __attribute__((__stdcall__)) getS();

void test()
{
  S s = getS();
}

It seems like calling stdcall function that returns a struct (or class) with
copying constructor causes the problem.


-- 


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



[Bug c++/43031] New: [regression] internal compiler error: verify_gimple failed after non-trivial conversion error when crosscompiling Firefox

2010-02-11 Thread jacek at codeweavers dot com
I get an following internal compiler error when compiling Mozilla source:

i686-mingw32-g++ -mno-cygwin -o nsDOMWorkerXHRProxy.o -c 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES 
-DZLIB_INTERNAL -DOSTYPE=\WINNT\ -DOSARCH=WINNT
-I/home/jacek/mozilla-build/wine-gecko-git/dom/base
-I/home/jacek/mozilla-build/wine-gecko-git/dom/src/json
-I/home/jacek/mozilla-build/wine-gecko-git/content/base/src
-I/home/jacek/mozilla-build/wine-gecko-git/content/events/src 
-I/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads -I.
-I../../../dist/include -I../../../dist/include/nsprpub 
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nspr
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nss -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -Wno-long-long -pedantic
-fno-strict-aliasing -mms-bitfields -pipe  -DDEBUG -D_DEBUG -DDEBUG_ -DTRACING
-g   -DCROSS_COMPILE=1 -DMOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1 -DWINVER=0x502
-D_WIN32_WINNT=0x502 -D_WIN32_IE=0x0500 -DMOZ_WINSDK_TARGETVER=0x0502
-DMOZ_NTDDI_WS03=0x0502 -DMOZ_NTDDI_LONGHORN=0x0600
-DMOZ_NTDDI_WIN7=0x0601 -DMOZILLA_VERSION=\1.9.3a2pre\
-DMOZILLA_VERSION_U=1.9.3a2pre -DHAVE_SNPRINTF=1 -D_WINDOWS=1 -DWIN32=1
-DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DSTDC_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1
-DNO_X11=1 -D_X86_=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1
-DHAVE_IO_H=1 -DHAVE_LIBM=1 -DNO_X11=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_SETBUF=1 -DHAVE_ISATTY=1
-DHAVE_THREAD_TLS_KEYWORD=1 -DNS_ENABLE_TSF=1 -DMOZ_PHOENIX=1
-DMOZ_BUILD_APP=browser -DMOZ_DEFAULT_TOOLKIT=\cairo-windows\
-DMOZ_DISTRIBUTION_ID=\org.mozilla\ -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1
-DMOZ_OGG=1 -DATTRIBUTE_ALIGNED_MAX=64 -DMOZ_WAVE=1 -DMOZ_SYDNEYAUDIO=1
-DMOZ_MEDIA=1 -DMOZ_XTF=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_MATHML=1
-DMOZ_SVG=1 -DMOZ_SMIL=1 -DMOZ_UPDATE_CHANNEL=default
-DMOZ_DISABLE_PARENTAL_CONTROLS=1 -DMOZ_PLACES=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1
-DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1
-DHAVE___CXA_DEMANGLE=1 -DMOZ_DEMANGLE_SYMBOLS=1 -DHAVE__UNWIND_BACKTRACE=1
-DMOZ_CHROME_FILE_FORMAT_JAR=1 -DMOZ_USER_DIR=\Mozilla\ -DMOZ_ENABLE_LIBXUL=1
-DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DMOZ_TREE_CAIRO=1 -DHAVE_UINT64_T=1
-DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DBUILD_CTYPES=1
-DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\.dll\ -DMOZ_REFLOW_PERF=1
-DMOZ_REFLOW_PERF_DSP=1  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp
/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp:
In member function 'void nsDOMWorkerXHRProxy::AddRemoveXHRListeners(PRBool)':
/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp:491:1:
error: non-trivial conversion at assignment
struct EventListenerFunction
struct
{
  nsresult nsIDOMEventTarget::T275f (struct nsIDOMEventTarget *, const struct
nsAString_internal , struct nsIDOMEventListener *, PRBool) * __pfn;
  int __delta;
}
addRemoveEventListener = addRemoveEventListener.320;

/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp:491:1:
error: non-trivial conversion at assignment
struct EventListenerFunction
struct
{
  nsresult nsIDOMEventTarget::T275f (struct nsIDOMEventTarget *, const struct
nsAString_internal , struct nsIDOMEventListener *, PRBool) * __pfn;
  int __delta;
}
addRemoveEventListener = addRemoveEventListener.321;

/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp:491:1:
internal compiler error: verify_gimple failed
Please submit a full bug report,

Compilation works fine with GCC 4.4.3. My GCC version is:

$ i686-mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=i686-mingw32-g++
COLLECT_LTO_WRAPPER=/home/jacek/gcc/mingw/libexec/gcc/i686-mingw32/4.5.0/lto-wrapper
Target: i686-mingw32
Configured with: ../gcc/configure --prefix=/home/jacek/gcc/mingw
--target=i686-mingw32 --with-gnu-ld --with-gnu-as --enable-__cxa_atexit
target_alias=i686-mingw32 --enable-languages=c,c++
Thread model: win32
gcc version 4.5.0 20100211 (experimental) (GCC)


-- 
   Summary: [regression] internal compiler error: verify_gimple
failed after non-trivial conversion error when
crosscompiling Firefox
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jacek at codeweavers dot com
  GCC host triplet: x86_64-pc

[Bug c++/43031] [regression] internal compiler error: verify_gimple failed after non-trivial conversion error when crosscompiling Firefox

2010-02-11 Thread jacek at codeweavers dot com


--- Comment #1 from jacek at codeweavers dot com  2010-02-11 13:08 ---
Created an attachment (id=19842)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19842action=view)
Preprocessed nsDOMWorkerXHRProxy.cpp

Result of command

i686-mingw32-g++ -mno-cygwin -o nsDOMWorkerXHRProxy.i -c 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES 
-DZLIB_INTERNAL -DOSTYPE=\WINNT\ -DOSARCH=WINNT
-I/home/jacek/mozilla-build/wine-gecko-git/dom/base
-I/home/jacek/mozilla-build/wine-gecko-git/dom/src/json
-I/home/jacek/mozilla-build/wine-gecko-git/content/base/src
-I/home/jacek/mozilla-build/wine-gecko-git/content/events/src 
-I/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads -I.
-I../../../dist/include -I../../../dist/include/nsprpub 
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nspr
-I/home/jacek/mozilla-build/mozilla-build/dist/include/nss -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -Wno-long-long -pedantic
-fno-strict-aliasing -mms-bitfields -pipe  -DDEBUG -D_DEBUG -DDEBUG_ -DTRACING
-g   -DCROSS_COMPILE=1 -DMOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1 -DWINVER=0x502
-D_WIN32_WINNT=0x502 -D_WIN32_IE=0x0500 -DMOZ_WINSDK_TARGETVER=0x0502
-DMOZ_NTDDI_WS03=0x0502 -DMOZ_NTDDI_LONGHORN=0x0600
-DMOZ_NTDDI_WIN7=0x0601 -DMOZILLA_VERSION=\1.9.3a2pre\
-DMOZILLA_VERSION_U=1.9.3a2pre -DHAVE_SNPRINTF=1 -D_WINDOWS=1 -DWIN32=1
-DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DSTDC_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1
-DNO_X11=1 -D_X86_=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1
-DHAVE_IO_H=1 -DHAVE_LIBM=1 -DNO_X11=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_SETBUF=1 -DHAVE_ISATTY=1
-DHAVE_THREAD_TLS_KEYWORD=1 -DNS_ENABLE_TSF=1 -DMOZ_PHOENIX=1
-DMOZ_BUILD_APP=browser -DMOZ_DEFAULT_TOOLKIT=\cairo-windows\
-DMOZ_DISTRIBUTION_ID=\org.mozilla\ -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1
-DMOZ_OGG=1 -DATTRIBUTE_ALIGNED_MAX=64 -DMOZ_WAVE=1 -DMOZ_SYDNEYAUDIO=1
-DMOZ_MEDIA=1 -DMOZ_XTF=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_MATHML=1
-DMOZ_SVG=1 -DMOZ_SMIL=1 -DMOZ_UPDATE_CHANNEL=default
-DMOZ_DISABLE_PARENTAL_CONTROLS=1 -DMOZ_PLACES=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1
-DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1
-DHAVE___CXA_DEMANGLE=1 -DMOZ_DEMANGLE_SYMBOLS=1 -DHAVE__UNWIND_BACKTRACE=1
-DMOZ_CHROME_FILE_FORMAT_JAR=1 -DMOZ_USER_DIR=\Mozilla\ -DMOZ_ENABLE_LIBXUL=1
-DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DMOZ_TREE_CAIRO=1 -DHAVE_UINT64_T=1
-DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DBUILD_CTYPES=1
-DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\.dll\ -DMOZ_REFLOW_PERF=1
-DMOZ_REFLOW_PERF_DSP=1  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
/home/jacek/mozilla-build/wine-gecko-git/dom/src/threads/nsDOMWorkerXHRProxy.cpp
-save-temps -E

is attached. It's compressed due to 1MB attachment size limit.


-- 


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



[Bug c++/9381] attribute on member function pointer have no effect

2009-10-09 Thread jacek at codeweavers dot com


--- Comment #12 from jacek at codeweavers dot com  2009-10-09 13:24 ---
(In reply to comment #6)
 Not a regression any more.

It is a regression now. It worked in 3.4 and doesn't work in 4.x. That's why
I'm still using GCC 3.4.6.


-- 


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