[Bug fortran/43243] New: [4.5 Regression] Missing array temp for DT with pointer component

2010-03-03 Thread burnus at gcc dot gnu dot org
, one needs to pack as the test case also shows. Correctness test fails with 4.5.0 20100218 (experimental) [trunk revision 156860] 4.5.0 20100303 (experimental) but works with 4.4.2 [gcc-4_4-branch revision 155966] 4.3.4 [gcc-4_3-branch revision 152973] module m type t integer

[Bug tree-optimization/43174] Teaching SCEV about ADDR_EXPR causes regression

2010-03-03 Thread rakdver at kam dot mff dot cuni dot cz
--- Comment #2 from rakdver at kam dot mff dot cuni dot cz 2010-03-03 09:21 --- Subject: Re: Teaching SCEV about ADDR_EXPR causes regression This together with the patch mentioned in the previous comment allows to generate: ivtmp.0 = a[0][0] bb1 L1: s.0 = PHI(0, s.2)

[Bug fortran/43244] New: statement misinterpreted as FINAL declaration

2010-03-03 Thread janus at gcc dot gnu dot org
I just encountered a rather strange bug in gfortran. Consider the following code: implicit none type particle integer :: ID end type type(particle), dimension(1,1:3) :: finalState finalstate(1,(/1:2/))%ID = (/1,103/) end This is compiled fine with ifort and pgf95, but gfortran 4.5

[Bug fortran/43244] statement misinterpreted as FINAL declaration

2010-03-03 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-03-03 09:49 --- IIRC the parsing of FINAL declarations was implemented by Daniel Kraft. It was committed as r136293. Daniel, could you have a look at this bug? -- janus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/43244] statement misinterpreted as FINAL declaration

2010-03-03 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-03-03 09:54 --- (In reply to comment #0) With so many compilers rejecting it, I wonder: Is it actually legal? I guess not. Changing the line in question to finalstate(1,1:2)%ID = (/1,103/) makes all compilers accept it (including

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-03 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-03 09:58 --- Subject: Bug 43229 Author: jakub Date: Wed Mar 3 09:58:11 2010 New Revision: 157191 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157191 Log: PR debug/43229 * cfgexpand.c (expand_debug_expr):

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-03 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-03-03 10:02 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c/43245] New: discarding const char * qualifiers cannot be disabled or turned into an error

2010-03-03 Thread kees dot dekker at infor dot com
When compiling a piece of C-source code, like: #include stdio.h void doit(char *p) { p[0] = 'y'; printf(doit: %s\n, p); } int main(void) { const char *str = hello there; /* check whether gcc complains about const qualifier. The -Werror=ignored-qualifiers did not

[Bug c/43245] discarding const char * qualifiers cannot be disabled or turned into an error

2010-03-03 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-03-03 10:30 --- -Wignored-qualifiers is for warning about qualifiers on return types, which are ignored. I don't think it has anything to do with discarded qualifiers on function arguments. -pedantic-errors will give an error on your

[Bug c/43245] discarding const char * qualifiers cannot be disabled or turned into an error

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-03 10:31 --- Because the warning is not controlled by -Wignored-qualifiers (or -Wcast-qual). -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43243] [4.5 Regression] Missing array temp for DT with pointer component

2010-03-03 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43243

[Bug middle-end/43240] Code does not work at -O1

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-03-03 10:34 --- Works with 4.4.2. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43236] -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-03 10:38 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-03 10:43 --- This isn't PRE but code hoisting which we have a dup for. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs

2010-03-03 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2010-03-03 10:57 --- I think pinskia means we could transform the test case of comment #0 to: void DoHuffIteration(int); int f(int *a) { int i; int plaintextlen=*a; pretmp = plaintextlen; for(i = 0; i 1; i++) {

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-03 11:03 --- I'm not so sure. We start with bb 2: plaintextlen_3 = *a_2(D); bb 3: # i_13 = PHI i_6(5), 0(2) D.2725_5 = *a_2(D); DoHuffIteration (D.2725_5); i_6 = i_13 + 1; if (i_6 = ) goto bb 5; else

