[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-09-19 Thread ubizjak at gmail dot com
--- Comment #9 from ubizjak at gmail dot com 2007-09-20 06:51 --- Created an attachment (id=14226) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14226&action=view) Preprocessed inffast.c. Compile with -O2 -msse2 -ftree-vectorize -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3

[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-09-19 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2007-09-20 06:49 --- I can't confirm the failure (make check from zlib works OK for me), but there is some suspicious code in inflate_fast(). When compiling (to be attached) preprocessed testcase (using -O2 -msse2 -ftree-vectorize on i686), I

[Bug c/33507] Erroneous warning with __attribute__((noreturn)) function

2007-09-19 Thread eric dot paire at st dot com
--- Comment #1 from eric dot paire at st dot com 2007-09-20 06:49 --- Created an attachment (id=14225) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14225&action=view) A simple source file showing the problem Compile it with "gcc -c foo.c" and the warning is displayed. -- htt

[Bug c/33507] New: Erroneous warning with __attribute__((noreturn)) function

2007-09-19 Thread eric dot paire at st dot com
A function declared with __attribute__((noreturn)) ending with __asm__ statement should not warn "'noreturn' funtion does return", as the parser can not understand what is within the last __asm__ statement. -- Summary: Erroneous warning with __attribute__((noreturn))

[Bug fortran/33400] Formatted read fails if line ends without line break

2007-09-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-09-20 03:36 --- I will have a look. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added As

[Bug c++/33501] Copy constructor assumed to exist for undefined class

2007-09-19 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-09-20 03:35 --- Confirmed. We use to error out but don't do any more with gcc4.1.2. icc does produce an error, but Sun Studio doesn't (though I have other beef with that latter compiler as well...) W. -- bangerth at dealii dot org

[Bug libfortran/33421] [4.3 Regression] Weird quotation of namelist output of character arrays

2007-09-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-09-20 03:33 --- I am investigating. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added As

[Bug fortran/31213] ICE on valid code with gfortran

2007-09-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-09-20 03:25 --- Un-assigning myself. No time at the moment -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added --

[Bug libfortran/26253] fallback scalbn doesn't handle denormals correctly

2007-09-19 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2007-09-20 02:24 --- Subject: Re: fallback scalbn doesn't handle denormals correctly > For some reason, I had completely forgotten about ldexp(). But as it is C89, > it > should be available, and as all GCC supported targets

[Bug preprocessor/33473] GCC does not correctly generate dependencies for precompiled headers

2007-09-19 Thread rswan at signetic dot ca
--- Comment #3 from rswan at signetic dot ca 2007-09-20 01:10 --- (In reply to comment #2) > I think this is a dup of bug 14933. > I agree. Sorry. Should I mark it as a duplicate? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33473

[Bug preprocessor/33473] GCC does not correctly generate dependencies for precompiled headers

2007-09-19 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-09-20 00:46 --- I think this is a dup of bug 14933. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33473

[Bug c++/33506] [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes

2007-09-19 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug c++/33475] New warning suggestion: virtual functions called from constructors/destructors

2007-09-19 Thread yuri at tsoft dot com
--- Comment #5 from yuri at tsoft dot com 2007-09-19 23:37 --- I would like to note that this isn't a clear-cut suggestion for the following reasons: * It's impossible to enforce such warning in all cases, only in case of virtual functions immediately called from constructor/destructor.

[Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter

2007-09-19 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2007-09-19 23:20 --- A regression hunt on powerpc-linux using the submitter's test case identified the following patch: http://gcc.gnu.org/viewcvs?view=rev&rev=115800 r115800 | lmillward | 2006-07-28 17:01:19 + (Fri, 28 Jul 2

[Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes

2007-09-19 Thread jakub at gcc dot gnu dot org
extern int foo (char *) __attribute__ ((warn_unused_result)); extern int bar (char *) throw () __attribute__ ((warn_unused_result)); extern int bar (char *) throw (); fails to compile with 4.2/4.3 (instead of warn_unused_result any other attribute that has type_required set can be used, like nonnu

[Bug fortran/33497] Bind(C): C_LOC rejects interoperable arguments

2007-09-19 Thread patchapp at dberlin dot org
--- Comment #2 from patchapp at dberlin dot org 2007-09-19 23:15 --- Subject: Bug number PR 33497 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01583.html -- http://gcc.gnu.org/bugzilla/s

[Bug target/33505] New: Vectorizer (or spu target builtins) and PCH don't get along

2007-09-19 Thread pinskia at gcc dot gnu dot org
As reported in http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01505.html The spu target builtins are not GC safe. -- Summary: Vectorizer (or spu target builtins) and PCH don't get along Product: gcc Version: 4.3.0 Status: UNCONFIRME

[Bug c++/15774] Conflicting function decls not diagnosed

2007-09-19 Thread dannysmith at users dot sourceforge dot net
--- Comment #6 from dannysmith at users dot sourceforge dot net 2007-09-19 21:52 --- With 4.1, 4.2 and trunk, there is still no diagnosis of change in calling convention in decl, but the bug in generated code is exposed only with -fno-unit-at-time. Danny -- dannysmith at users dot

[Bug c++/33504] New: redundant temporary object is created

2007-09-19 Thread alexey dot starovoytov at sun dot com
looks like there is an ugly bug in g++ front-end. the problem can be demonstrated by the existing testcase: ext/pb_ds/regression/trie_data_map_rand.cc if you apply the following diff: .../libstdc++-v3/testsuite/util/regression/rand/assoc/detail/ $ svn di Index: insert_fn_imps.hpp

[Bug c++/33112] ICE : canonical types differ for identical types const _CharT* [14] and const _CharT* [14]

2007-09-19 Thread dgregor at gcc dot gnu dot org
--- Comment #4 from dgregor at gcc dot gnu dot org 2007-09-19 21:45 --- Here is the real fix: http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01544.html -- dgregor at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/33185] [4.3 Regression] ICE: canonical types differ for identical types T [] and T []

2007-09-19 Thread dgregor at gcc dot gnu dot org
--- Comment #7 from dgregor at gcc dot gnu dot org 2007-09-19 21:45 --- Here is the real fix: http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01544.html -- dgregor at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/33426] Support of #pragma ivdep

2007-09-19 Thread gjunk at sapience dot com
--- Comment #9 from gjunk at sapience dot com 2007-09-19 21:34 --- Thanks for feedback - not exactly sure where this leaves things - but if gcc can deliver the same kind of floating point performance as icc it would be a really good thing. The 2005 article - wasn't clear to me what that

[Bug bootstrap/33503] Can not build gcc from combined tree - bug in libtool

2007-09-19 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|critical|normal Component|other |bootstrap ht

[Bug other/33503] New: Can not build gcc from combined tree - bug in libtool

2007-09-19 Thread s_pyptev at ipmce dot ru
snapshot gcc-4.3-20070914 When i try to build gcc the process falls when it tries to use just created binutils or gas. Investigating the problem I've found that libtool creates "normal" binutils in binutils/.libs directory and creates a wrapper in binutils directory for each util. The wrapper shoul

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread joseph at codesourcery dot com
--- Comment #5 from joseph at codesourcery dot com 2007-09-19 19:54 --- Subject: Re: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Wed, 19 Sep 2007, jbeulich at novell dot com wrote: > Isn't this the same as 16602 (which I d

[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared

2007-09-19 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-09-19 19:11 --- (In reply to comment #1) > That this is missing in the requirement lists in 24.1.1 and 24.1.2 is probably > due to the fact that it does not concern the Iterator class itself, but > iterator_traits. I disagree with thi

[Bug fortran/33500] ICE in copy_to_mode_reg with logical(kind=1) expression

2007-09-19 Thread william dot mitchell at nist dot gov
--- Comment #2 from william dot mitchell at nist dot gov 2007-09-19 19:07 --- If it helps, this bug was not in GNU Fortran (GCC) 4.3.0 20070531 (experimental) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33500

[Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type

2007-09-19 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-09-19 19:04 --- As I've said in the other report, I believe you shouldn't rely on the existence of iterator_traits for the iterator type. You should use the return type of dereferencing the iterator. W. -- http://gcc.gnu.org/bugzi

[Bug fortran/33502] gfortran with .F suffix and -g3 option chokes on preprocessor syntax

2007-09-19 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-19 18:58 --- #define have to be understood by the front-end with -g3 -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/33502] New: gfortran with .F suffix and -g3 option chokes on preprocessor syntax

2007-09-19 Thread sjc at pobox dot com
~> gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /projects/tob/gcc/configure --enable-languages=c,fortran --prefix=/projects/tob/gcc-trunk Thread model: posix gcc version 4.3.0 20070919 (experimental) [trunk revision 128597] (GCC) ~> cat fm.F

[Bug fortran/31244] data initialization with more than 2**32 elements

2007-09-19 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2007-09-19 18:48 --- I have a patch that in theory allows the repeat count to be unlimited. I'll note that having a large repeat count is a rather illogical thing to do, based on my previous posts about compile time and size of executable

[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared

2007-09-19 Thread singler at ira dot uka dot de
--- Comment #1 from singler at ira dot uka dot de 2007-09-19 18:42 --- The standard states clearly (24.3.1): "Accordingly, it is required that if Iterator is the type of an iterator, the types iterator_traits::difference_type iterator_traits::value_type iterator_traits::iterator_catego

[Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type

2007-09-19 Thread singler at ira dot uka dot de
--- Comment #1 from singler at ira dot uka dot de 2007-09-19 18:34 --- Instead of std::plus, a functor should be used that accepts two different types for LHS and RHS, Result and std::iterator_traits::value_type, respectively. -- singler at ira dot uka dot de changed: Wha

[Bug target/33406] [4.3 Regression] At revision 128385 Bootstraping PPC Darwin still fail in Java

2007-09-19 Thread andreast at gcc dot gnu dot org
--- Comment #13 from andreast at gcc dot gnu dot org 2007-09-19 18:09 --- Fixed -- andreast at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug middle-end/33348] [4.3 Regression] gfortran.dg/g77/19990826-3.f fails at -O1

2007-09-19 Thread andreast at gcc dot gnu dot org
--- Comment #8 from andreast at gcc dot gnu dot org 2007-09-19 18:08 --- Fixed -- andreast at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug c++/31446] [4.2/4.3 regression] ICE with invalid template parameter

2007-09-19 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2007-09-19 17:59 --- Hi again... A regression hunt would be useful for this one too... -- pcarlini at suse dot de changed: What|Removed |Added -

[Bug target/11180] [avr-gcc] Optimization decrease performance of struct assignment.

2007-09-19 Thread eweddington at cso dot atmel dot com
--- Comment #27 from eweddington at cso dot atmel dot com 2007-09-19 17:57 --- Created an attachment (id=14224) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14224&action=view) Rask's patch modified from comments. Here is Rask's patch again, but slightly modified from the comment

[Bug fortran/33497] Bind(C): C_LOC rejects interoperable arguments

2007-09-19 Thread sfilippone at uniroma2 dot it
--- Comment #1 from sfilippone at uniroma2 dot it 2007-09-19 17:29 --- A version with an inner pointer to a derived type instead of allocatable array fails as well. - module c_vhandle_mod use iso_c_binding type foo integer :: i end type foo type foo_item

[Bug c++/33501] New: Copy constructor assumed to exist for undefined class

2007-09-19 Thread ciobi at inbox dot com
GCC 4.2.1 assumes that undefined classes have public copy constructors (at least when they are used in template classes), as evidenced in the code below. GCC 4.1.0 generates a compiler error for the same code. begin gcc_error2.cpp class A; template

[Bug fortran/33500] ICE in copy_to_mode_reg with logical(kind=1) expression

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-09-19 17:46 --- Confirmed on x86_64-linux. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread ebotcazou at gcc dot gnu dot org
--- Comment #9 from ebotcazou at gcc dot gnu dot org 2007-09-19 17:33 --- Don't we/can't we issue a warning here? -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/33439] OpenMP: Incorrect error message for chunksize variable

2007-09-19 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2007-09-19 17:30 --- I think the standard is very vague here. First consider: !$omp parallel default(none) call something !$omp do schedule(static, chunksize) do i=1,100 call somethingelse done !$omp end do !$omp end parallel Do

[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion

2007-09-19 Thread raeburn at raeburn dot org
--- Comment #4 from raeburn at raeburn dot org 2007-09-19 17:27 --- (In reply to comment #3) > I'm not convinced by the explanation in the comment. A pointer to array *is* > compatible with the corresponding const pointer type; -Wcast-qual may apply > too, but that's not exhibited in th

[Bug libstdc++/33485] parallel v3: do not use __builtin_alloca, use VLA

2007-09-19 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-09-19 17:08 --- (In reply to comment #3) > Awesome: thanks for doing these PR's Wolfgang. > > Andrew, you mean the attribute? No. I mean something like: int f(int n) { __extension__ int h[n]; h[n-1] = 0; return h[n-1]; } Wh

[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared

2007-09-19 Thread bkoz at gcc dot gnu dot org
-- bkoz at gcc dot gnu dot org changed: What|Removed |Added CC||bkoz at redhat dot com Status|UNCONFIRMED |N

[Bug libstdc++/33489] parallel v3: sort assumes that the type of the objects to be sorted have a default constructor

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #1 from bkoz at gcc dot gnu dot org 2007-09-19 17:07 --- Wolfgang means "parallel mode" instead of debug mode. This is confirmed. -- bkoz at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/33488] parallel v3: std::accumulate uses accumulator of wrong type

2007-09-19 Thread bkoz at gcc dot gnu dot org
-- bkoz at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirme

[Bug libstdc++/33487] parallel v3: more functions not in right namespace

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #1 from bkoz at gcc dot gnu dot org 2007-09-19 17:06 --- Mine. -- bkoz at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at g

[Bug libstdc++/33486] parallel v3: functions not in right namespace

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #1 from bkoz at gcc dot gnu dot org 2007-09-19 17:05 --- Mine. -- bkoz at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at g

[Bug libstdc++/33485] parallel v3: do not use __builtin_alloca, use VLA

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #3 from bkoz at gcc dot gnu dot org 2007-09-19 17:05 --- Awesome: thanks for doing these PR's Wolfgang. Andrew, you mean the attribute? It's my preference to use #pagma GCC system header for this. It does the least amount of molestation. However, it doesn't currently wor

[Bug fortran/33500] New: ICE in copy_to_mode_reg with logical(kind=1) expression

2007-09-19 Thread william dot mitchell at nist dot gov
[EMAIL PROTECTED]> cat bug070919.f90 subroutine whatever() logical(kind=1) :: l1, l2, l3 if ((l1 .and. l2) .neqv. l3) then l1 = .true. endif end [EMAIL PROTECTED]> gfortran -c bug070919.f90 bug070919.f90: In function ‘whatever’: bug070919.f90:1: internal compiler error: in copy_to_mode_reg, at

[Bug libstdc++/32822] More pb_ds/hash_based_containers.html errors

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #2 from bkoz at gcc dot gnu dot org 2007-09-19 16:59 --- Also, this one. -- bkoz at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIG

[Bug libstdc++/32819] pb_ds/hash_based_containers.html errors

2007-09-19 Thread bkoz at gcc dot gnu dot org
--- Comment #2 from bkoz at gcc dot gnu dot org 2007-09-19 16:59 --- Hey Chalathip, thanks for your comments. I've fixed all of these except for: > Suggestion: null_probe_fn class is missing. As that file has no corresponding .svg file and thus I cannot edit it. best, benjamin --

[Bug libstdc++/33491] parallel v3: add some documentation

2007-09-19 Thread bkoz at gcc dot gnu dot org
-- bkoz at gcc dot gnu dot org changed: What|Removed |Added CC||bkoz at redhat dot com Status|UNCONFIRMED |N

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rakdver at gcc dot gnu dot org
--- Comment #8 from rakdver at gcc dot gnu dot org 2007-09-19 16:56 --- t #2) > Technically the testcase invokes undefined behavior because 'val' overflows > during loop execution. Practically from a QOI point of view the undefinedness > should not propagate to the loop exit test (thoug

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-09-19 16:50 --- And the code here is undefined as val does overflow. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rakdver at gcc dot gnu dot org
--- Comment #6 from rakdver at gcc dot gnu dot org 2007-09-19 16:45 --- Mine. -- rakdver at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rask at gcc dot gnu dot org
--- Comment #5 from rask at gcc dot gnu dot org 2007-09-19 16:39 --- table_init: pushl %ebp# 51*pushsi2[length = 1] movl$117835012, %eax# 20*movsi_1/1 [length = 5] movl%esp, %ebp # 52*movsi_1/1 [length = 2]

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-09-19 16:35 --- what happens when val is turned into unsgned? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/33499] New: Spurious errors compiling a module with a contained function with an ENTRY

2007-09-19 Thread michael dot a dot richmond at nasa dot gov
When I compile the module listed below I get the following messages: c.f90:9.28: MODULE PROCEDURE cx_cadr, cx_radc 1 Error: FUNCTION result cx_cadr can't be of type TYPE(cx) in FUNCTION cx_cadr at (1) c.f90:19.18: END MODULE complex 1 Error: Containe

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-09-19 15:53 --- Confirmed. IVOPTs chooses to replace the exit test by one that is true only after signed overflow. SCEV/VRP happily optimizes this away. : ivtmp.52_2 = (long unsigned int) value_8; # ivtmp.52_16 = PHI ; # v

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rask at gcc dot gnu dot org
--- Comment #3 from rask at gcc dot gnu dot org 2007-09-19 16:12 --- Technically, the code is undefined (overflow of signed integer val). Using -O2 -fno-strict-overflow results in a loop test, but the code looks dubious: table_init: pushl %ebp# 51*pushsi2[lengt

[Bug tree-optimization/33498] [4.2/4.3 Regression] Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-09-19 15:59 --- Technically the testcase invokes undefined behavior because 'val' overflows during loop execution. Practically from a QOI point of view the undefinedness should not propagate to the loop exit test (though GCCs behav

[Bug c++/33459] [4.2/4.3 regression] ICE on reference member in union

2007-09-19 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2007-09-19 15:17 --- On it. -- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|unassigned at gcc dot g

[Bug c/33498] New: Optimizer (-O2) may convert a normal loop to infinite

2007-09-19 Thread dada1 at cosmosbay dot com
gcc-4.2.0 and gcc-4.2.1 cannot compile properly this function if -O2 is selected It generates an infinite loop :( No problem for previous version (gcc-4.1.2 is OK) $ cat bug.c void table_init(int *value) { int i; int val = 0x03020100; for (i = 0; i < 256/4; i++) {

[Bug c++/33459] [4.2/4.3 regression] ICE on reference member in union

2007-09-19 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2007-09-19 14:43 --- Thanks a lot! -- pcarlini at suse dot de changed: What|Removed |Added Status|UNCONFIRMED

[Bug tree-optimization/32199] jc1: out of memory allocating 4072 bytes after a total of 805021000 bytes

2007-09-19 Thread alex dot d at bugmenot dot com
--- Comment #13 from alex dot d at bugmenot dot com 2007-09-19 14:43 --- Created an attachment (id=14223) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14223&action=view) consumes all memory when compiled with -O3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32199

[Bug tree-optimization/32199] jc1: out of memory allocating 4072 bytes after a total of 805021000 bytes

2007-09-19 Thread alex dot d at bugmenot dot com
--- Comment #12 from alex dot d at bugmenot dot com 2007-09-19 14:38 --- I've a similar problem when building SDL library (1.2.12), when using -O3 compilation flag. I'll try to attach an .i file that triggers the bug. After starting the compilation, the memory starts getting consumed se

[Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line

2007-09-19 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2007-09-19 14:11 --- Well, it is the Fortran standard that says free form comments start with ! And then OpenMP2.5 2.1.2 goes on and says certain forms of comments are not to be treated as comments, but OpenMP directives etc. One of them i

[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-09-19 Thread dorit at gcc dot gnu dot org
--- Comment #7 from dorit at gcc dot gnu dot org 2007-09-19 14:28 --- (In reply to comment #6) > It looks like > zlib compiled w/ -O -msse -ftree-vectorize (built with fedora's rpm package > gcc-4.1.2-17) > has same problem. > In my environment, rpm-4.4.2.1-7.fc8 and seamonkey-1.1.3-6.

[Bug fortran/33408] ICE: tree check: expected type_decl, have in debug_flush_symbol_queue, at final.c:3986

2007-09-19 Thread dir at lanl dot gov
--- Comment #10 from dir at lanl dot gov 2007-09-19 13:55 --- It looks like it is now only a Macintosh PowerPC version problem. It also works Ok on the Intel Macintosh and on the MSYS versions of gfortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33408

[Bug c++/33459] [4.2/4.3 regression] ICE on reference member in union

2007-09-19 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2007-09-19 14:15 --- A regression hunt on powerpc-linux using the submitter's test case identified the following patch where the test starts failing: http://gcc.gnu.org/viewcvs?view=rev&rev=126399 r126399 | mmitchel | 2007-07-06

[Bug c++/32056] Storage classes on template parameters

2007-09-19 Thread pcarlini at suse dot de
-- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org |

[Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line

2007-09-19 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2007-09-19 13:46 --- (In reply to comment #6) > > Pedantically this is not a bug. If an omp sentinel doesn't have the desired > > form, it should be handled as a normal comment. I cannot find anything about this in the OpenMP spec; I thi

[Bug fortran/33408] ICE: tree check: expected type_decl, have in debug_flush_symbol_queue, at final.c:3986

2007-09-19 Thread dir at lanl dot gov
--- Comment #9 from dir at lanl dot gov 2007-09-19 13:39 --- It works Ok on my version of linux, but it still is crashing on today's Macintosh PowerPC version (20070919) - [dranta:~/fe/dyna3d96/source] dir% gfortran -g -c -O0 -fcray-pointer -fno-automatic out.f outt.F:31

[Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-09-19 13:18 --- (In reply to comment #6) > As this PR shows, this user error happens easily, if one converts a fixed-form > into a free-form code. Thus I'm in favour of printing a warning or - as ifort > and sunf95 do - an error.

[Bug libfortran/33469] Default formats for real input are not precise enough

2007-09-19 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2007-09-19 12:38 --- Subject: Re: Add one digit to the default formatted output > Dominique, what is the output of your test program on ppc-darwin? real(4) default 808 1PG20.61881 1PG20.7 808 1PG20.8

[Bug tree-optimization/33140] [4.3 Regression] ICE in build2_stat, at tree.c:3115

2007-09-19 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2007-09-19 12:55 --- This no longer reproduces on the trunk since http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128272 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33140

[Bug fortran/33408] ICE: tree check: expected type_decl, have in debug_flush_symbol_queue, at final.c:3986

2007-09-19 Thread dir at lanl dot gov
--- Comment #8 from dir at lanl dot gov 2007-09-19 12:47 --- Still Crashing on the 20070917 version - [dranta:~/fe/dyna3d96/source] dir% gfortran -fcray-pointer -fno-automatic -g -O0 -c -DSGI -DWKSTN -DUNIX -DVECLEN=32 -DDP out.f outt.F:3155.19: common/aux14/

[Bug c++/31747] [4.2/4.3 regression] ICE combining static and extern

2007-09-19 Thread pcarlini at suse dot de
-- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org |

[Bug fortran/33497] New: Bind(C): C_LOC rejects interoperable arguments

2007-09-19 Thread burnus at gcc dot gnu dot org
See http://gcc.gnu.org/ml/fortran/2007-09/msg00301.html for the initial bug report by Salvatore Filippone (thanks for finding the bug!) and a longer example. Assume the following code: type double_vector_item real(c_double), allocatable :: v(:) end type double_vector_item type(double_ve

[Bug fortran/33288] ICE (segfault) in mpfr_cmp2 when evaluating array initializers containing addition

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-09-19 11:52 --- Mine. A straightforward patch following the idea laid in my previous comment fixes it. Index: arith.c === --- arith.c (revision 128540) +++ ari

[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion

2007-09-19 Thread bonzini at gnu dot org
--- Comment #3 from bonzini at gnu dot org 2007-09-19 11:46 --- I'm not convinced by the explanation in the comment. A pointer to array *is* compatible with the corresponding const pointer type; -Wcast-qual may apply too, but that's not exhibited in the test case. -- bonzini at gnu

[Bug c/33238] [4.1/4.2/4.3 Regression] ICE on statement expression using variable-sized structure in tree_low_cst, at tree.c:4502

2007-09-19 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug libfortran/33469] Default formats for real input are not precise enough

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Severity|enhancement |normal Component|fortran |libfortran

[Bug fortran/33469] Add one digit to the default formatted output

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

[Bug fortran/33469] Add one digit to the default formatted output

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-09-19 09:54 --- (In reply to comment #0) > Following a discussion on IRC with FX Coudert, I think the number of digits > printed by default in formatted output should be increased by one. Dominique, what is the output of your te

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread schwab at suse dot de
--- Comment #4 from schwab at suse dot de 2007-09-19 09:47 --- *** This bug has been marked as a duplicate of 16602 *** -- schwab at suse dot de changed: What|Removed |Added

[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion

2007-09-19 Thread schwab at suse dot de
--- Comment #2 from schwab at suse dot de 2007-09-19 09:47 --- *** Bug 33076 has been marked as a duplicate of this bug. *** -- schwab at suse dot de changed: What|Removed |Added -

[Bug c++/33435] internal compiler error with templates and openmp

2007-09-19 Thread E dot Kuemmerle at fz-juelich dot de
--- Comment #2 from E dot Kuemmerle at fz-juelich dot de 2007-09-19 09:40 --- Here is a self-contained example: template class Vector { public: explicit Vector() {} ~Vector() {} private: T m_data[Sz]; }; int main() { Vector a[10];

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread jbeulich at novell dot com
--- Comment #3 from jbeulich at novell dot com 2007-09-19 09:39 --- Isn't this the same as 16602 (which I don't really understand why it was rejected as invalid)? Also, if this *is* invalid, then what proper mechanism does one have to express what is intended here? And why does similar c

[Bug target/33133] [4.3 Regression] ICE in try_ready, at haifa-sched.c:2958 with -O3

2007-09-19 Thread tbm at cyrius dot com
--- Comment #3 from tbm at cyrius dot com 2007-09-19 09:21 --- Still there as of trunk 20070916. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33133

[Bug libfortran/26253] fallback scalbn doesn't handle denormals correctly

2007-09-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-09-19 09:16 --- For some reason, I had completely forgotten about ldexp(). But as it is C89, it should be available, and as all GCC supported targets now have (FLT_RADIX == 2), it should fix the problem. John, could you confirm t

[Bug c++/33496] [4.3 regression] ICE with sizeof for invalid argument pack

2007-09-19 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33496

[Bug c++/33496] New: [4.3 regression] ICE with sizeof for invalid argument pack

2007-09-19 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline: == template void foo() { sizeof...N(); } void bar() { foo<0>(); } == bug1.cc: In function 'void foo()': bug1.cc:3: error: 'N' cannot be used