[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-23 Thread jiez at gcc dot gnu dot org
--- Comment #2 from jiez at gcc dot gnu dot org 2010-04-23 07:23 --- Updated patch http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01386.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43833

[Bug middle-end/43864] New: Same basic blocks should be merged

2010-04-23 Thread carrot at google dot com
Following is a simple example: #include void foo (char*, FILE*); char* hprofStartupp(char *outputFileName, char *ctx) { char fileName[1000]; FILE *fp; sprintf(fileName, outputFileName); if (access(fileName, 1) == 0) { free(ctx); //A return 0;

[Bug middle-end/43864] Same basic blocks should be merged

2010-04-23 Thread carrot at google dot com
--- Comment #1 from carrot at google dot com 2010-04-23 07:28 --- Created an attachment (id=20469) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20469&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43864

[Bug middle-end/43864] Same basic blocks should be merged

2010-04-23 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2010-04-23 07:38 --- *** This bug has been marked as a duplicate of 20070 *** -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/20070] If-conversion can't match equivalent code, and cross-jumping only works for literal matches

2010-04-23 Thread steven at gcc dot gnu dot org
--- Comment #33 from steven at gcc dot gnu dot org 2010-04-23 07:38 --- *** Bug 43864 has been marked as a duplicate of this bug. *** -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43841] Missing temporary for ELEMENTAL function call

2010-04-23 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2010-04-23 08:12 --- I posted a fix this morning. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/43863] C++ without exceptions is deficient

2010-04-23 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-04-23 09:09 --- In Bug 43852 I thought you meant building with -fno-exceptions fails, but it works for me ... do you just mean the resulting library is not as small as it could be? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43

[Bug c++/43865] New: C++ in freestanding environment

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
You can disable the requirement of a hosted environment for C++ and use the freestanding environment via a configure option: --disable-hosted-libstdcxx This leads to build errors. The configure command line was: "$source_dir/configure" \ "--prefix=/opt/rtems-4.10" \ "--target=ar

[Bug middle-end/43866] New: wrong code with -O3 -fbounds-check

2010-04-23 Thread jv244 at cam dot ac dot uk
compiling the testcase below with gfortran -O3 -fbounds-check yields under 'valgrind --tool=memcheck ./a.out' ==23130== ==23130== Conditional jump or move depends on uninitialised value(s) ==23130==at 0x4008BD: __m1_MOD_cp_fm_upper_to_full (in /data03/vondele/bugs/ttt/a.out) ==23130==b

[Bug c++/43865] C++ in freestanding environment

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
--- Comment #1 from sebastian dot huber at embedded-brains dot de 2010-04-23 09:14 --- Created an attachment (id=20470) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20470&action=view) Compile errors from above "$ make -i". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865

[Bug libstdc++/43852] Embedded systems friendly libstdc++

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
--- Comment #4 from sebastian dot huber at embedded-brains dot de 2010-04-23 09:16 --- Bug report for 1. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43863. Bug report for 2. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43865 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43852

[Bug libstdc++/43852] Embedded systems friendly libstdc++

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
--- Comment #5 from sebastian dot huber at embedded-brains dot de 2010-04-23 09:20 --- Created an attachment (id=20471) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20471&action=view) Lets call it quiet. Configure option may be --enable-quiet-cxx. -- http://gcc.gnu.org/bugz

[Bug middle-end/43866] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #1 from jv244 at cam dot ac dot uk 2010-04-23 09:21 --- The error also appears with: gfortran -fbounds-check -O1 -funswitch-loops test.f90 -- jv244 at cam dot ac dot uk changed: What|Removed |Added ---

[Bug middle-end/43866] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #2 from jv244 at cam dot ac dot uk 2010-04-23 09:25 --- reduced testcase: IMPLICIT NONE INTEGER, PARAMETER :: sp=4, dp=8 TYPE cp_fm_type REAL(KIND=sp), DIMENSION(:,:), POINTER :: local_data_sp REAL(KIND=dp), DIMENSION(:,:), POINTER :: local_data INTEGER

