[Bug rtl-optimization/42592] New: really bad register allocation for x86

2010-01-03 Thread andi-gcc at firstfloor dot org
>From http://embed.cs.utah.edu/embarrassing/dec_09/harvest/gcc-head_icc-11.1/ typedef unsigned int size_t; typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; typedef size_t STRLEN; struct sv; typedef struct sv SV; typedef int I32; typedef unsigned int U32; struct sv { void

[Bug tree-optimization/42586] New: load-modify-store on x86 should be \ single instruction

2010-01-03 Thread andi-gcc at firstfloor dot org
--- Comment #17 from andi-gcc at firstfloor dot org 2010-01-03 08:12 --- Nope, the examples all disable frame pointer (the first version of the tester had this problem, but that was fixed) It's all not frame pointer set up anyways, but sub $...,%esp ... ; add $...,%esp with no use of t

[Bug tree-optimization/42587] bswap not recognized for memory

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 10:58 --- Confirmed. The bswap detection does not work on memory at all but only detects it on registers. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/42586] load-modify-store on x86 should be a single instruction

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2010-01-03 11:11 --- Confirmed. This is indeed showing two cases of SRA behaving oddly. First early SRA produces : _T2 = *sptr_1(D); _ans = _T2; _ans$curr_12 = _T2.curr; D.1965_6 = _ans$curr_12; D.1966_7 = D.1965_6 + -1;

[Bug bootstrap/42584] GCC 4.5 doesn't come close to bootstrapping on MinGW/MSYS

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 11:15 --- *** This bug has been marked as a duplicate of 42424 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug bootstrap/42424] in-tree GMP/MPFR/MPC bootstrap fails

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-01-03 11:15 --- *** Bug 42584 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug bootstrap/42424] [4.5 Regression] in-tree GMP/MPFR/MPC bootstrap fails

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-01-03 11:16 --- I think we want to make this work for 4.5 again, it works for 4.4 - of course w/o mpc which causes the problems here. -- rguenth at gcc dot gnu dot org changed: What|Removed |A

[Bug rtl-optimization/42592] really bad register allocation for x86

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 11:27 --- Confirmed. Well, GCC produces exactly the same code as ICC when using -O2 -mno-accumulate-outgoing-args -fno-optimize-sibling-calls -fomit-frame-pointer Thus the sibcall comes in the way as obviously does -maccumul

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 11:34 --- Because with 32bit we do not have a 64bit bswap instruction and tmp is 64bit. What would you expect here? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/42582] fortify with optimisation above -O0 cause abort in realpath()

2010-01-03 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-01-03 11:38 --- The testcase is indeed invalid, if the second argument to realpath is not NULL, it must be a buffer at least PATH_MAX bytes long. -- jakub at gcc dot gnu dot org changed: What|Removed

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-03 11:45 --- With Index: tree-ssa-math-opts.c === --- tree-ssa-math-opts.c(revision 155576) +++ tree-ssa-math-opts.c(working copy) @@ -,8 +,

[Bug tree-optimization/42438] [4.4/4.5 Regression] Fix for PR38819 is too conservative

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-01-03 12:06 --- Subject: Bug 42438 Author: rguenth Date: Sun Jan 3 12:06:02 2010 New Revision: 155584 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155584 Log: 2010-01-03 Richard Guenther PR tree-optimization/

[Bug tree-optimization/42438] [4.4 Regression] Fix for PR38819 is too conservative

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-03 12:10 --- Fixed for 4.5 as good as we can. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-01-03 12:19 --- Shouldn't that be || (bswap32_p && word_mode == SImode) ? expand_unop will only call expand_doubleword_bswap in that case... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42589

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread rguenther at suse dot de
--- Comment #4 from rguenther at suse dot de 2010-01-03 12:28 --- Subject: Re: bswap optimization does not work for 32bit (but for 64bit) on 64bit registers On Sun, 3 Jan 2010, jakub at gcc dot gnu dot org wrote: > --- Comment #3 from jakub at gcc dot gnu dot org 2010-01-03 12:1

