[Bug middle-end/43221] New: [LTO] ICE in get_alias_set

2010-03-01 Thread d dot g dot gorbachev at gmail dot com
Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzi

[Bug middle-end/43221] [LTO] ICE in get_alias_set

2010-03-01 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-01 15:54 --- Created an attachment (id=1) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=1&action=view) Testcase Compile with `gcc -O2 -flto 1.c 2.c' -- http://gcc.gnu.org/bugzilla/sho

[Bug middle-end/43316] New: fold check: original tree changed by fold

2010-03-09 Thread d dot g dot gorbachev at gmail dot com
dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43316

[Bug middle-end/43316] fold check: original tree changed by fold

2010-03-09 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-10 00:01 --- Created an attachment (id=20068) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20068&action=view) Backtrace -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43316

[Bug middle-end/43316] fold check: original tree changed by fold

2010-03-09 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-03-10 00:01 --- Created an attachment (id=20070) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20070&action=view) Testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43316

[Bug middle-end/43057] [LTO] fold check: original tree changed by fold

2010-03-09 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-03-10 00:17 --- Created an attachment (id=20071) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20071&action=view) Another testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43057

[Bug lto/43318] LTO ICE with minimal C++ program

2010-03-09 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-03-10 00:32 --- Bug 42402. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43318

[Bug c/43319] Lack of documentation on asm extension

2010-03-10 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-10 11:17 --- Machine-independent templates are described in gccint.info, in the "Output Templates and Operand Substitution" section. Online documentation is here: <http://gcc.gnu.org/onlinedocs/

[Bug driver/43335] New: Driver crashes dereferencing a null pointer if it can't find lto-wrapper

2010-03-11 Thread d dot g dot gorbachev at gmail dot com
4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43335

[Bug driver/43335] Driver crashes dereferencing a null pointer if it can't find lto-wrapper

2010-03-11 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-11 19:26 --- Created an attachment (id=20086) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20086&action=view) Patch I use this patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43335

[Bug other/43336] New: GCC leaves a temporary LTO output file in $TMPDIR

2010-03-11 Thread d dot g dot gorbachev at gmail dot com
: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43336

[Bug other/43336] GCC leaves a temporary LTO output file in $TMPDIR

2010-03-11 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-11 19:29 --- Created an attachment (id=20088) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20088&action=view) Patch This "mustard plaster" helps me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43336

[Bug other/43336] GCC leaves a temporary LTO output file in $TMPDIR

2010-03-12 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-03-12 20:01 --- Patch: <http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00492.html> Diego Novillo wrote: > OK. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43336

[Bug regression/43356] Wrong code and misleading warning "statement with no effect"

2010-03-13 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-03-13 23:38 --- I believe that GCC is correct, and the warning is good. The actual bug was introduced in MinGW-w64 in revision 1699. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43356

[Bug driver/43371] New: Add -fresolution to the list of switches that take arguments

2010-03-14 Thread d dot g dot gorbachev at gmail dot com
tedBy: d dot g dot gorbachev at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43371

[Bug driver/43371] Add -fresolution to the list of switches that take arguments

2010-03-14 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-14 23:30 --- Created an attachment (id=20105) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20105&action=view) Patch to add "fresolution" to gcc.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43371

[Bug lto/43467] New: LTO error "bytecode stream: trying to read 0 bytes after the end of the input buffer"

2010-03-21 Thread d dot g dot gorbachev at gmail dot com
onent: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43467

[Bug lto/43467] LTO error "bytecode stream: trying to read 0 bytes after the end of the input buffer"

2010-03-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-03-21 17:25 --- Created an attachment (id=20151) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20151&action=view) Testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43467

[Bug target/42886] [4.5 Regression] GCC is not relocatable anymore on Windows (mingw32)

2010-03-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #5 from d dot g dot gorbachev at gmail dot com 2010-03-21 18:00 --- My GCC (4.4 and 4.5) were configured with the following options: `--build=mingw32 --enable-languages=c,c++ --enable-version-specific-runtime-libs --disable-win32-registry --disable-nls --disable-shared

[Bug middle-end/42127] New: Verify_flow_info: Wrong frequency of block. Profiled bootstrap failed.

2009-11-20 Thread d dot g dot gorbachev at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42127

[Bug middle-end/42127] Verify_flow_info: Wrong frequency of block. Profiled bootstrap failed.

2009-11-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-11-21 13:40 --- This maybe related to r154291 (tree-optimize.c (execute_fixup_cfg): Rescale frequencies.) Counts are not rescaled for entry block and exit block. Then in counts_to_freqs(), their frequencies become very

[Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)

2009-11-26 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2009-11-26 11:02 --- > note that there are no warnings A warning is issued with -Wstrict-aliasing=1 or -Wstrict-aliasing=2, but no warning with -Wstrict-aliasing=3 (or -Wall). I see there are already a few bug reports ab