[Bug libstdc++/43863] C++ without exceptions is deficient

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
--- Comment #3 from sebastian dot huber at embedded-brains dot de 2010-04-23 09:28 --- (In reply to comment #2) > In Bug 43852 I thought you meant building with -fno-exceptions fails, but it > works for me ... do you just mean the resulting library is not as small as it > could be? >

[Bug libstdc++/43865] C++ in freestanding environment

2010-04-23 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|c++ |libstdc++ Ever

[Bug libstdc++/43863] Unused recursive_init_error class defined with -fno-exceptions

2010-04-23 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-04-23 09:36 --- confirmed as an enhancement request -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/43852] Embedded systems friendly libstdc++

2010-04-23 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-04-23 09:37 --- thanks for filing the other two bugs confirmed as an enhancement -- redi at gcc dot gnu dot org changed: What|Removed |Added -

[Bug libstdc++/43863] Unused recursive_init_error class defined with -fno-exceptions

2010-04-23 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-04-23 10:02 --- Simply removing this class now would break the ABI, which is not acceptable. If Bug 43852 was resolved by adding a "quiet" mode, would that make this enhancement unnecessary? That mode would also change the ABI, but wo

[Bug rtl-optimization/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands

2010-04-23 Thread mkuvyrkov at gcc dot gnu dot org
--- Comment #10 from mkuvyrkov at gcc dot gnu dot org 2010-04-23 10:20 --- The problem seems to be in Richard's patch (http://article.gmane.org/gmane.comp.gcc.patches/130602) checked in r120961. All and all, it seems that revision 120961 should be reverted to enable 'T' constraint for

[Bug libstdc++/43865] C++ in freestanding environment

2010-04-23 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-04-23 10:27 --- building 4.6.0 with --disable-hosted-libstdcxx I get In file included from ../../../../gcc-4.x/libstdc++-v3/libsupc++/eh_call.cc:27:0: /home/redi/src/gcc/buildfree/x86_64-unknown-linux-gnu/libstdc++-v3/include/cstdlib:

[Bug middle-end/43866] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #3 from jv244 at cam dot ac dot uk 2010-04-23 10:30 --- It looks like in the .optimized dump these: a_sp$offset = amat->local_data_sp.offset; a_sp$dim$1$stride = amat->local_data_sp.dim[1].stride; a_sp$dim$1$ubound = amat->local_data_sp.dim[1].ubound; a_sp$dim$1$lbou

[Bug libstdc++/43863] Unused recursive_init_error class defined with -fno-exceptions

2010-04-23 Thread sebastian dot huber at embedded-brains dot de
--- Comment #6 from sebastian dot huber at embedded-brains dot de 2010-04-23 10:59 --- (In reply to comment #5) > Simply removing this class now would break the ABI, which is not acceptable. > If Bug 43852 was resolved by adding a "quiet" mode, would that make this > enhancement unneces

[Bug middle-end/43866] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-23 12:29 --- Hm, I can't reproduce this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43866

[Bug bootstrap/43858] [4.6 Regression] Bootstrap failure for powerpc-apple-darwin9: cannot compute suffix of object files

2010-04-23 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43858

[Bug lto/43857] -fresolution causes an ICE

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 12:35 --- -fresolution is an internal option. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43857

[Bug middle-end/43853] [4.6 Regression] FAIL: gcc.dg/lto/20090126-1 c_lto_20090126-1_0.o-c_lto_20090126-1_0.o

2010-04-23 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||hubicka at gcc dot gnu dot |

[Bug inline-asm/43518] ARM register constraint for ldrd and strd instructions

2010-04-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #3 from rearnsha at gcc dot gnu dot org 2010-04-23 12:44 --- EABI configurations will guarantee that 64-bit sized objects will be in even/odd register pairs. It's best not to use LDRD on the old ABI because in general the ABI can't guarantee the alignment requirements for m

[Bug lto/42653] ICE with -g and -flto (requires both flags to crash)

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-23 12:55 --- I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|

[Bug lto/43377] lto decreases C++ stacktrace readability (debuginfo pubnames).

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-23 13:23 --- (In reply to comment #2) > Because we drop DECL_CONTEXT. Rather because lang_hooks.dwarf_name returns what lang_hooks.decl_printable_name returns which in turn returns DECL_NAME. We can either save what the langhoo

[Bug middle-end/43866] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #5 from jv244 at cam dot ac dot uk 2010-04-23 13:32 --- (In reply to comment #4) > Hm, I can't reproduce this. I see, the reduced testcase (comment #2) indeed doesn't fail with trunk anymore, but the original does (but only at -O3 -fbounds-check). -- http://gcc.gnu.org

[Bug lto/43455] ICE in fold_convert_loc, at fold-const.c:2670 with -O2 -flto

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-23 13:39 --- I am testing a patch to tree_can_inline_p instead. That doesn't work with WPA as we do not have the call_stmt available there - Honza, any idea where to re-apply the check? -- rguenth at gcc dot gnu dot org chan

[Bug tree-optimization/43845] [4.4 Regression] Segfault when using __attribute__((const)), versions 4.4.3 and 4.6

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-23 14:07 --- Subject: Bug 43845 Author: rguenth Date: Fri Apr 23 14:07:38 2010 New Revision: 158665 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158665 Log: 2010-04-23 Richard Guenther Backport from mainlin

[Bug libgomp/43706] scheduling two threads on one core leads to starvation

2010-04-23 Thread singler at kit dot edu
--- Comment #13 from singler at kit dot edu 2010-04-23 14:17 --- The default spin count is not 2,000,000 cycles, but even 20,000,000. As commented in libgomp/env.c, this is supposed to correspond to 200ms. The timings we see here are even larger, but the number of cycles is just a roug

[Bug lto/42653] ICE with -g and -flto (requires both flags to crash)

2010-04-23 Thread rguenth at gcc dot gnu dot org
to/42653 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT of FUNCTION_DECLs. * g++.dg/lto/20100423-1_0.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/lto/20100423-1_0.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.c --

[Bug bootstrap/39023] lto-plugin.c uses mkdtemp unconditionally

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 14:33 --- This was fixed by 2009-11-05 Rafael Avila de Espindola * lto-plugin.c (temp_obj_dir_name): Remove. (arguments_file_name): New. (free_2): Free arguments_file_name instead of temp_obj_dir_n

[Bug lto/40702] lto-elf.c fails to compile on Solaris

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 14:34 --- What's the status of this bug? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40702

[Bug middle-end/43835] [4.5 Regression] IPA-SRA doesn't rewrite attributes

2010-04-23 Thread jamborm at gcc dot gnu dot org
--- Comment #5 from jamborm at gcc dot gnu dot org 2010-04-23 14:43 --- Subject: Bug 43835 Author: jamborm Date: Fri Apr 23 14:43:10 2010 New Revision: 158667 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158667 Log: 2010-04-23 Martin Jambor PR middle-end/43835

[Bug c++/43818] internal compiler error: Segmentation fault

2010-04-23 Thread oberlaender at fzi dot de
--- Comment #18 from oberlaender at fzi dot de 2010-04-23 14:52 --- (In reply to comment #17) > (In reply to comment #16) > > This has been fixed on the 4.4 branch, I can reproduce it with 4.4.3. > > OK, thanks for the information. I'm currently compiling gcc from the 4.4 > branch in s

[Bug tree-optimization/43846] [4.5 Regression] array vs members, total scalarization issues

2010-04-23 Thread jamborm at gcc dot gnu dot org
--- Comment #5 from jamborm at gcc dot gnu dot org 2010-04-23 14:52 --- Subject: Bug 43846 Author: jamborm Date: Fri Apr 23 14:52:06 2010 New Revision: 158668 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158668 Log: 2010-04-23 Martin Jambor PR tree-optimization/438

[Bug lto/41550] Fix security and portability issues in lto-plugin

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-23 15:05 --- I have patches. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|

[Bug lto/43455] ICE in fold_convert_loc, at fold-const.c:2670 with -O2 -flto

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 15:18 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug lto/43455] ICE in fold_convert_loc, at fold-const.c:2670 with -O2 -flto

2010-04-23 Thread rguenth at gcc dot gnu dot org
to/43455 * tree-inline.c (tree_can_inline_p): Also check compatibility of return types. * gcc.dg/lto/20100423-1_0.c: New testcase. * gcc.dg/lto/20100423-1_1.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/lto/20100423-1_0.c trunk/gcc/testsuite/gcc.dg/lto/201004

[Bug lto/41588] LTO bugs to be addressed before release

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 15:26 --- WONTFIX - we didn't fix this meta-bug before the release. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-23 15:32 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2010-04-23 Thread rguenth at gcc dot gnu dot org
to/41734 * gcc.dg/lto/20100423-2_0.c: New testcase. * gcc.dg/lto/20100423-2_0.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/lto/20100423-2_0.c trunk/gcc/testsuite/gcc.dg/lto/20100423-2_1.c Modified: trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734

[Bug tree-optimization/41835] ICE with -flto -O3 (BB N can not throw but has an EH edge)

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-23 15:38 --- Seems to work for me, even with the 4.5.0 release. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 15:39 --- Not a gcc bug. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|W

[Bug middle-end/41925] ICE in get_alias_set, at alias.c:710

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-23 15:44 --- The testcase no longer fails :/ -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43572] [4.5 Regression] FAIL: gfortran.dg/PR19872.f execution test; formatted read - wrong numbers

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #31 from rguenth at gcc dot gnu dot org 2010-04-23 15:46 --- Subject: Bug 43572 Author: rguenth Date: Fri Apr 23 15:46:23 2010 New Revision: 158671 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158671 Log: 2010-04-23 Richard Guenther PR tree-optimizatio