[Bug pending/41998] GCC 4.6 pending patches meta-bug

2010-03-03 Thread kaushik dot phatak at kpitcummins dot com
--- Comment #10 from kaushik dot phatak at kpitcummins dot com 2010-03-03 12:53 --- Created an attachment (id=20009) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20009action=view) Patch for SH to prevent the generation of the pop instruction in the delay slot after 'rte' Patch

[Bug fortran/43244] Invalid statement misinterpreted as FINAL declaration

2010-03-03 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2010-03-03 12:59 --- (In reply to comment #0) We should at least make sure the FINAL keyword is separated by spaces when parsing stuff like this. Be careful with this! In free format that's OK but fixed format has some strange way of

[Bug tree-optimization/43236] -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-03 Thread amonakov at gcc dot gnu dot org
--- Comment #6 from amonakov at gcc dot gnu dot org 2010-03-03 13:06 --- Not a regression, off-by-one error in reverse iteration case is since day one. Patch: diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 13ac7ea..110abdc 100644 ---

[Bug tree-optimization/43236] -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-03 Thread amonakov at gcc dot gnu dot org
--- Comment #7 from amonakov at gcc dot gnu dot org 2010-03-03 13:38 --- (In reply to comment #6) This fixes the -O[123] miscompilations. -Os is slightly harder to fix, since we use wrong number of iterations (cond bb is executed 11 times, latch bb with assignment 10 times). I

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs

2010-03-03 Thread steven at gcc dot gnu dot org
--- Comment #6 from steven at gcc dot gnu dot org 2010-03-03 14:26 --- Well, it is not hoisting, either. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38497

[Bug pending/41998] GCC 4.6 pending patches meta-bug

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #11 from manu at gcc dot gnu dot org 2010-03-03 14:32 --- (In reply to comment #10) Patch for SH to prevent the generation of the pop instruction in the delay slot after 'rte' for sh and sh2 targets. Rather than attach patches here, it would be better to link to the

[Bug other/37515] [meta-bug] GCC 4.5 pending patches

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2010-03-03 14:33 --- All 4.5 pending patches block 4.6 pending patches. -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/43247] New: Icorrect optimization while declaring array[1]

2010-03-03 Thread ogoffart at kde dot org
This code should print WORKS a couple of time. But with -O2, g++ optimize the condition away. It works with -O1 Tested with gcc 4.4.3 on linux x86_64 (Archlinux) #include stdio.h #include string.h #include stdlib.h struct QVectorTypedData { int array[1]; }; int main(int , char **) {