[Bug libstdc++/42593] New: [c++0x] std::bind not assignable to std::function

2010-01-03 Thread d dot frey at gmx dot de
The following code compiles fine with GCC 4.3.3 and 4.4.2, but fails to compile with 4.5 (snapshot from 2009-12-31): #include void f( int ) {} int main() { std::function< void( int ) > pf = std::bind( &f, std::placeholders::_1 ); } with the following error: In file included from t.cc:1:0: /home

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-01-03 12:47 --- Thanks Daniel. Jon, can you have a look? I verified that the tr1 code we were using in 4.4.x and before is fine, thus should be either the std::function changes vs rvalue references or, less likely I believe, t

[Bug rtl-optimization/42594] New: no store merging for structure stores

2010-01-03 Thread andi-gcc at firstfloor dot org
Extracted from http://embed.cs.utah.edu/embarrassing/dec_09/harvest/gcc-head_llvm-gcc-head/ I've seen this in multiple examples both compared to llvm and icc. The other compilers merge adjacent stores to structures in memory, gcc doesn't. Simple toy example: struct foo { short a;

[Bug java/41745] Segmentation fault when ecj.jar is run as a binary compiled by gcj

2010-01-03 Thread gerald at pfeifer dot com
--- Comment #6 from gerald at pfeifer dot com 2010-01-03 13:10 --- Would you mind trying again with the latest snapshot/SVN version of GCC (or the current version of lang/gcc45, if you prefer)? There have been some improvements recently to libffi which may make a difference. (It does l

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread andi-gcc at firstfloor dot org
--- Comment #5 from andi-gcc at firstfloor dot org 2010-01-03 13:11 --- I would expect two bswaps yes, like llvm generates I also can't see how this should be a bad idea for any target with a bswap like operation (unless it's 64bit) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42

[Bug tree-optimization/42586] load-modify-store on x86 should be a single instruction

2010-01-03 Thread andi-gcc at firstfloor dot org
--- Comment #19 from andi-gcc at firstfloor dot org 2010-01-03 13:18 --- Here's another example with the bogus stack frame problem with a tail call (the embarassing website has quite a lot of similar cases, normally near the tail of the tables with 16 vs 22 bytes e.g. against sun cc wh

[Bug rtl-optimization/42594] no store merging for structure stores

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 13:20 --- Old problem - there's a duplicate report even somewhere with a patch from Jakub. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42594

[Bug rtl-optimization/42594] no store merging for structure stores

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2010-01-03 13:22 --- Not sure, but looks like a dup of bug 22141. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42594

[Bug rtl-optimization/42594] no store merging for structure stores

2010-01-03 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfir

[Bug rtl-optimization/42594] no store merging for structure stores

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-03 13:30 --- It is. *** This bug has been marked as a duplicate of 22141 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/22141] [4.3/4.4/4.5 Regression] Missing optimization when storing structures

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #20 from rguenth at gcc dot gnu dot org 2010-01-03 13:30 --- *** Bug 42594 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug target/41311] [4.5 regression] m68k - FFmpeg crashes when converting mpg to avi

2010-01-03 Thread nospamname at web dot de
--- Comment #13 from nospamname at web dot de 2010-01-03 13:57 --- Can this report reopen please and target change to m68k-* ? Bug happen also in m68k-elf.See here the two fjlt .L319 to diffrent labels.I remove lots compiler options to make it more simple.But ffmpeg error is same. I try

[Bug c/42595] New: Integer/Floating point casts between vector types generate

2010-01-03 Thread adam at consulting dot net dot nz
-- Summary: Integer/Floating point casts between vector types generate Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc d

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |redi at gcc dot gnu dot org |dot org

[Bug c/42596] New: Integer/Floating point vector casts generate XMM register moves from and to the same register