[Bug tree-optimization/43572] [4.5 Regression] FAIL: gfortran.dg/PR19872.f execution test; formatted read - wrong numbers

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #32 from rguenth at gcc dot gnu dot org 2010-04-23 15:48 --- Subject: Bug 43572 Author: rguenth Date: Fri Apr 23 15:47:44 2010 New Revision: 158672 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158672 Log: 2010-04-23 Richard Guenther PR tree-optimizatio

[Bug lto/41550] Fix security and portability issues in lto-plugin

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-23 15:49 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Known to fail|

[Bug lto/41550] Fix security and portability issues in lto-plugin

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 15:49 --- Subject: Bug 41550 Author: rguenth Date: Fri Apr 23 15:49:10 2010 New Revision: 158673 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158673 Log: 2010-04-23 Richard Guenther PR lto/41550

[Bug lto/41550] Fix security and portability issues in lto-plugin

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-23 15:49 --- , -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/42341] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:228

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 15:51 --- *** This bug has been marked as a duplicate of 41159 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-23 15:51 --- *** Bug 42341 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only

2010-04-23 Thread martin dot audet at imi dot cnrc-nrc dot gc dot ca
The following little program: #include int main(int argc, char *argv[]) { int nn; return (argc != 2) || !(std::istringstream(argv[1]) >> nn); } when compiled with gcc 4.5.0 with both -fwhole-program and -fprofile-use options generate an ICE. Note that this doesn't happen with gcc 4.4.

