[Bug target/39558] Bad interaction of decls named 'vector' and -maltivec vector support

2009-03-25 Thread bje at gcc dot gnu dot org
-- bje at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |bje at gcc dot gnu dot org |dot org

[Bug c++/39560] New: Erroneous wanings 'unused variable' in a templetated class method with union

2009-03-25 Thread yuri at tsoft dot com
This testcase has warnings: --- begin testcase --- struct X { }; class Z { public: X* cc(int c); }; class F { public: typedef X* (Z::*MethO)(int); typedef X* (F::*MethF)(int); template X* xwrapper(int i) { union { Z *z; F *f; }; f = this; return ((z->*m)(i));

[Bug target/25160] ICE in print_operand if using -mfloat-gprs w/ non-854x -mcpu option

2009-03-25 Thread bje at gcc dot gnu dot org
--- Comment #1 from bje at gcc dot gnu dot org 2009-03-26 04:32 --- I think this patch should suffice. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25160

[Bug c/37595] funcs.c:323: internal compiler error: Segmentation fault

2009-03-25 Thread bje at gcc dot gnu dot org
--- Comment #2 from bje at gcc dot gnu dot org 2009-03-26 04:28 --- Can you check this with GCC 4.3.3 (or the tip of the GCC 4.3 branch), please? I cannot reproduce this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37595

[Bug rtl-optimization/39522] [4.4 Regression] fix for PR37514 gives FAIL: gcc.c-torture/execute/stdarg-3.c compilation, -O3 -fomit-frame-pointer -funroll-loops (internal compiler error)

2009-03-25 Thread hp at gcc dot gnu dot org
--- Comment #4 from hp at gcc dot gnu dot org 2009-03-26 01:34 --- Patch at . Thanks! I'll test crisv32-axis-linux-gnu and report. -- hp at gcc dot gnu dot org changed: What|Removed |Added -

[Bug preprocessor/39559] New: constants too large for intmax_t need pedwarns

2009-03-25 Thread jsm28 at gcc dot gnu dot org
unsigned long long l = 9223372036854775808LL; should get an error with -std=c99 -pedantic-errors, but instead gets a warning: t.c:1:24: warning: integer constant is so large that it is unsigned C99 does not allow decimal constants without "U" suffix to get an unsigned type. I think the preproce

[Bug target/39558] Fortran iresolve.c cannot be built with -maltivec used in bootstrap

2009-03-25 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 target/39558] Fortran iresolve.c cannot be built with -maltivec used in bootstrap

2009-03-25 Thread meissner at linux dot vnet dot ibm dot com
--- Comment #1 from meissner at linux dot vnet dot ibm dot com 2009-03-25 23:24 --- Created an attachment (id=17543) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17543&action=view) Simplified test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39558

[Bug target/39558] New: Fortran iresolve.c cannot be built with -maltivec used in bootstrap

2009-03-25 Thread meissner at linux dot vnet dot ibm dot com
Adding -maltivec to the PowerPC compiler turns on the altivec vector support. Part of the vector support is to add conditional expansion of the vector keyword if it looks like vector is part of a type declaration (i.e. vector float would declare a single precision floating point 4 element vector,

[Bug tree-optimization/39557] Invalid PDOM lead to infinite loop to be generated

2009-03-25 Thread davidxl at gcc dot gnu dot org
--- Comment #1 from davidxl at gcc dot gnu dot org 2009-03-25 23:10 --- Created an attachment (id=17542) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17542&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39557

[Bug tree-optimization/39557] New: Invalid PDOM lead to infinite loop to be generated

2009-03-25 Thread davidxl at gcc dot gnu dot org
Compiling the attached source with the following options -Wall -fno-exceptions -O2 -fprofile-use=/blah -fno-rtti will result in a code with infinite loop. In DCE, special code is added to handle dead loops conservatively. However this requires PDOM information (control dep info) to be valid.

[Bug target/39523] [4.4 Regression] SH: global registers are wrongly saved

2009-03-25 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-03-25 22:26 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRM

[Bug target/39523] [4.4 Regression] SH: global registers are wrongly saved

2009-03-25 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-03-25 22:23 --- Subject: Bug 39523 Author: kkojima Date: Wed Mar 25 22:23:27 2009 New Revision: 145077 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145077 Log: PR target/39523 * config/sh/sh.c (calc_live_r

[Bug target/39175] ICE while compiling qt-4.5.0-rc1

2009-03-25 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39175

[Bug target/39175] ICE while compiling qt-4.5.0-rc1

2009-03-25 Thread bje at gcc dot gnu dot org
--- Comment #8 from bje at gcc dot gnu dot org 2009-03-25 22:06 --- Now fixed on the 4.3 branch and on mainline. -- bje at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39175] ICE while compiling qt-4.5.0-rc1

2009-03-25 Thread bje at gcc dot gnu dot org
--- Comment #7 from bje at gcc dot gnu dot org 2009-03-25 22:05 --- Subject: Bug 39175 Author: bje Date: Wed Mar 25 22:05:08 2009 New Revision: 145076 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145076 Log: Backport from mainline: 2009-02-19 Jakub Jelinek

[Bug target/39085] Floating point errors on Arm9 processor

2009-03-25 Thread rearnsha at gcc dot gnu dot org
--- Comment #6 from rearnsha at gcc dot gnu dot org 2009-03-25 21:54 --- (In reply to comment #2) > str r3, [fp, #-32] > str r4, [fp, #-28] > ldfd f0, [fp, #-32] > sqtd f0, f0 > stfd f0, [fp, #-40] >

[Bug c++/34691] [4.2/4.3/4.4 Regression] Default argument checking not performed after overload resolution with C linkage

2009-03-25 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug rtl-optimization/39522] [4.4 Regression] fix for PR37514 gives FAIL: gcc.c-torture/execute/stdarg-3.c compilation, -O3 -fomit-frame-pointer -funroll-loops (internal compiler error)

2009-03-25 Thread vmakarov at redhat dot com
--- Comment #3 from vmakarov at redhat dot com 2009-03-25 21:05 --- Thanks for reporting this. The compiler is broken on gcc_assert in the following code + else if ((code == PRE_INC || code == PRE_DEC + || code == POST_INC || code == POST_DEC))

[Bug c/39556] New: statics in C99 inline functions later declared extern

2009-03-25 Thread jsm28 at gcc dot gnu dot org
C99 prohibits an "inline definition" of a function with external linkage from containing modifiable static variables or references to file-scope static variables or functions. A definition is an inline definition only if all file-scope declarations for the function in the translation unit use "inl

[Bug c++/39554] -Wdisallowed-function-list fails when #including

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-03-25 19:58 --- Created an attachment (id=17541) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17541&action=view) gcc44-pr39554.patch Apparently no testing was done on this new feature at all :(. -- http://gcc.gnu.org/bugz

[Bug c++/39554] -Wdisallowed-function-list fails when #including

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-03-25 19:45 --- No need to include any header file: // PR c++/39554 // { dg-do compile } // { dg-options "-Wdisallowed-function-list=bar" } void foo (void (*p) ()) { p (); } ICEs both in C and C++. -- jakub at gcc dot gnu dot

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2009-03-25 Thread prlw1 at cam dot ac dot uk
--- Comment #14 from prlw1 at cam dot ac dot uk 2009-03-25 18:57 --- I take it all is in hand, and I don't need to test anything? (I did a successful build with the same as the first patch, but defining _MACHINE_ANSI_H_ - this is equivalent - all went well) -- http://gcc.gnu.org/bug

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-03-25 18:31 --- fwprop won't propagate a constant into a "r" constrained asm operand, because verify_changes (0) fails in that case (it calls check_asm_operands, which verifies the constraints of all the operands). -- http://gcc.

[Bug fortran/39555] New: concat-op not allowed in STOP

2009-03-25 Thread dfranke at gcc dot gnu dot org
The following is illegal (only digits or a character constant can follow STOP): $> cat stop.f90 STOP "a" // "constant" END $> gfortran-svn stop.f90 && ./a.out STOP aconstant gcc version 4.4.0 20090324 (experimental) (GCC) -- Summary: concat-op not allowed in STOP Produ

[Bug c++/39554] New: -Wdisallowed-function-list fails when #including

2009-03-25 Thread gcc at gaul dot org
-Wdisallowed-function-list with any value fails when #including . Tested with SVN r145051: $ gcc -dumpversion 4.4.0 $ cat disallow_fault.cc #if OPT == 1 #include #endif $ g++ -DOPT=0 -c -Wdisallowed-function-list=BOGUS disallow_fault.cc $ g++ -DOPT=1 -c -Wdisallowed-function-list=BOGUS disa

[Bug target/39518] Missing documentation of cygwin and mingw target options

2009-03-25 Thread ktietz at gcc dot gnu dot org
--- Comment #3 from ktietz at gcc dot gnu dot org 2009-03-25 17:44 --- Committed at revision 145070. PR/39518 * doc/invoke.texi (-mconsole): New. (-mcygwin): New. (-mno-cygwin): New. (-mdll): New. (-mnop-fun-dllimport): New. (-mthread): New. (-mwin32): New. (-mwindows): New. (sub sectio

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-25 Thread bonzini at gnu dot org
--- Comment #7 from bonzini at gnu dot org 2009-03-25 16:49 --- > one is the rtx_cost (SET_SRC (set), SET, speed) > old_cost check > (I wonder whether it is needed for asms at all and if yes, how to actually do > it) For addresses it is already done in should_replace_address. But for e

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-03-25 15:49 --- Created an attachment (id=17540) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17540&action=view) gcc44-pr39543.patch Untested patch that cures all the 3 testcases by forward propagation into asm operands, as lo

[Bug target/39545] structures with zero-length array passed/returned inconsistently

2009-03-25 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2009-03-25 13:21 --- P1, so we won't "forget" to resolve this ABI issue before 4.4 branches. -- ubizjak at gmail dot com changed: What|Removed |Added -

[Bug tree-optimization/28868] [4.2/4.3/4.4 Regression] Not eliminating the PHIs which have the same arguments

2009-03-25 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2009-03-25 13:18 --- Re-confirmed. The fix is to eliminate duplicate PHI nodes in eliminate() by copy-propagating PHI value-numbers. -- rguenth at gcc dot gnu dot org changed: What|Removed |Adde

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2009-03-25 13:10 --- That can be solved easily, just compare whether new_rtx doesn't need more registers than old_rtx and only propagate into asm_noperands () >= 0 insns those that require the same number or fewer registers. Consider e.g.

[Bug tree-optimization/39529] ICE on valid code

2009-03-25 Thread irar at il dot ibm dot com
--- Comment #5 from irar at il dot ibm dot com 2009-03-25 12:27 --- Fixed. -- irar at il dot ibm dot com changed: What|Removed |Added Status|NEW

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-25 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-03-25 12:12 --- Well, DECL_NO_TBAA_P is a hack and poorly implemented. Fallout expected. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39548

[Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

2009-03-25 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-03-25 12:01 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

2009-03-25 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-25 12:00 --- Subject: Bug 39497 Author: rguenth Date: Wed Mar 25 12:00:32 2009 New Revision: 145057 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145057 Log: 2009-03-24 Richard Guenther PR middle-end/39497

Register Allocation Bug?

2009-03-25 Thread Kasper Bonne
Hi List I have a question (or possible compiler bug) regarding inline assembly that I hope you can help me with. I wanted a routine that would give me the value and address of a memory location relative to the stack pointer. What I initially tried was the following: #define ESP(rel,value,addr)

[Bug target/36654] [4.2 Regression] Inlined con/de-structor breaks virtual inheritance dllimport classes

2009-03-25 Thread dave dot korn dot cygwin at gmail dot com
--- Comment #12 from dave dot korn dot cygwin at gmail dot com 2009-03-25 08:03 --- Hi all. This patch caused g++.dg/ext/dllimport7.C to regress (in one subtest) between 4.3.2 and 4.3.3 on Cygwin, although it could be that the testcase is out of date. // { dg-do compile { target i?86-

[Bug c/27898] Compile failure with --combine and anonymous structures

2009-03-25 Thread uros at gcc dot gnu dot org
--- Comment #6 from uros at gcc dot gnu dot org 2009-03-25 07:59 --- Subject: Bug 27898 Author: uros Date: Wed Mar 25 07:58:55 2009 New Revision: 145052 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145052 Log: PR c/27898 * gcc.dg/pr27898.c: New test. P

[Bug tree-optimization/32139] [4.1 Regression] ICE in mark_operand_necessary

2009-03-25 Thread uros at gcc dot gnu dot org
--- Comment #3 from uros at gcc dot gnu dot org 2009-03-25 07:59 --- Subject: Bug 32139 Author: uros Date: Wed Mar 25 07:58:55 2009 New Revision: 145052 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145052 Log: PR c/27898 * gcc.dg/pr27898.c: New test. P

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529: ICE due to missing or incorrectly relocated DECL_VALUE_EXPR in PCH header for PARM_DECL

2009-03-25 Thread jakub at gcc dot gnu dot org
--- Comment #49 from jakub at gcc dot gnu dot org 2009-03-25 07:30 --- Best is just to track where this VAR_DECL is being written into the pch file during PCH generation, see if it has DECL_HAS_VALUE_EXPR_P set, what DECL_VALUE_EXPR it has (if any) and if all is ok on that side, see duri