[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #9 from manu at gcc dot gnu dot org 2010-03-03 14:38 --- (In reply to comment #8) Created an attachment (id=19938) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19938action=view) [edit] smaller testcase Here is the smallest testcase I could get out of delta. I

[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #17 from manu at gcc dot gnu dot org 2010-03-03 14:40 --- (In reply to comment #13) It may be a different issue since the original testcase compiles with older gcc. It is much tougher to get a testcase that compiled before but I managed to get 344K. Delta is still running

[Bug c++/43247] Icorrect optimization while declaring array[1]

2010-03-03 Thread thiago at kde dot org
--- Comment #1 from thiago at kde dot org 2010-03-03 14:41 --- Problem also happens on: gcc 4.4.3 on linux 32-bit gcc 4.4.1 on linux ARM (armel gnueabi) Also reproducible with -O1 -ftree-vrp. -- thiago at kde dot org changed: What|Removed |Added

[Bug c++/43247] Icorrect optimization while declaring array[1]

2010-03-03 Thread thiago at kde dot org
--- Comment #2 from thiago at kde dot org 2010-03-03 14:44 --- Also: -O1 -ftree-vrp -fno-cprop-registers -fno-defer-pop -fno-guess-branch-probability -fno-if-conversion -fno-if-conversion2 -fno-ipa-pure-const -fno-ipa-reference -fno-merge-constants -fno-omit-frame-pointer

[Bug c++/40145] structure inside a static function is exported, producing warning

2010-03-03 Thread thiago at kde dot org
--- Comment #1 from thiago at kde dot org 2010-03-03 14:46 --- Anyone? This is not a showstopper, but produces unnecessary (and incorrect) warnings. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40145

[Bug c++/40145] structure inside a static function is exported, producing warning

2010-03-03 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-03-03 15:03 --- 4.4.2 also warns, 4.5.0 doesn't -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40145

[Bug fortran/43169] [OOP] gfortran rejects pure procedure with select type construct

2010-03-03 Thread janus at gcc dot gnu dot org
--- Comment #10 from janus at gcc dot gnu dot org 2010-03-03 15:13 --- Subject: Bug 43169 Author: janus Date: Wed Mar 3 15:12:40 2010 New Revision: 157196 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157196 Log: 2010-03-03 Janus Weil ja...@gcc.gnu.org PR

[Bug fortran/43169] [OOP] gfortran rejects pure procedure with select type construct

2010-03-03 Thread janus at gcc dot gnu dot org
--- Comment #11 from janus at gcc dot gnu dot org 2010-03-03 15:17 --- Fixed with r157196. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43235] -Wall gives no warning

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-03-03 15:29 --- Moreover, see http://gcc.gnu.org/wiki/NewWconversion and the -Wconversion option has been improved notably in GCC 4.5, so you should test with that version when available. -- manu at gcc dot gnu dot org changed:

[Bug fortran/43244] Invalid statement misinterpreted as FINAL declaration

2010-03-03 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-03-03 15:32 --- Regarding the error message: The problem is the lazy evaluation of error messages. If one sets a breakpoint at gfc_error one finds: gfc_error (gmsgid=0xd25bd0 Syntax error in %s statement at %C) gfc_error

[Bug c/43245] add option to control discarding qualifiers warnings

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2010-03-03 15:36 --- Use -fdiagnostics-show-option to see which option controls a warning. In this case, it will show nothing (this is another bug that will be fixed in GCC 4.6) because, unfortunately, this is a default pedantic warning,

[Bug fortran/43244] Invalid statement misinterpreted as FINAL declaration

2010-03-03 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-03-03 15:40 --- Quick fix for free form: Index: gcc/fortran/decl.c === --- gcc/fortran/decl.c (revision 157195) +++ gcc/fortran/decl.c (working copy) @@ -7810,6

[Bug rtl-optimization/40761] [4.4/4.5 Regression] IRA memory hog for insanely nested loops

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-03 15:42 --- We shouldn't have deferred BB31 in the first iteration (with just TEN): bb 2: goto bb 13; ... bb 31: bb 13: D.2759_1 = b (); if (D.2759_1 != 0) goto bb 32; else goto bb 14; bb 32: goto bb 12;

[Bug c++/43206] [4.5 Regression] Revision 145440 caused ICE at cp/pt.c:9249

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

[Bug fortran/43243] [4.5 Regression] Missing array temp for DT with pointer component

2010-03-03 Thread paul dot richard dot thomas at gmail dot com
--- Comment #1 from paul dot richard dot thomas at gmail dot com 2010-03-03 15:53 --- Subject: Re: [4.5 Regression] Missing array temp for DT with pointer component Yet another in the series :-) I hope that it is the last... This bootstraps and regtests on RHEL5.2/x86_64

[Bug fortran/43243] [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component

2010-03-03 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2010-03-03 15:53 --- As it might have not been completely clear from comment 0: type t [...] integer, pointer :: b(:) end type type(t) :: y y%b = z(::2) call bar(y%b) ! WRONG-CODE: Here a temporary is missing Without

[Bug rtl-optimization/40761] [4.4/4.5 Regression] IRA memory hog for insanely nested loops

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-03-03 15:59 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43247] [4.3/4.4 Regression] Icorrect optimization while declaring array[1]

2010-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-03 16:08 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43243] [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component

2010-03-03 Thread paul dot richard dot thomas at gmail dot com
--- Comment #4 from paul dot richard dot thomas at gmail dot com 2010-03-03 16:15 --- Subject: Re: [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component Tobias, Don't worry, I got it:-) The patch fixes both problems. Cheers Paul On Wed, Mar

[Bug c/43248] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233

2010-03-03 Thread zsojka at seznam dot cz
Command line: gcc testcase.c - testcase.c - int foo(int i) { i ? : (void *){}; } -- Output - 4.5 r157122, checking: $ /mnt/svn/gcc-trunk/binary-157122/bin/gcc testcase.c testcase.c: In function 'foo': testcase.c:3:3: error: empty scalar initializer

[Bug c/43248] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233

2010-03-03 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug target/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2010-03-03 Thread mikestump at comcast dot net
--- Comment #7 from mikestump at comcast dot net 2010-03-03 16:56 --- I fixed the test case to not expect the unimplemented optimization in r157197, however, it would be nice to ensure the async signal handlers can handle unaligned stacks and to perform this optimization. I'm fairly

[Bug fortran/43243] [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component

2010-03-03 Thread burnus at net-b dot de
--- Comment #5 from burnus at net-b dot de 2010-03-03 16:59 --- Subject: Re: [4.5 Regression] Missing array temp for DT with pointer component On 03/03/2010 04:53 PM, Paul Richard Thomas wrote: Yet another in the series :-) I hope that it is the last... So do I -

[Bug c/43248] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233

2010-03-03 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-03-03 17:06 --- It is caused by tuples merge. We must have missed something. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43248

[Bug fortran/43243] [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component

2010-03-03 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2010-03-03 17:50 --- Subject: Bug 43243 Author: pault Date: Wed Mar 3 17:49:53 2010 New Revision: 157199 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157199 Log: 2010-03-03 Paul Thomas pa...@gcc.gnu.org PR

[Bug fortran/43243] [4.5 Regression] Wrong-code due to missing array temp for DT with pointer component

2010-03-03 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2010-03-03 17:53 --- Fixed on trunk and yes, thanks for the report! Cheers Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43248] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-03 18:09 --- I have a simple patch to build_compound_literal which fixes this. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43082] ICE in tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-03 19:00 --- Reduced testcase: int main(void) { int gpf; if(gpf ? (void) (0) : f ()) ; } --- CUT --- Looking into it. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2010-03-03 19:02 --- Subject: Bug 12909 Author: jason Date: Wed Mar 3 19:01:36 2010 New Revision: 157201 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157201 Log: PR c++/12909 * mangle.c: Include cgraph.h.

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2010-03-03 19:02 --- Subject: Bug 12909 Author: jason Date: Wed Mar 3 19:01:46 2010 New Revision: 157202 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157202 Log: PR c++/12909 * method.c (make_alias_for): Handle

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread jason at gcc dot gnu dot org
--- Comment #9 from jason at gcc dot gnu dot org 2010-03-03 19:02 --- Subject: Bug 12909 Author: jason Date: Wed Mar 3 19:01:58 2010 New Revision: 157203 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157203 Log: PR c++/12909 * cgraph.h (varpool_node): Add

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread jason at gcc dot gnu dot org
--- Comment #10 from jason at gcc dot gnu dot org 2010-03-03 19:02 --- Subject: Bug 12909 Author: jason Date: Wed Mar 3 19:02:08 2010 New Revision: 157204 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157204 Log: PR c++/12909 * lto-streamer.h (LTO_tags): Add

[Bug c/43082] ICE in tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-03 19:02 --- I get: t1.c:4:7: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in get_narrower, at tree.c:7654 Now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread jason at gcc dot gnu dot org
--- Comment #11 from jason at gcc dot gnu dot org 2010-03-03 19:05 --- As fixed as it reasonably can be until we switch to -fabi-version=4. We now have a new mangling enabled with that flag, an error in the compiler for this situation, a warning with -Wabi about the old mangling, and

[Bug target/43249] New: unsigned int arg with no prototype gets full 64-bit reg

2010-03-03 Thread janis at gcc dot gnu dot org
For a function with no prototype that defines an argument as unsigned int, GCC for powerpc64-linux with -m64 and optimization uses the entire 64-bit argument register rather than masking off the lower 32 bits. This problem was discoverd with 176.gcc using options -m64 -O2 -ftree-vectorize

[Bug c/43250] New: Warning for missing break in switch statement

2010-03-03 Thread eugene dot zelenko at gmail dot com
I think will be good idea to have warning (and command line option to turn it on/off) to report missing break in switch statement. Sure syntax is valid, but I think missed breaks are occurring more often then intentionally skipped ones. Same goes for C++ and other languages where similar problem

[Bug c/43082] ICE in tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-03-03 19:21 --- I have a patch to c_common_truthvalue_conversion which fixes this issue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082

[Bug c++/20397] g++ rejects valid code with 'is inaccessible' error

2010-03-03 Thread s dot franke at bebbosoft dot de
--- Comment #7 from s dot franke at bebbosoft dot de 2010-03-03 19:26 --- The C++ Standard says: 3.4 Name lookup The name lookup rules apply uniformly to all names (including typedef-names (7.1.3), namespace-names (7.3) and class-names (9.1)) wherever the grammar allows such names in

[Bug libstdc++/43241] std::tr1::regex is not fully implemented yet

2010-03-03 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2010-03-03 19:30 --- I think INVALID is the wrong resolution of this PR. This clearly is a bug (if we offer a class we should make sure it can be used), but we may choose to say that we won't work on this bug. The right resolution

[Bug libstdc++/43241] std::tr1::regex is not fully implemented yet

2010-03-03 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2010-03-03 19:31 --- ...is WONTFIX. -- bangerth at gmail dot com changed: What|Removed |Added CC|

[Bug c++/20397] g++ rejects valid code with 'is inaccessible' error

2010-03-03 Thread bangerth at gmail dot com
--- Comment #8 from bangerth at gmail dot com 2010-03-03 19:40 --- (In reply to comment #7) The use of a base class ( class B : A ) is not a declaration of A. Thus the base class ( class A ) is visible and not private. Reopen the bug and fix it. Andrew was right: the name 'A' is

[Bug libstdc++/43241] std::tr1::regex is not fully implemented yet

2010-03-03 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-03-03 20:10 --- Bah, frankly WONTFIX doesn't seem correct either: we are not taking about a *bug* which we are not going to fix. We are talking about a largely *unimplemented* part of the future C++1x standard. Now, in my

[Bug libstdc++/43241] std::tr1::regex is not fully implemented yet

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2010-03-03 20:13 --- I should mention why I filed this bug, someone asked (on IRC) how to fix up a link error when using std::tr1::regex. Of course I looked inside bugzilla first and did not see any so I did not look into further than

[Bug tree-optimization/39612] [4.3/4.4/4.5 Regression] LIM inserts loads from uninitialized local memory

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2010-03-03 20:21 --- I have noticed this with some code with graphite enabled too, graphite uses arrays for some reason. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43251] New: Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
Hi! While compiling zdrot.f from Blas with -ftree-vectorize (which seems to be on with -O3), I get incorrect results. I have attached a .s file, but I also attach the original (self-contained) source files with an explanation available here:

[Bug fortran/43251] Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
--- Comment #1 from a dot kumar at alumni dot iitm dot ac dot in 2010-03-03 20:40 --- Created an attachment (id=20011) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20011action=view) Preprocessed file, built with -O2 -ftree-vectorize This is the preprocessed file, built as:

[Bug middle-end/43251] Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
--- Comment #2 from a dot kumar at alumni dot iitm dot ac dot in 2010-03-03 20:41 --- Created an attachment (id=20012) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20012action=view) The Makefile used for this build. The Makefile used for this build. --

[Bug middle-end/43251] Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
--- Comment #3 from a dot kumar at alumni dot iitm dot ac dot in 2010-03-03 20:41 --- Created an attachment (id=20013) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20013action=view) The zdrot function from Blas -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43251

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Keywords||wrong-code Known to fail||4.4.3

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
--- Comment #4 from a dot kumar at alumni dot iitm dot ac dot in 2010-03-03 20:42 --- Created an attachment (id=20014) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20014action=view) C program which uses zdrot. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43251

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread a dot kumar at alumni dot iitm dot ac dot in
--- Comment #5 from a dot kumar at alumni dot iitm dot ac dot in 2010-03-03 20:49 --- My gfortran details: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.3-3' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs

[Bug c++/40145] structure inside a static function is exported, producing warning

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2010-03-03 21:43 --- (In reply to comment #2) 4.4.2 also warns, 4.5.0 doesn't Jonathan, could you add a testcase for GCC 4.5 so we avoid regressing? -- manu at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693

2010-03-03 Thread law at redhat dot com
--- Comment #5 from law at redhat dot com 2010-03-03 22:10 --- Fixed for gcc-4.5 -- law at redhat dot com changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693

2010-03-03 Thread law at gcc dot gnu dot org
--- Comment #6 from law at gcc dot gnu dot org 2010-03-03 22:10 --- Subject: Bug 32693 Author: law Date: Wed Mar 3 22:10:17 2010 New Revision: 157207 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157207 Log: * PR middle-end/32693 * expmed.c (store_bit_field_1):

[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code

2010-03-03 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2010-03-03 22:11 --- Created an attachment (id=20015) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20015action=view) further reduced testcase This testcase is somehow smaller. I won't try to reduce it further. -- manu at gcc

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-03-03 22:30 --- -ftree-vectorize never worked correctly on this testcase until PR 24581 is fixed. *** This bug has been marked as a duplicate of 24581 *** -- hjl dot tools at gmail dot com changed: What|Removed

[Bug c/24581] Complex arithmetic on special cases is incorrect.

2010-03-03 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2010-03-03 22:30 --- *** Bug 43251 has been marked as a duplicate of this bug. *** -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2010-03-03 22:33 --- (In reply to comment #6) -ftree-vectorize never worked correctly on this testcase until PR 24581 is fixed. Oh no. This is not related to that bug at all since the vectorized code is in Fortran. And the

[Bug middle-end/43252] New: ICE: verify_stmts failed / not match field size of BIT_FIELD_REF (logical_dot_product.f90)

2010-03-03 Thread burnus at gcc dot gnu dot org
The Fortran testcase gfortran.dg/logical_dot_product.f90 fails with the following middle-end message on SPU. As far as I can see, the generated tree by the front end is OK and I also do not see any bit field which presumably comes about due to the optimization. The code is: logical :: l1(4) =

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2010-03-03 22:49 --- It is a dup of PR 24581. Backporting the gcc/tree-complex.c change in revision 147281: http://gcc.gnu.org/viewcvs?view=revisionrevision=147281 to 4.4 fixes this. *** This bug has been marked as a duplicate of

[Bug c/24581] Complex arithmetic on special cases is incorrect.

2010-03-03 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2010-03-03 22:49 --- *** Bug 43251 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24581

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2010-03-03 22:53 --- (In reply to comment #8) It is a dup of PR 24581. Backporting the gcc/tree-complex.c change in revision 147281: http://gcc.gnu.org/viewcvs?view=revisionrevision=147281 to 4.4 fixes this. If that is the

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2010-03-03 22:57 --- Or rather vectorizers differently. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43251

[Bug tree-optimization/42286] October 23rd change to tree-ssa-pre.c breaks calculix on powerpc with -ffast-math

2010-03-03 Thread meissner at gcc dot gnu dot org
--- Comment #12 from meissner at gcc dot gnu dot org 2010-03-03 23:01 --- As I said in the last bug entry, I have convinced myself that the compiler is correct, and that the bug is caused by using -ffast-math when compiling, but the atan2 library function supporting full IEEE

[Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342

2010-03-03 Thread zsojka at seznam dot cz
--- Comment #6 from zsojka at seznam dot cz 2010-03-03 23:45 --- It could be regression from 3.3.6. 3.4.6, 4.1.2, 4.2.4, 4.3.4, 4.4.3 built without checking all bail out, while 3.3.6 ends with: $ g++-3.3.6 xxx.cc xxx.cc:6: error: ISO C++ forbids declaration of `f' with no type xxx.cc:6:

[Bug middle-end/43251] [4.4 Regression] Erroneous code with -ftree-vectorize

2010-03-03 Thread kargl at gcc dot gnu dot org
--- Comment #11 from kargl at gcc dot gnu dot org 2010-03-04 00:18 --- (In reply to comment #9) (In reply to comment #8) It is a dup of PR 24581. Backporting the gcc/tree-complex.c change in revision 147281: http://gcc.gnu.org/viewcvs?view=revisionrevision=147281 to 4.4

[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code

2010-03-03 Thread zsojka at seznam dot cz
--- Comment #11 from zsojka at seznam dot cz 2010-03-04 01:28 --- Created an attachment (id=20016) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20016action=view) different reduced testcase Testcases from comment #0 and comment #10 don't fail for me (x86_64, r157161). However,

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread howarth at nitro dot med dot uc dot edu
--- Comment #12 from howarth at nitro dot med dot uc dot edu 2010-03-04 02:28 --- FAIL: g++.dg/abi/mangle40.C scan-assembler weak[^\n]*_Z1fIDv4_fEvT_ FAIL: g++.dg/abi/mangle40.C scan-assembler weak[^\n]*_ZN1AIDv4_fE1tE FAIL: g++.dg/abi/mangle41.C (test for errors, line 6) FAIL:

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread howarth at nitro dot med dot uc dot edu
--- Comment #13 from howarth at nitro dot med dot uc dot edu 2010-03-04 02:30 --- /sw/src/fink.build/gcc45-4.4.999-20100303/darwin_objdir/gcc/testsuite/g++/../../g++ -B/sw/src/fink.build/gcc45-4.4.999-20100303/darwin_objdir/gcc/testsuite/g++/../../ /sw/src/fink.build/gcc45-4.4.999

[Bug c++/12909] ambiguity in mangling vector types

2010-03-03 Thread howarth at nitro dot med dot uc dot edu
--- Comment #14 from howarth at nitro dot med dot uc dot edu 2010-03-04 02:32 --- Created an attachment (id=20017) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20017action=view) g++.dg/abi/mangle41.C assembly file from x86_64-apple-darwin10 --

[Bug fortran/43244] Invalid statement misinterpreted as FINAL declaration

2010-03-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2010-03-04 02:34 --- Without looking at the code yet, the matcher must see a space or double colon after the word FINAL before matching it. If it sees anything else, its a MATCH_NO not a MATCH_ERROR. If this is being done then the

[Bug fortran/43217] Output of Hollerith constants which are not a multiple of 4 bytes

2010-03-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2010-03-04 03:08 --- Tobias, If you have a fix in mind, you are welcome to take this. I am going to work the namelist bug first. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43217

[Bug fortran/43217] Output of Hollerith constants which are not a multiple of 4 bytes

2010-03-03 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2010-03-04 03:15 --- (In reply to comment #5) Tobias, If you have a fix in mind, you are welcome to take this. I am going to work the namelist bug first. Just close the report. Using Hollerith in 2010 is a less than smart idea.

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2010-03-04 05:32 --- Try compiling the test program with -std=f95 and then run it. ;) Oh Bother. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43228

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2010-03-04 05:37 --- Patch in the works. Stay tuned. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43228