[Bug debug/42425] ICE declaring local class

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 15:58 --- Testing a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo

[Bug regression/43867] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only

2010-04-23 Thread martin dot audet at imi dot cnrc-nrc dot gc dot ca
--- Comment #1 from martin dot audet at imi dot cnrc-nrc dot gc dot ca 2010-04-23 15:58 --- Oups ! In the bug description when I said option -fprogram-generate, I meant -fprofile-generate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43867

[Bug c++/15218] [DR 421] rvalue.field is not an lvalue

2010-04-23 Thread wb at fnal dot gov
--- Comment #4 from wb at fnal dot gov 2010-04-23 16:00 --- Created an attachment (id=20472) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20472&action=view) test case; incorrectly compiles -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15218

[Bug lto/42441] lto segfaults

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-23 16:01 --- No response from reporter. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/42451] 'warning: type of "array" does not match original declaration' with -flto/-fwhopr

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-23 16:03 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug fortran/43829] Scalarization of reductions

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-23 16:09 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned

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

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #42 from rguenth at gcc dot gnu dot org 2010-04-23 16:10 --- Fixed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776

[Bug lto/42826] lto1: ICE in ipcp_iterate_stage, at ipa-cp.c:759

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 16:10 --- No response from reporter. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

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

2010-04-23 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42903