[Bug other/42192] New: Regression: build with --enable-build-with-cxx failed

2009-11-26 Thread d dot g dot gorbachev at gmail dot com
Summary: Regression: build with --enable-build-with-cxx failed Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy

[Bug other/42192] Regression: build with --enable-build-with-cxx failed

2009-11-26 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-11-27 07:17 --- Patch: <http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00730.html>. -- d dot g dot gorbachev at gmail dot com changed: What|Removed

[Bug objc/42293] New: Can't build ObjC runtime library with GC for W32 target

2009-12-04 Thread d dot g dot gorbachev at gmail dot com
Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/

[Bug objc/42293] Can't build ObjC runtime library with GC for W32 target

2009-12-04 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-12-05 00:51 --- Created an attachment (id=19232) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19232&action=view) Compiler error messages -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42293

[Bug objc/42293] Can't build ObjC runtime library with GC for W32 target

2009-12-04 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-05 03:55 --- Created an attachment (id=19235) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19235&action=view) Diff file This allows me to compile it, but quoting from windef.h: /* FIXME: Is there a good s

[Bug debug/41806] G++ fails to compile a testcase with -fcompare-debug

2009-12-05 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2009-12-05 22:28 --- Can't reproduce with this testcase and g++ 4.5.0 20091203. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41806

[Bug objc/42293] Can't build ObjC runtime library with GC for W32 target

2009-12-09 Thread d dot g dot gorbachev at gmail dot com
--- Comment #5 from d dot g dot gorbachev at gmail dot com 2009-12-09 23:43 --- > In mingw-w64 platform headers we worked-a-round this by checking > for __OBJC__ to check, if we shouldn't define BOOL. The hack exists in mingw32 headers, too: 230 typedef int WINBOO

[Bug debug/41806] G++ fails to compile a testcase with -fcompare-debug

2009-12-13 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-13 22:06 --- This bug has disappeared. -- d dot g dot gorbachev at gmail dot com changed: What|Removed |Added

[Bug other/42192] Regression: build with --enable-build-with-cxx failed

2009-12-17 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2009-12-18 05:14 --- Committed revision 155211. -- d dot g dot gorbachev at gmail dot com changed: What|Removed |Added

[Bug lto/42426] New: ICE in get_resolution (lto)

2009-12-18 Thread d dot g dot gorbachev at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-

[Bug lto/42426] ICE in get_resolution (lto)

2009-12-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-12-18 11:49 --- Created an attachment (id=19343) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19343&action=view) Preprocessed sources Compile with `gcc src/* -flto -fuse-linker-plugin' -- http:/

[Bug lto/42426] ICE in get_resolution (lto)

2009-12-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2009-12-18 11:50 --- Created an attachment (id=19344) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19344&action=view) Backtrace -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42426

[Bug preprocessor/42407] Detect non-unique header file names.

2009-12-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-19 01:20 --- I guess this option should have a few warning levels. For example, -Wcovered-headers (or -Wcovered-headers=1, which is the same) will not warn about fixed and GCC's private include files. --

[Bug driver/42442] New: Unusual behavior of -march=native option

2009-12-20 Thread d dot g dot gorbachev at gmail dot com
ignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42442

[Bug lto/42426] ICE in get_resolution (lto)

2009-12-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-21 21:42 --- Created an attachment (id=19361) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19361&action=view) Small testcase Run `gcc -flto -fuse-linker-plugin 1.c 2.c' (or just `gcc -flto -fuse-lin

[Bug lto/42453] New: Assertion `syms' failed in lto-plugin

2009-12-21 Thread d dot g dot gorbachev at gmail dot com
Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42453

[Bug lto/42453] Assertion `syms' failed in lto-plugin

2009-12-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2009-12-21 22:32 --- Created an attachment (id=19362) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19362&action=view) Backtrace -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42453

[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2009-12-24 21:25 --- Some issues with -foptimize-sibling-calls were fixed in GCC 4.5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489

[Bug rtl-optimization/42489] Opt bug -foptimize-sibling-calls function call stalled! dead-lock, cpu max

2009-12-25 Thread d dot g dot gorbachev at gmail dot com
--- Comment #10 from d dot g dot gorbachev at gmail dot com 2009-12-25 13:34 --- > No simple test-case code can be provided you have to read > libxml2 source error.c about less then 1000 lines. Could you please provide the preprocessed source file, as described here:

[Bug driver/42520] New: lto1 does not see -march and -mtune options

2009-12-28 Thread d dot g dot gorbachev at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet:

[Bug driver/42520] lto1 does not see -march and -mtune options

2010-01-01 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-01-01 16:51 --- Created an attachment (id=19436) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19436&action=view) Output of -v Does not work for me without --with-arch / --with-tune. -- http://gcc.

[Bug driver/42520] lto1 does not see -march and -mtune options

2010-01-01 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-01-01 17:52 --- `-fuse-linker-plugin' is crucial to reproduce this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42520

[Bug lto/42426] ICE in get_resolution (lto)

2010-01-11 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-01-11 13:08 --- Fixed in r155800. -- d dot g dot gorbachev at gmail dot com changed: What|Removed |Added

[Bug lto/42690] New: Undefined reference errors with -flto -fuse-linker-plugin

2010-01-11 Thread d dot g dot gorbachev at gmail dot com
gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-11 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-11 15:25 --- Created an attachment (id=19541) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19541&action=view) testcase GCC 4.5.0 20100107. gcc -flto -fuse-linker-plugin pr42690.c -DBUG --

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-14 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2010-01-14 22:15 --- > Is the undefined reference to libgcc? Is it being linked statically? Yes. In both cases (with and without -DBUG), the ld command line is /usr/local/bin/ld -plugin /usr/local/libexec/gcc/i686-pc-li

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #7 from d dot g dot gorbachev at gmail dot com 2010-01-15 11:01 --- Created an attachment (id=19610) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19610&action=view) 1. Configured w/o --disable-shared, linking with a shared libgcc. Output of gcc -v --

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #8 from d dot g dot gorbachev at gmail dot com 2010-01-15 11:02 --- Created an attachment (id=19611) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19611&action=view) 2. Configured w/o --disable-shared, linking with a static libgcc (with -static). --

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #9 from d dot g dot gorbachev at gmail dot com 2010-01-15 11:02 --- Created an attachment (id=19612) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19612&action=view) 3. Configured with --disable-shared, linking with a static libgcc. -- http://gcc.gnu.org/b

[Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #10 from d dot g dot gorbachev at gmail dot com 2010-01-15 11:02 --- Created an attachment (id=19613) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19613&action=view) 4. Configured with --disable-shared, linking with a static libgcc (with -static). --

[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #11 from d dot g dot gorbachev at gmail dot com 2010-01-15 11:03 --- GCC was configured with --disable-shared option. It seems that the driver does not understand that --disable-shared implies static libgcc -- d dot g dot gorbachev at gmail dot com changed

[Bug lto/42757] New: lto1 does not emit common symbols

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42757

[Bug lto/42757] lto1 does not emit common symbols

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-15 13:34 --- Created an attachment (id=19614) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19614&action=view) Testcase It produces error: undefined reference to 'i' -- http://gcc

[Bug other/42756] Build fails if gold is used as linker and some libraries reside is /usr/local/lib

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-15 14:45 --- Try to set LIBRARY_PATH, i.e.: export LIBRARY_PATH=/usr/local/lib -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42756

[Bug other/42756] Build fails if gold is used as linker and some libraries reside is /usr/local/lib

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-01-15 14:57 --- Well, and LD_LIBRARY_PATH=/usr/local/lib , too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42756

[Bug lto/42762] New: ICE in get_resolution() when compiling a C++ program with -flto -fuse-linker-plugin

2010-01-15 Thread d dot g dot gorbachev at gmail dot com
at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42762

[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-16 Thread d dot g dot gorbachev at gmail dot com
--- Comment #13 from d dot g dot gorbachev at gmail dot com 2010-01-16 16:55 --- (In reply to comment #12) > What options other than -nostdlib prevent gcc from linking libgcc and > libc in the produced binary? I know of -nodefaultlibs. > To implement this we should al

[Bug other/42756] Build fails if gold is used as linker and some libraries reside is /usr/local/lib

2010-01-16 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-01-16 17:22 --- This looks like a bug in gold rather then in GCC. Try the latest development version of gold <http://sourceware.org/binutils/>. If it still fails, please file a bug report with more details at

[Bug lto/42776] LTO doesn't work on non-ELF platforms.

2010-01-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #3 from d dot g dot gorbachev at gmail dot com 2010-01-18 11:02 --- (In reply to comment #1) > work in progress patch This seems to cause "*** No rule to make target `lto/@lto_binary_rea...@.o', needed by `lto1'." error when build = host = tar

[Bug lto/42776] LTO doesn't work on non-ELF platforms.

2010-01-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #5 from d dot g dot gorbachev at gmail dot com 2010-01-18 11:51 --- > did you run autoconf? Forgot to run it, to my disgrace. :) Sorry, false alarm. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776

[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin

2010-01-18 Thread d dot g dot gorbachev at gmail dot com
--- Comment #15 from d dot g dot gorbachev at gmail dot com 2010-01-18 18:48 --- Created an attachment (id=19649) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19649&action=view) Simple patch It leaves -plugin-opt in LINK_COMMAND_SPEC, but I think it is not quite ri

[Bug lto/42776] LTO doesn't work on non-ELF platforms.

2010-01-21 Thread d dot g dot gorbachev at gmail dot com
--- Comment #12 from d dot g dot gorbachev at gmail dot com 2010-01-22 01:17 --- The patch works for mingw. So you can enable lto for it, too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776

[Bug tree-optimization/42890] New: Crash in type_like_member_ptr_p (IPA)

2010-01-27 Thread d dot g dot gorbachev at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42890

[Bug tree-optimization/42890] Crash in type_like_member_ptr_p (IPA)

2010-01-27 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-28 01:18 --- Created an attachment (id=19734) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19734&action=view) Backtrace -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42890

[Bug tree-optimization/42890] Crash in type_like_member_ptr_p (IPA)

2010-01-27 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-01-28 01:23 --- Created an attachment (id=19735) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19735&action=view) Testcase g++ -O -findirect-inlining -fipa-cp -fipa-cp-clone pr42890.cc -- http://gcc.

[Bug c++/42870] [4.5 regression] __attribute__ ((dllexport)) produces broken linkage

2010-01-27 Thread d dot g dot gorbachev at gmail dot com
--- Comment #4 from d dot g dot gorbachev at gmail dot com 2010-01-28 02:47 --- Same thing with mingw32. GCC 4.4.3 20091110 - works, GCC 4.5.0 20100114 - bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42870

[Bug other/42756] Build fails if gold is used as linker and some libraries reside is /usr/local/lib

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #6 from d dot g dot gorbachev at gmail dot com 2010-01-29 23:42 --- > in my opinion, it's necessary that the build scripts > specify all library directories explicitely. Then use configure options --with-ppl / --with-ppl-include / --with-ppl-lib, and --with-clo

[Bug other/42903] New: Compare-debug fails on files compiled with -flto

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42903

[Bug other/42903] Compare-debug fails on files compiled with -flto

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-29 23:48 --- Created an attachment (id=19756) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19756&action=view) Preprocessed source $ gcc -flto c-lang.c -c -o stage3-c-lang.o $ gcc -flto -gtoggle c-lang.

[Bug other/42903] Compare-debug fails on files compiled with -flto

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-01-29 23:50 --- Compare-debug should probably strip .gnu.lto_* sections before compare. -- d dot g dot gorbachev at gmail dot com changed: What|Removed |Added

[Bug target/42904] New: Attribute dllexport should imply externally_visible

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
ReportedBy: d dot g dot gorbachev at gmail dot com GCC target triplet: *-*-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42904

[Bug target/42904] Attribute dllexport should imply externally_visible

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-30 02:21 --- Created an attachment (id=19757) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19757&action=view) Testcase Produces "undefined reference to `_foo'" error. -- http:

[Bug middle-end/42905] New: G++ 4.5.0 doesn't warn about an uninitialized class member

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
nedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42905

[Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-01-30 03:08 --- Created an attachment (id=19758) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19758&action=view) Testcase g++ -O -Wuninitialized -S 1.cc Older g++s issue a warning: pr42905.cc: In function

[Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
-- d dot g dot gorbachev at gmail dot com changed: What|Removed |Added Severity|normal |enhancement Keywords

[Bug middle-end/42905] G++ 4.5.0 doesn't warn about an uninitialized class member

2010-01-29 Thread d dot g dot gorbachev at gmail dot com
--- Comment #2 from d dot g dot gorbachev at gmail dot com 2010-01-30 03:13 --- (In reply to comment #1) Sorry, it should be pr42905.cc, not 1.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42905

[Bug lto/42776] LTO doesn't work on non-ELF platforms.

2010-02-03 Thread d dot g dot gorbachev at gmail dot com
--- Comment #14 from d dot g dot gorbachev at gmail dot com 2010-02-03 10:15 --- There is a portability issue in is_elf_or_coff: fopen should be called with "rb" instead of "r". Otherwise, fread fails when a COFF file has 26 sections, because it is interpreted as

[Bug lto/42985] New: Internal compiler error: in ipcp_iterate_stage, at ipa-cp.c:759

2010-02-06 Thread d dot g dot gorbachev at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: d dot g dot gorbachev at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42985

[Bug lto/42985] Internal compiler error: in ipcp_iterate_stage, at ipa-cp.c:759

2010-02-06 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-02-06 09:29 --- Created an attachment (id=19812) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19812&action=view) Testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42985

[Bug inline-asm/42984] gcc produces broken code when passing struct pointer to static inline function with asm()

2010-02-06 Thread d dot g dot gorbachev at gmail dot com
--- Comment #1 from d dot g dot gorbachev at gmail dot com 2010-02-06 10:18 --- I believe that GCC is correct, and you should write asm volatile ("swi #0" :: "r" (a), "m" (*t)); Quoting from <http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html>:

<    1   2