2010-01-03 Thread adam at consulting dot net dot nz
/* GCC does not permit a vector of a union type. To dynamically store both integer and float data in an XMM register define an integer vector and cast to a float vector whenever a floating point operation is required upon the data (or use a union to perform the type conversion). Instead

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-01-03 14:26 --- Thanks. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug lto/42528] ICE with -flto and -fsigned-char

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-03 14:33 --- This is because va_list_type_node is char * on some targets and so pointer-to char types get globbed into it. But va_list_type_node is re-constructed as char * at IL read time and thus we read back unsigned char * a

[Bug c/42595] Integer/Floating point casts between vector types generate

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 14:46 --- *** This bug has been marked as a duplicate of 42596 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/42596] Integer/Floating point vector casts generate XMM register moves from and to the same register

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-03 14:46 --- *** Bug 42595 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42596

[Bug c/42596] Integer/Floating point vector casts generate XMM register moves from and to the same register

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-03 14:50 --- Likely because you are using hardregs. Re-do the testcase with intrinsics please. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42596

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-01-03 15:07 --- >From a quick look, I think the problem is that std::function now uses perfect forwarding, but std::bind doesn't yet. So invoking the function passes an rvalue to _Bind::operator() which fails to bind to _Args& Previous

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-01-03 15:10 --- Ok, Jon, thanks. At some point, however, *soon* I'm afraid given the gcc4.5 schedule, we'll have to make a tough choice: if updating only std::function leads to bad regressions in common usages of std::bind, an

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-03 15:23 --- Subject: Bug 42589 Author: rguenth Date: Sun Jan 3 15:23:29 2010 New Revision: 155588 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155588 Log: 2010-01-03 Richard Guenther PR tree-optimization/

[Bug rtl-optimization/42589] bswap optimization does not work for 32bit (but for 64bit) on 64bit registers

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-03 15:24 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug bootstrap/42424] [4.5 Regression] in-tree GMP/MPFR/MPC bootstrap fails

2010-01-03 Thread ghazi at gcc dot gnu dot org
--- Comment #6 from ghazi at gcc dot gnu dot org 2010-01-03 15:31 --- (In reply to comment #3) > OK, I can reproduce the issue. > The problem is that mpc isn't told where to find the gmp and mpfr libraries. > [...] > Except that on some targets, ".libs" is actually called "_libs". I don

[Bug rtl-optimization/42592] really bad register allocation for x86

2010-01-03 Thread andi-gcc at firstfloor dot org
--- Comment #2 from andi-gcc at firstfloor dot org 2010-01-03 15:40 --- An obvious improvement would be to use the non callee clobbered registers as temporal storage, instead of putting into registers that just get spilled again. I think one of the other compilers in the comparison did t

[Bug tree-optimization/42587] bswap not recognized for memory

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-03 16:01 --- SRA here again does somthing stupid: from : acpi_ut_track_stack_ptr (); in.value = value_1(D); D.1966_2 = in.bytes[3]; out.bytes[0] = D.1966_2; D.1967_3 = in.bytes[2]; out.bytes[1] = D.1967_3; D.1968_

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-01-03 16:03 --- Jon, I'm raising Priority and Severity not because the isssue per se is that deadly serious (after all the whole C++0x is experimental, nothing should be really critical about it), but because we want to make s

[Bug tree-optimization/42587] bswap not recognized for memory

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-03 16:26 --- Similar example not handled by bswap recognition: typedef unsigned char u8; typedef unsigned int u32; union __anonunion { u32 value; u8 bytes[4]; }; u32 acpi_ut_dword_byte_swap (u32 value) { union __anonunion

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-01-03 16:28 --- ok, understood - I'm looking at finishing the bind changes at the moment -- redi at gcc dot gnu dot org changed: What|Removed |Added --

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-01-03 16:34 --- Let's keep a P1 for now, we really don't want to forget. -- paolo dot carlini at oracle dot com changed: What|Removed |Added -

[Bug c/42199] A problem with -maltivec

2010-01-03 Thread galtgendo at o2 dot pl
--- Comment #2 from galtgendo at o2 dot pl 2010-01-03 16:46 --- Created an attachment (id=19452) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19452&action=view) preprocessed sources Finally I've got a response in the Gentoo bug. Info: Using built-in specs. Target: powerpc-unknown

[Bug rtl-optimization/42175] Slow compile and much memory use at -O1

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-03 16:52 --- Maybe Zdenek has an idea why RTL LIM is so slow. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/42175] Slow compile and much memory use at -O1

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-03 17:03 --- Well, obviously it is because template gmic& gmic::parse(...) { ... while (positionhttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=42175

[Bug driver/41564] -fdump-tree-all for lto does not work as expected

2010-01-03 Thread hjl at gcc dot gnu dot org
--- Comment #19 from hjl at gcc dot gnu dot org 2010-01-03 17:03 --- Subject: Bug 41564 Author: hjl Date: Sun Jan 3 17:03:38 2010 New Revision: 155591 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155591 Log: Pass -dumpbase and -dumpdir to gcc for LTO gcc/ 2010-01-03 H.J. L

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap comparison failures

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #12 from steven at gcc dot gnu dot org 2010-01-03 17:15 --- Re. comment #11: If I configure with "--without-build-config" on ia64-unknown-linux-gnu, with -fgcse-sm enabled, then the bootstrap completes successfully (all languages except ada). If I configure without the extra

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap comparison failures

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #13 from steven at gcc dot gnu dot org 2010-01-03 17:22 --- For traceability: http://gcc.gnu.org/ml/gcc-patches/2009-12/msg01114.html I somehow forgot to add the PR number to the commit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41862

[Bug lto/42528] ICE with -flto and -fsigned-char

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-03 17:31 --- The same problem exists for builtin functions that return or take arguments of type char *. They change signature according to -f[un]signed-char which causes for example FAIL: gcc.c-torture/execute/builtins/strcpy-

[Bug driver/41564] -fdump-tree-all for lto does not work as expected

2010-01-03 Thread hjl dot tools at gmail dot com
--- Comment #20 from hjl dot tools at gmail dot com 2010-01-03 17:37 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug fortran/42597] New: ICE with procedure pointer initialized to null()

2010-01-03 Thread mrestelli at gmail dot com
The attached code (which seems fine to me) produces an internal compiler error. gfortran -c pp.f90 -o pp.o f951: internal compiler error: in gfc_build_null_descriptor, at fortran/trans-array.c:372 gfortran --version GNU Fortran (GCC) 4.5.0 20091229 (experimental) module mod_a implicit none pu

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-01-03 17:57 --- Created an attachment (id=19453) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19453&action=view) preliminary patch I'm testing this, which is not ready for checkin, but updates std::bind to handle rvalues and fi

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-01-03 18:05 --- Great. Let's go ahead this way, then! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42593

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
--- Comment #10 from redi at gcc dot gnu dot org 2010-01-03 18:07 --- OK P.S. (In reply to comment #8) > > (the ability to use this workaround was the main reason I fixed > std::bind > recently) I think I've mentioned to Paolo in private mail that we could use bind (specifically, bi

[Bug libfortran/42420] libgfortran fails to open large files on MINGW32

2010-01-03 Thread jb at gcc dot gnu dot org
--- Comment #8 from jb at gcc dot gnu dot org 2010-01-03 18:09 --- Subject: Bug 42420 Author: jb Date: Sun Jan 3 18:09:37 2010 New Revision: 155593 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155593 Log: PR libfortran/42420 Large file capable stat for MingW Modified: tr

[Bug lto/42528] ICE with -flto and -fsigned-char

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-01-03 18:12 --- Which seems to be because of CCP which folds D.2023_3 = __builtin___strcpy_chk (&p[1], &"vwxyz"[0], 31); with unsigned LHS to D.2023_3 = ( *) __builtin_memcpy (&p[1], &"vwxyz"[0], 6); which requires a temporary a

[Bug lto/42580] Missing command line option file causes ICE

2010-01-03 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2010-01-03 18:14 --- Really fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|UN

[Bug java/42409] org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2010-01-03 Thread jlpoole at pon dot net
--- Comment #2 from jlpoole at pon dot net 2010-01-03 18:21 --- Created an attachment (id=19454) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19454&action=view) output under normal circumstances In this output, the compiler incorrectly looks for the ecj.jar under /usr/share/java

[Bug lto/42528] ICE with -flto and -fsigned-char

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-01-03 18:21 --- Created an attachment (id=19455) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19455&action=view) patch Patch I am going to test. Further testing appreciated. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug java/42409] org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2010-01-03 Thread jlpoole at pon dot net
--- Comment #3 from jlpoole at pon dot net 2010-01-03 18:23 --- Created an attachment (id=19456) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19456&action=view) work-around output To overcome the misdirected path, I created a "java" directory under /usr/share and copied the /usr/

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap comparison failures

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2010-01-03 18:25 --- It means that gcse-sm generates different code with -g vs. -g0 which likely means that it is confused by the extra DEBUG_INSNs that appear with -g or that its generated code depends on things like insn uids. --

[Bug java/42409] org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2010-01-03 Thread jlpoole at pon dot net
--- Comment #4 from jlpoole at pon dot net 2010-01-03 18:30 --- I think I found the problem: the compiler is using an incorrect path, e.g. "/usr/share/java", to find the ecj.jar file and the other jar files, libgcj-4.5.0.jar libgcj-tools-4.5.0.jar, when it should have used "/usr/loc

[Bug java/42409] org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2010-01-03 Thread jlpoole at pon dot net
--- Comment #5 from jlpoole at pon dot net 2010-01-03 18:43 --- Here's my configuration log: plug build # pwd /mnt/seagate2/download/gnu/build plug build # head config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes

[Bug java/42409] org.eclipse.jdt.internal.compiler.batch.GCCMain not found

2010-01-03 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2010-01-03 18:55 --- That's just a misunderstanding what DESTDIR is. DESTDIR just says a directory where the / dir of installed files starts. It is used when you e.g. want to install everything into a temporary directory to package it up

[Bug lto/42581] "gcc -v" doesn't work with lto

2010-01-03 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-01-03 19:16 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2010-01/msg00116.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug rtl-optimization/42175] Slow compile and much memory use at -O1

2010-01-03 Thread rakdver at kam dot mff dot cuni dot cz
--- Comment #8 from rakdver at kam dot mff dot cuni dot cz 2010-01-03 19:37 --- Subject: Re: Slow compile and much memory use at -O1 > --- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-03 17:03 > --- > Well, obviously it is because > > template > gmic& gmi

[Bug java/41745] Segmentation fault when ecj.jar is run as a binary compiled by gcj

2010-01-03 Thread andreast at gcc dot gnu dot org
--- Comment #7 from andreast at gcc dot gnu dot org 2010-01-03 19:38 --- [tc:~] andreast% /usr/local/bin/gcj45 -o ecj --main=org.eclipse.jdt.internal.compiler.batch.Main ecj.jar [tc:~] andreast% vi HelloWorld.java public class HelloWorld { public static void main(String args[]) {

[Bug middle-end/42577] [4.4 Regression] array bounds false positive with -O3, goes away with -O2

2010-01-03 Thread matt at use dot net
--- Comment #8 from matt at use dot net 2010-01-03 19:57 --- can this be backported to 4.4 as well so I can integrate it into our 4.4-based toolchain? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42577

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap-debug comparison failures

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #15 from steven at gcc dot gnu dot org 2010-01-03 20:02 --- Created an attachment (id=19457) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19457&action=view) Ignore all DEBUG_INSNs in store-motion.c With this patch I can complete a bootstrap on ia64-unknown-linux-gnu w

[Bug target/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv

2010-01-03 Thread matt at use dot net
--- Comment #14 from matt at use dot net 2010-01-03 20:30 --- Still happening on 4.5.0 20091228 (and gcc 4.4.1) on Ubuntu 9.10/amd64). I found that it goes away in 3 separate instances when turning on -finline-functions. The last 2 instances of memory corruption I am running into are fun

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #11 from paolo dot carlini at oracle dot com 2010-01-03 20:57 --- By the way, Jon, I don't think we should delay committing this work only because of DR 817, after all isn't even Ready... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42593

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-01-03 21:02 --- ... if we have something rather satisfactory wrt all the other isses / testcases we are aware of in this area the sooner we commit the code, the better: I'm sure that Daniel can help testing it further on his

[Bug lto/42598] New: -v/-m* don't work with plugin

2010-01-03 Thread hjl dot tools at gmail dot com
Plugin never passes -v -mtune=xxx to lto-wrapper. -- Summary: -v/-m* don't work with plugin Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc

[Bug lto/42598] -v/-m* don't work with plugin

2010-01-03 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-01-03 21:50 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2010-01/msg00119.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug libstdc++/42593] [c++0x] [4.5 Regression] std::bind not assignable to std::function

2010-01-03 Thread redi at gcc dot gnu dot org
--- Comment #13 from redi at gcc dot gnu dot org 2010-01-03 22:10 --- Created an attachment (id=19458) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19458&action=view) updated patch this fixes the formatting in the previous patch, includes the call_once workaround, and updates the

[Bug lto/42598] -v/-m* don't work with plugin

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-01-03 22:29 --- *** This bug has been marked as a duplicate of 42520 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug driver/42520] lto1 does not see -march and -mtune options with -fuse-linker-plugin

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-03 22:29 --- *** Bug 42598 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2010-01-03 22:32 --- The issue is in a very twisted piece of GCC where the chances to break sth are bigger that to fix sth ;) And it isn't a regression, so it's not on too many peoples radar (nor does it seem to happen in practice and

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap-debug comparison failures

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2010-01-03 22:33 --- If it also passes testing it is ok for trunk (it does make sense to me). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41862

[Bug middle-end/42577] [4.4 Regression] array bounds false positive with -O3, goes away with -O2

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-01-03 22:33 --- The patch should apply more-or-less literally to the 4.4 branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42577

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap-debug comparison failures

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #17 from steven at gcc dot gnu dot org 2010-01-03 22:41 --- Subject: Bug 41862 Author: steven Date: Sun Jan 3 22:41:22 2010 New Revision: 155596 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155596 Log: PR rtl-optimization/41862 * store-motion.c (st

[Bug testsuite/42583] [4.5 Regression] FAIL: gfortran.dg/gomp/recursion1.f90: gfortran: libgomp.spec: No such file or directory

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-03 22:45 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug testsuite/42583] [4.5 Regression] FAIL: gfortran.dg/gomp/recursion1.f90: gfortran: libgomp.spec: No such file or directory

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-03 22:45 --- Subject: Bug 42583 Author: rguenth Date: Sun Jan 3 22:44:56 2010 New Revision: 155597 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155597 Log: 2010-01-03 Richard Guenther PR testsuite/42583

[Bug target/41605] Static linking of libgcc/libgfortran/libstdc++ can cause inconsistent symbol resolution.

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #13 from rguenth at gcc dot gnu dot org 2010-01-03 22:45 --- Is this bug now fixed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41605

[Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap-debug comparison failures

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #18 from steven at gcc dot gnu dot org 2010-01-03 22:46 --- Works for me now. -- steven at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug tree-optimization/18219] [4.3/4.4 Regression] bloats code by 31%

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #30 from steven at gcc dot gnu dot org 2010-01-03 22:57 --- With the following compiler: $ ./xgcc --version xgcc (GCC) 4.5.0 20091228 (experimental) [trunk revision 155486] Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying con

[Bug target/39725] [4.5 Regression][cond-optab] MIPS pessimizations on floating-point

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2010-01-03 23:06 --- This bug needs TLC from a MIPS person. At least a confirmation would be nice. -- steven at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c/39959] [4.5 Regression] IMA is broken

2010-01-03 Thread steven at gcc dot gnu dot org
--- Comment #16 from steven at gcc dot gnu dot org 2010-01-03 23:08 --- Can we close this bug as WONTFIX, and remove IMA for GCC 4.5? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39959

[Bug tree-optimization/18219] [4.3/4.4 Regression] bloats code by 31%

2010-01-03 Thread rguenth at gcc dot gnu dot org
--- Comment #31 from rguenth at gcc dot gnu dot org 2010-01-03 23:14 --- Heh. I wonder how we can reliably add testcases for code size issues ... can we either dump size estimates or extract object .text section sizes? Ian may know arm people who I suspect would be interested in contri

[Bug c++/40561] [4.3 Regression] code does not compile -- compiles fine when replacing != with !(==)

2010-01-03 Thread mikpe at it dot uu dot se
--- Comment #10 from mikpe at it dot uu dot se 2010-01-03 23:15 --- (In reply to comment #9) > Fascinating indeed. If someone can bisect where during 4.4 development we > fixed this again or where during 4.3 development we broke it that would be > nice. This test case was fixed for 4.4

[Bug c/42596] Integer/Floating point vector casts generate XMM register moves from and to the same register

2010-01-03 Thread adam at consulting dot net dot nz
--- Comment #3 from adam at consulting dot net dot nz 2010-01-03 23:20 --- This is a demo of poor code generation with XMM global register variables ("hardregs") and the vector extensions. Intrinsics are too low level. The vector extensions can continue to work on a platform without x86

[Bug c/42599] New: arm-elf-gcc 4.4.2 internal compiler error in expand_expr_addr_1 at expr.c:6835

2010-01-03 Thread conr2286 at vandals dot uidaho dot edu
Host System: OS/X 10.6.2 Target System: arm7tdmi Compiler Configuration Options: jconradw:~ conr2286$ arm-elf-gcc --v Using built-in specs. Target: arm-elf Configured with: ../gcc-4.4.2/configure --target=arm-elf --prefix=/Users/mfischer/Projekte/development/yagarto/install --disable-nls --disa

[Bug c/42599] arm-elf-gcc 4.4.2 internal compiler error in expand_expr_addr_1 at expr.c:6835

2010-01-03 Thread conr2286 at vandals dot uidaho dot edu
--- Comment #1 from conr2286 at vandals dot uidaho dot edu 2010-01-04 00:26 --- Created an attachment (id=19459) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19459&action=view) Preprocessed rtcISR.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42599

[Bug libstdc++/42600] New: istream.eof() returns wrong value after reading bool

2010-01-03 Thread d dot frey at gmx dot de
The following code prints "true" with 4.3.3, but "false" with 4.4.2 and 4.5-20091231. I think printing "true" is correct or am I missing something? #include #include #include int main() { bool result; std::istringstream is( "true" ); is >> std::boolalpha >> result; std::cout << std::bo

[Bug driver/42520] lto1 does not see -march and -mtune options with -fuse-linker-plugin

2010-01-03 Thread hjl at gcc dot gnu dot org
--- Comment #7 from hjl at gcc dot gnu dot org 2010-01-04 00:53 --- Subject: Bug 42520 Author: hjl Date: Mon Jan 4 00:52:50 2010 New Revision: 155601 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155601 Log: Pass -m* and -v to -plugin-opt gcc/ 2010-01-03 H.J. Lu

[Bug middle-end/42577] [4.4 Regression] array bounds false positive with -O3, goes away with -O2

2010-01-03 Thread matt at use dot net
--- Comment #10 from matt at use dot net 2010-01-04 01:04 --- what I mean to ask is: can this fix be committed to the 4.4 branch? I'd prefer to minimize the number of local patches we apply to our custom build. Thanks for the quick fix, by the way! :) -- http://gcc.gnu.org/bugzilla

  1   2   >