[Bug lto/42928] crash when compiling scummvm on Ubuntu 9.10/amd64 with -flto and -fuse-linker-plugin

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-23 16:12 --- We need a testcase. There also were dups like this which were fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

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

2010-04-23 Thread davek at gcc dot gnu dot org
--- Comment #43 from davek at gcc dot gnu dot org 2010-04-23 16:13 --- (In reply to comment #42) > Fixed? > Still awaiting build system maintainer approval as per your request. Ten days is just on the lower margin of the range that I let a patch wait before pinging it; I'll do so shor

[Bug lto/43038] DECL_PRESERVE_P static globals not completely preserved with -flto

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-23 16:14 --- Honza, you might want to have a look here. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/43859] transparent_union mishandled

2010-04-23 Thread bergner at gcc dot gnu dot org
--- Comment #4 from bergner at gcc dot gnu dot org 2010-04-23 16:15 --- Interesting, using: union __attribute__ ((transparent_union)) q { unsigned n; unsigned get_n () const { return n; } }; does seem to cure it. However, is the attribute location really incorrect? It s

[Bug middle-end/43835] [4.5 Regression] IPA-SRA doesn't rewrite attributes

2010-04-23 Thread jamborm at gcc dot gnu dot org
--- Comment #6 from jamborm at gcc dot gnu dot org 2010-04-23 16:16 --- Subject: Bug 43835 Author: jamborm Date: Fri Apr 23 16:15:39 2010 New Revision: 158674 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158674 Log: 2010-04-23 Martin Jambor PR middle-end/43835

[Bug middle-end/43835] [4.5 Regression] IPA-SRA doesn't rewrite attributes

2010-04-23 Thread jamborm at gcc dot gnu dot org
--- Comment #7 from jamborm at gcc dot gnu dot org 2010-04-23 16:19 --- Fixed. -- jamborm at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c++/43080] ICE with anonymous union and -flto

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 16:22 --- I have a fix. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|un

[Bug c++/43859] transparent_union mishandled

2010-04-23 Thread bergner at gcc dot gnu dot org
--- Comment #5 from bergner at gcc dot gnu dot org 2010-04-23 16:24 --- Sorry, I meant type attribute where I mentioned variable attribute. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43859

[Bug lto/43212] [LTO] error: control flow in the middle of basic block

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-23 16:25 --- Honza, you might want to have a look here. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/43868] New: ICE with -g

2010-04-23 Thread joachim dot reichel at gmx dot de
"g++ -c code.i" works, "g++ -c -g code.i" gives tmp/code.i: In instantiation of 'Foo_impl::Helper': tmp/code.i:19:27: instantiated from 'void Foo_impl::do_something() [with R = int, O = Bar]' tmp/code.i:34:1: instantiated from here tmp/code.i:13:5: internal compiler error: Segmentation fault

[Bug c++/43868] ICE with -g

2010-04-23 Thread joachim dot reichel at gmx dot de
--- Comment #1 from joachim dot reichel at gmx dot de 2010-04-23 16:31 --- Created an attachment (id=20473) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20473&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43868

[Bug c++/43868] [4.5/4.6 Regression] ICE with -g

2010-04-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 16:35 --- Confirmed. Program received signal SIGSEGV, Segmentation fault. 0x007541dd in pp_cxx_unqualified_id (pp=0x18e1280, t=0x0) at /space/rguenther/src/svn/trunk/gcc/cp/cxx-pretty-print.c:150 150 enum tr

[Bug middle-end/43866] [4.3/4.4/4.5/4.6 Regression] wrong code with -fbounds-check -funswitch-loops

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #6 from jv244 at cam dot ac dot uk 2010-04-23 17:29 --- both testcases work with 4.1.2. I've also checked various versions of valgrind, which all report consistent results. Also 4.5 only fails on the original testcase. for reference, -v gives: gcc-4.5/bin/gfortran-4.5 -O3

[Bug lto/40702] lto-elf.c fails to compile on Solaris

2010-04-23 Thread ebotcazou at gcc dot gnu dot org
--- Comment #6 from ebotcazou at gcc dot gnu dot org 2010-04-23 18:08 --- This at least works for me on SPARC/Solaris 8, 9 and 10. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug libfortran/43844] open(unit, status="scratch") fails to create tempporary file

2010-04-23 Thread jvdelisle at gcc dot gnu dot org
--- Comment #9 from jvdelisle at gcc dot gnu dot org 2010-04-23 18:19 --- I discussed with Kai on IRC today and have approved Kai to commit the patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43844

[Bug c/43869] New: ms_abi -> sysv_abi passing float arguments incorrectly

2010-04-23 Thread m dot b dot lankhorst at gmail dot com
Float arguments are passed incorrectly from a ms_abi function to a sysv function, as can be witnessed by a simple testcase, which fails on all optimizations. I don't think this is a regression, as wine always failed on that testcase. -- Summary: ms_abi -> sysv_abi passing float argume

[Bug c/43869] ms_abi -> sysv_abi passing float arguments incorrectly

2010-04-23 Thread m dot b dot lankhorst at gmail dot com
--- Comment #1 from m dot b dot lankhorst at gmail dot com 2010-04-23 18:38 --- Created an attachment (id=20474) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20474&action=view) testcase testcase that fails -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43869

[Bug target/43869] ms_abi -> sysv_abi passing float arguments incorrectly

2010-04-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-04-23 18:40 --- This works with: GNU C (GCC) version 4.6.0 20100422 (experimental) [trunk revision 158652] (x86_64-unknown-linux-gnu) -- pinskia at gcc dot gnu dot org changed: What|Removed |A

[Bug target/43869] ms_abi -> sysv_abi passing float arguments incorrectly

2010-04-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-23 18:44 --- (In reply to comment #2) > This works with: > GNU C (GCC) version 4.6.0 20100422 (experimental) [trunk revision 158652] > (x86_64-unknown-linux-gnu) > I take that back, it still fails, for some reason I thought the

[Bug target/42868] [4.4 regression] ICE in change_address_1 at -O -fPIC -mcpu=ultrasparc

2010-04-23 Thread ebotcazou at gcc dot gnu dot org
--- Comment #3 from ebotcazou at gcc dot gnu dot org 2010-04-23 18:55 --- Too delicate to fix on release branches. Reopen if it pops up elsewhere. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added --

[Bug bootstrap/43870] New: ICE in gcc/config/soft-fp/divtf3.c

2010-04-23 Thread gcc-tgc at jupiterrise dot com
Bootstrapping 4.5.0 fails with ICE in stage1. Env/tools: LD_LIBRARY_PATH=/opt/csw/lib gcc 4.3.4 gas 2.19.1 mpfr 2.4.2 gmp 5.0.1 mpc 0.8.1 Build was configured as: $ ~/source/gcc-4.5.0/configure --prefix=/usr/tgcware/gcc-4.5.0 --with-local-prefix=/usr/tgcware/gcc-4.5.0 --with-gnu-as --with-as=/opt

[Bug bootstrap/43870] ICE in gcc/config/soft-fp/divtf3.c

2010-04-23 Thread gcc-tgc at jupiterrise dot com
--- Comment #1 from gcc-tgc at jupiterrise dot com 2010-04-23 18:58 --- Created an attachment (id=20475) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20475&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43870

[Bug target/43871] New: -mcpu=power4 -mtune=cell emits power7/cell-only opcodes

2010-04-23 Thread marcus at jet dot franken dot de
my kernel does not boot anymore on a ppc970 (powermac g5) due to an illegal instruction caused by gcc 4.5 research showed that the DI bswap64 operation is optimized to ldbrx even on power4, but causes an sigill there. gcc -m64 -c -O2 -mcpu=power4 -mtune=cell gcc/testsuite/gcc.target/powerpc/optim

[Bug target/43871] -mcpu=power4 -mtune=cell emits power7/cell-only opcodes

2010-04-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-04-23 19:04 --- This was my fault to some extend; when I added =cell support I asked about if we should emit the cell instructions for -mtune= and the answer was that using -mtune=cell is most likely not going to be used. In fact -

[Bug target/43871] -mcpu=power4 -mtune=cell emits power7/cell-only opcodes

2010-04-23 Thread marcus at jet dot franken dot de
--- Comment #2 from marcus at jet dot franken dot de 2010-04-23 19:12 --- well, the kernel now does easier ... in arch/powerpc/Makefile: ifeq ($(CONFIG_TUNE_CELL),y) KBUILD_CFLAGS += $(call cc-option,-mtune=cell) endif -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43871

[Bug target/43872] New: VLAs are not aligned correctly on ARM

2010-04-23 Thread mikpe at it dot uu dot se
This test case is derived from gcc.c-torture/execute/920929-1.c. It creates a VLA of doubles and fills it with zeros: > cat bad-vla-align.c unsigned long mask = sizeof(double) - 1; unsigned int __attribute__((noinline)) f(int n) { double v[n]; while (n > 0) v[--n] = 0; retur

[Bug target/43872] VLAs are not aligned correctly on ARM

2010-04-23 Thread mikpe at it dot uu dot se
--- Comment #1 from mikpe at it dot uu dot se 2010-04-23 19:14 --- Created an attachment (id=20476) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20476&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43872

[Bug target/43872] VLAs are not aligned correctly on ARM

2010-04-23 Thread mikpe at it dot uu dot se
--- Comment #2 from mikpe at it dot uu dot se 2010-04-23 19:15 --- Created an attachment (id=20477) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20477&action=view) gcc-4.6.0 -O2 -march=armv5te -S output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43872

[Bug c/43873] New: Bootstrap compiler segfault while configuring libgcc

2010-04-23 Thread lacombar at gmail dot com
Trying to build GCC 4.3.4, 4.4.3 and 4.4.4RC using gcc 3.4.6 as a system compiler fails: configure:2590: checking for suffix of object files configure:2611: /x/./gcc/xgcc -B/x/./gcc/ -B/y/bfin-unknown-elf/bin/ -B/y/bfin-unknown-elf/lib/ -isystem /y/bfin-unknown-elf/include -isystem /y/bfin-unknow

[Bug java/42143] [4.3/4.4/4.5/4.6 Regression] gcj creates "dummy" variables

2010-04-23 Thread kurt at roeckx dot be
--- Comment #6 from kurt at roeckx dot be 2010-04-23 19:49 --- So can someone please comment on this? -- kurt at roeckx dot be changed: What|Removed |Added St

[Bug fortran/40994] ICE with BIND(C)

2010-04-23 Thread jv244 at cam dot ac dot uk
--- Comment #5 from jv244 at cam dot ac dot uk 2010-04-23 20:17 --- as per comment #4, and reconfirmed for trunk -- jv244 at cam dot ac dot uk changed: What|Removed |Added

[Bug tree-optimization/43629] [4.3 Regression] Struct to register optimization fails

2010-04-23 Thread julien dot etienne at gmail dot com
--- Comment #17 from julien dot etienne at gmail dot com 2010-04-23 21:12 --- Thank you very much for the fix. Everything now works as expected. Best Regards, Julien -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43629

[Bug target/43872] VLAs are not aligned correctly on ARM

2010-04-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #3 from rearnsha at gcc dot gnu dot org 2010-04-23 21:31 --- Confirmed on trunk. -- rearnsha at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/43874] New: gcc should warn when 'new' is used on type with alignof greater than 2*sizeof(void*)

2010-04-23 Thread edwintorok at gmail dot com
See https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1984 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795 http://sourceware.org/bugzilla/show_bug.cgi?id=206 When __alignof(type) is 16 on a 32-bit system, and 'new' returns only 8-byte aligned memory, -ftree-vectorize can cause the code to crash.

  1   2   >