[Bug tree-optimization/21596] [4.0/4.1/4.2/4.3 Regression] extra temporaries when using global register variables

2007-03-07 Thread bonzini at gnu dot org
--- Comment #10 from bonzini at gnu dot org 2007-03-07 08:22 --- Unfortunately, if I fix the fwprop bug (which is actually caused by wrong df information), I get again leal-4(%edi), %eax movl%eax, %edi movl(%eax), %eax testl %eax, %eax The

[Bug c/31065] New: ICE while building SpiderMonkey 1.60

2007-03-07 Thread bugzilla at poradnik-webmastera dot com
I tried to build SpiderMonkey 1.60 (http://www.mozilla.org/js/spidermonkey/) on SunOS 5.9/SPARC, and I got this ICE. That code compiles successfully using GCC 4.1.1 bundled with Linux Fedora Core 6 (x86, 32-bit). gcc -o SunOS5.9_DBG.OBJ/jscpucfg.o -c -g -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS -DHAVE_LOC

[Bug c/31065] ICE while building SpiderMonkey 1.60

2007-03-07 Thread bugzilla at poradnik-webmastera dot com
--- Comment #1 from bugzilla at poradnik-webmastera dot com 2007-03-07 08:32 --- Created an attachment (id=13156) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13156&action=view) Preprocessor output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31065

[Bug middle-end/31058] bogus array overflow warnings in unreachable code

2007-03-07 Thread rakdver at gcc dot gnu dot org
--- Comment #3 from rakdver at gcc dot gnu dot org 2007-03-07 09:15 --- The same problem appears in the following testcase. int a[100]; void test (int real_length_of_a) { int x = 110; if (x < real_length_of_a) a[x]++; } -- rakdver at gcc dot gnu dot org changed:

[Bug middle-end/31058] bogus array overflow warnings in unreachable code

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-03-07 09:33 --- But real length of a cannot be greater than 100. I guess VRP could be improved to derive a value range for x in this case ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058

[Bug middle-end/31058] bogus array overflow warnings in unreachable code

2007-03-07 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #5 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2007-03-07 09:38 --- Subject: Re: bogus array overflow warnings in unreachable code > But real length of a cannot be greater than 100. I guess VRP could be > improved > to derive a value range for x in this case

[Bug middle-end/31058] bogus array overflow warnings in unreachable code

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2007-03-07 09:39 --- Uh, yes. So let's teach CCP to convert a[110]++; to builtin_trap then ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058

[Bug fortran/31011] Incorrect error: parameter array sections

2007-03-07 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2007-03-07 09:41 --- confirmed - this is an arithmetic error in expr.c(find_array_section). The following fixes the problem, although it has not yet been regtested. Paul Index: gcc/fortran/expr.c

[Bug fortran/30940] Fortran 2003: Scalar CHARACTER supplied to array dummy

2007-03-07 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2007-03-07 09:55 --- Confirmed Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added Status|UNCO

[Bug c++/31064] [4.1/4.2/4.3 Regression] Internal Compiler Error when using operator& from template function

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-03-07 10:07 --- Confirmed. For reference: struct Dummy { int operator&(signed int &) { return 4; } }; struct ICE { template void aj(void) { signed int kalle = 9; int size = Dummy() & kalle;

[Bug c/31065] ICE while building SpiderMonkey 1.60

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-03-07 10:09 --- *** This bug has been marked as a duplicate of 26881 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #29 from rguenth at gcc dot gnu dot org 2007-03-07 10:09 --- *** Bug 31065 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/16625] Discarded Linkonce sections in .rodata

2007-03-07 Thread michael dot klein at fazi dot de
--- Comment #45 from michael dot klein at fazi dot de 2007-03-07 10:13 --- Created an attachment (id=13157) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13157&action=view) Patch to configure test for comdat support work with binutils snapshots gcc's configure test for COMDAT sup

[Bug middle-end/31066] New: Fortran testcase where inlining would be a huge gain

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
On the following testcase: program test integer, parameter :: n = 25000 integer :: i real, dimension(n) :: iener, dens, pres, temp, gamma, cs do i = 1, 3 call eos (iener, dens, pres, temp, gamma, cs, sheat, cgamma) end do contains subroutine eos (iener, dens, pres, temp, gam

[Bug c++/16625] Discarded Linkonce sections in .rodata

2007-03-07 Thread michael dot klein at fazi dot de
--- Comment #46 from michael dot klein at fazi dot de 2007-03-07 10:20 --- Created an attachment (id=13158) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13158&action=view) Non-reversed patch to make configure test for comdat support work with binutils snapshots -- michael dot

[Bug fortran/31067] New: MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
[see http://www.polyhedron.co.uk/pb05/linux/f90bench_AMD.html for the original polyhedron benchmark results, an explanation of what the benchmark is and the source code] Typical timings for the gas_dyn.f90 benchmark on my AMD64/linux system are: * ifort -O3 -xW -ipo -static -V gas_dyn.f90 -o gas_

[Bug middle-end/31068] New: ICE at -O1 -fipa-pta

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
I saw the -fipa-pta option in the GCC manual, and decided to try it on mainline. But... I can't get it to work with any C code (or Fortran): $ cat a.c void foo() { ; } $ gcc -c -O1 -fipa-pta a.c a.c: In function ‘foo’: a.c:5: error: stmt (0x2a983e4140) marked modified after optimization pass: re

[Bug fortran/30881] Select case of case(transfer(...)) wrongly rejected

2007-03-07 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2007-03-07 10:53 --- (In reply to comment #3) > fortran/trans-const.c:278 (because the expr is not an EXPR_CONSTANT). This > will > all be fixed when the simplifcation routine for TRANSFER is written. FX, You are correct - this is effec

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread mueller at gcc dot gnu dot org
--- Comment #7 from mueller at gcc dot gnu dot org 2007-03-07 10:59 --- I don't think this is the same testcase. you will get any warning in this case, because the compiler cannot determine that it is supposed to be dead code. -- mueller at gcc dot gnu dot org changed: W

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #8 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2007-03-07 11:02 --- Subject: Re: bogus array overflow warnings in unrolled loops > I don't think this is the same testcase. you will get any warning in this > case, > because the compiler cannot determine that i

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2007-03-07 11:27 --- (In reply to comment #0) > Maybe we should have MINLOC inlined when there's no mask, stride 1 and > one-dimensional? Definitely. We do this for minval, and from glancing at gfc_conv_intrinsic_minmaxval and gfc_con

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread mueller at gcc dot gnu dot org
--- Comment #9 from mueller at gcc dot gnu dot org 2007-03-07 11:34 --- well, the unrolled body is generated code, it could set TREE_NO_WARNING (for example). or it could avoid unrolling if its not a flex array. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-03-07 12:18 --- (In reply to comment #1) > We do this for minval, and from glancing at > gfc_conv_intrinsic_minmaxval and gfc_conv_intrinsic_minmaxloc, > it should happen already. No, because we never get into gfc_conv_intrinsic

[Bug c/31069] New: execve doesn't work correct in some cases

2007-03-07 Thread b dot krumboeck at rewe-group dot at
This bug only occurs with gcc 4.x.x on hpux. In certain circumstances the parameter for the environment will be assigned as argument for the command. I've written some code which will show you the exact problem. You need openssl to reproduce this test. The expected output is: Generating a 1024

[Bug c/31069] execve doesn't work correct in some cases

2007-03-07 Thread b dot krumboeck at rewe-group dot at
--- Comment #1 from b dot krumboeck at rewe-group dot at 2007-03-07 12:33 --- Created an attachment (id=13161) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13161&action=view) example code to reproduce the problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31069

[Bug c++/31070] New: internal compiler error: in function_arg_slotno, at config/sparc/sparc.c:4562

2007-03-07 Thread christian dot joensson at gmail dot com
Aurora SPARC Linux release 2.90 (Aurora Corona)/TI UltraSparc IIi (Sabre) sun4u: binutils-2.17.50.0.3-6.sparc.sparc bison-2.3-2.1.sparc dejagnu-1.4.4-5.1.noarch expect-5.43.0-5.1.sparc gcc-4.1.1-30.1.sparc glibc-2.5-3.1.sparcv9 glibc-2.5-3.1.sparc64 glibc-devel-2.5-3.1.sparc glibc-devel-2.5-3.1.sp

[Bug other/31071] New: A discrepancy in handling %{...} and %W{...} in function do_spec_1

2007-03-07 Thread wuhui1973 at 21cn dot com
In spec langauge, %{...} and %W{...} are exactly same, except that %W{...} mark last argument supplied within as a file to be deleted on failure. According to this definition, the handling of these two commands is descrepant. In do_spec_1, the handling of %W{...} is: 4943 case 'W': {

[Bug libfortran/30005] Open errors (not/already exists etc.): show also the file name

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #7 from tkoenig at gcc dot gnu dot org 2007-03-07 14:24 --- *** Bug 31053 has been marked as a duplicate of this bug. *** -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/31053] print file name when file cannot be opened for writing

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2007-03-07 14:24 --- (In reply to comment #2) > I believe this has been fixed already by PR30005 since December 5. Correct. The fix isn't in 4.2 though (which is what I tried :-) Closing as a duplicate of 30005. *** This bug has be

[Bug middle-end/31068] ICE at -O1 -fipa-pta

2007-03-07 Thread dberlin at dberlin dot org
--- Comment #1 from dberlin at gcc dot gnu dot org 2007-03-07 14:31 --- Subject: Re: New: ICE at -O1 -fipa-pta On 7 Mar 2007 10:32:37 -, fxcoudert at gcc dot gnu dot org <[EMAIL PROTECTED]> wrote: > I saw the -fipa-pta option in the GCC manual, and decided to try it on > mainline.

[Bug c++/16625] Discarded Linkonce sections in .rodata

2007-03-07 Thread hjl at lucon dot org
--- Comment #47 from hjl at lucon dot org 2007-03-07 14:33 --- (In reply to comment #45) > Created an attachment (id=13157) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13157&action=view) [edit] > Patch to configure test for comdat support work with binutils snapshots > > gcc's c

[Bug c/31069] execve doesn't work correct in some cases

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-03-07 14:34 --- Your argv array is too small. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension

2007-03-07 Thread lloyd at randombit dot net
--- Comment #1 from lloyd at randombit dot net 2007-03-07 14:47 --- This is also true for C++ unless -pedantic is specified (which is confusing since I thought -pedantic-errors was the default for C++, but apparently this changed at some point). Using '-Wall -Wextra -ansi -std=c++98' giv

[Bug c/31069] execve doesn't work correct in some cases

2007-03-07 Thread b dot krumboeck at rewe-group dot at
--- Comment #3 from b dot krumboeck at rewe-group dot at 2007-03-07 15:27 --- Oh, you're right! Thank you! I tried to debug for 3 days, without success. Linux, HPUX, GCC 4.X and GCC 3.4.2, . You are a hero! Once again, thank you very much. PS: Sorry for wasting your time. best

[Bug c/31072] New: Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
I tracked it down to the following code, which is not compiled as expected, if optimization (> O1) is turned on. Contents of fg.c: ---8<--8<-8<--- extern volatile int ReadyFlag_NotProperlyInitialized; volatile int ReadyFlag_NotProperlyInitialized=1; volatile int ReadyFlag_Initializat

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #1 from a_fisch at gmx dot de 2007-03-07 15:41 --- Created an attachment (id=13162) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13162&action=view) Preprocessed source of code sample -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31072

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #2 from a_fisch at gmx dot de 2007-03-07 15:44 --- Created an attachment (id=13163) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13163&action=view) Generated assembler output: powerpc-elf-gcc -O1 -S -o fg_O1.s fg.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31

[Bug fortran/31073] New: symbol names are not created with stdcall syntax

2007-03-07 Thread wt at simpack dot de
GNU Fortran 95 (GCC) 4.3.0 20061021 (experimental), MINGW build I am trying to compile f90 code into objects that generate the symbol names in stdcall syntax, i.e. [EMAIL PROTECTED] We need the stdcall decorations since we build a dll that is called from an app that needs to do all calls with std

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-03-07 17:11 --- .sbss is .sdata but in the bss part of it. If your loader does not zero bss, then you can use -fno-zero-initialized-in-bss to get the variable not stored in the bss section. -- pinskia at gcc dot gnu dot org chan

[Bug fortran/31073] symbol names are not created with stdcall syntax

2007-03-07 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-03-07 17:13 --- > I am trying to compile f90 code into objects that generate the symbol names > in stdcall syntax, i.e. [EMAIL PROTECTED] I think you are not looking for -mrtd but for versioned symbols. -mrtd does: "Use a different

[Bug middle-end/31066] Fortran testcase where inlining would be a huge gain

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-07 17:15 --- actually this function should be inlined as it is a nested function. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31066

[Bug middle-end/31066] Suboptimal vectorization after inlining

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-03-07 17:19 --- (In reply to comment #1) > actually this function should be inlined as it is a nested function. It is inlined. It's the vectorization of the inlined function that is suboptimal (at least, that's what I diagnose,

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #4 from a_fisch at gmx dot de 2007-03-07 17:43 --- Subject: Re: Wrong code for volatile var with initalization and optimization My runtime environment is clearing .bss but the problem is that the initialization value is != 0 . Because of the value != 0 it's not allo

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension

2007-03-07 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-03-07 17:57 --- The documentation says that you should use -pedantic to warn about GCC extensions[*], so I am not sure whether this is valid. But honestly, from the description of "-std=", I would understand that GNU extensions are dis

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension

2007-03-07 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2007-03-07 18:04 --- Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension On Wed, 7 Mar 2007, manu at gcc dot gnu dot org wrote: > The documentation says that you should use -pedantic to warn about GCC > extensions[*], so I a

[Bug c++/31049] G++ 4.1.1 forgets to allocate memory (skips part of user code)

2007-03-07 Thread satyaakam at yahoo dot co dot in
--- Comment #4 from satyaakam at yahoo dot co dot in 2007-03-07 18:07 --- Created an attachment (id=13164) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13164&action=view) assembly code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31049

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension

2007-03-07 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-03-07 18:11 --- (In reply to comment #3) > Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension > > Where the standard specified with @option{-std} represents a GNU > extended dialect of C, such as @samp{gnu89} or @samp{gnu99

[Bug target/30848] [4.1/4.2/4.3 regression] ICE with invalid constraint in asm statement

2007-03-07 Thread rth at gcc dot gnu dot org
--- Comment #2 from rth at gcc dot gnu dot org 2007-03-07 18:13 --- Subject: Bug 30848 Author: rth Date: Wed Mar 7 18:13:29 2007 New Revision: 122669 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122669 Log: PR target/30848 * reg-stack.c (emit_swap_insn): If a

[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##

2007-03-07 Thread ahs3 at fc dot hp dot com
--- Comment #9 from ahs3 at fc dot hp dot com 2007-03-07 18:43 --- Ah, my fault; I wasn't being clear. I still get the error message with -E, that is true. However, the resulting code from cpp I thought was correct -- it just produces what I thought was a normal C label, and if I ignor

[Bug c++/31074] New: Reference casting involving multiple inheritance produces bad pointer

2007-03-07 Thread hagin at us dot ibm dot com
When casting a const reference of a derived class (which inherits from multiple classes with virtual methods) to a non-const reference of one of it's base classes, the resulting non-const base class reference points to an incorrect address. system type/gcc build options/version: Target: x86_64-r

[Bug libstdc++/30915] [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-03-07 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2007-03-07 19:05 --- Well Ahmed, right now you can't possibly see the exact same error, because stl_algobase.h does *not* include anymore... Please provide more info. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915

[Bug target/30848] [4.1/4.2/4.3 regression] ICE with invalid constraint in asm statement

2007-03-07 Thread rth at gcc dot gnu dot org
--- Comment #3 from rth at gcc dot gnu dot org 2007-03-07 19:16 --- Subject: Bug 30848 Author: rth Date: Wed Mar 7 19:15:46 2007 New Revision: 122671 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122671 Log: PR target/30848 * reg-stack.c (emit_swap_insn): If a

[Bug target/30848] [4.1/4.2/4.3 regression] ICE with invalid constraint in asm statement

2007-03-07 Thread rth at gcc dot gnu dot org
--- Comment #4 from rth at gcc dot gnu dot org 2007-03-07 19:18 --- Subject: Bug 30848 Author: rth Date: Wed Mar 7 19:18:22 2007 New Revision: 122672 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122672 Log: PR target/30848 * reg-stack.c (emit_swap_insn): If a

[Bug target/30848] [4.1/4.2/4.3 regression] ICE with invalid constraint in asm statement

2007-03-07 Thread rth at gcc dot gnu dot org
--- Comment #5 from rth at gcc dot gnu dot org 2007-03-07 19:21 --- Fixed. -- rth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c/31075] New: 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

2007-03-07 Thread sdirkse at gams dot com
testing if LLONG_MIN-1 == LLONG_MAX gives different results with -O3 and without. Here's a short example and the output I get on my machine. mamie:/home/distrib/lang/pas$cat mini64.c #include typedef signed long long int int64; #define MAXINT64 9223372036854775807LL #define MININT64 ((-92233720

[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-07 20:23 --- Signed integer overflow is undefined. Either use unsigned or -fwrapv. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-03-07 20:37 --- > well, the unrolled body is generated code, it could set TREE_NO_WARNING (for > example). or it could avoid unrolling if its not a flex array. Except it cannot tell sorry, this is exactly the same issue as the b

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2007-03-07 20:54 --- Sorry, but I don't agree a bit with you. It doesn't have as much false positives as other warnings in -Wall. And I think a warning for the testcase in comment #3 is ok -- the code looks very suspicious. Also the

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2007-03-07 21:00 --- (In reply to comment #2) > No, because we never get into gfc_conv_intrinsic_minmaxloc. We translate the > expression directly into a function call by calling > gfc_conv_intrinsic_funcall() at the head of gfc_conv_in

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension

2007-03-07 Thread joseph at codesourcery dot com
--- Comment #5 from joseph at codesourcery dot com 2007-03-07 21:06 --- Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension On Wed, 7 Mar 2007, manu at gcc dot gnu dot org wrote: > Sorry, I still don't understand what is the difference between -std=c89 and > -std=gnu89. -st

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread fxcoudert at gmail dot com
--- Comment #4 from fxcoudert at gmail dot com 2007-03-07 21:09 --- Subject: Re: MINLOC should sometimes be inlined (gas_dyn is so slw) > In gfc_conv_intrinsic_function, expr->rank is 0 for minval > and 1 for minloc (which is bogus). It's not bogus. The MINLOC is an array of

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #5 from tkoenig at gcc dot gnu dot org 2007-03-07 21:09 --- (In reply to comment #3) > In gfc_conv_intrinsic_function, expr->rank is 0 for minval > and 1 for minloc (which is bogus). I wonder where this is > set... To answer my own question: This is set in gfc_resolve_mi

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2007-03-07 21:21 --- (In reply to comment #11) > Sorry, but I don't agree a bit with you. It doesn't have as much false > positives > as other warnings in -Wall. Actually if you read the documention for -Wall, it says enable warnings

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #13 from pinskia at gcc dot gnu dot org 2007-03-07 21:22 --- Actually comment #3 shows this warning is not easy to avoid at all and should not be turned on with -Wall at all. I still had allways said it should not be included in -Wall. -- http://gcc.gnu.org/bugzilla/sh

[Bug middle-end/31058] bogus array overflow warnings in unrolled loops

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2007-03-07 21:22 --- This is why we have this bug -- because loop unrolling creates possibly unreachable code with out-of-bounds array access. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #15 from pinskia at gcc dot gnu dot org 2007-03-07 21:24 --- (In reply to comment #14) > This is why we have this bug -- because loop unrolling creates possibly > unreachable code with out-of-bounds array access. But the warning code is the real cause, sorry but there is no

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2007-03-07 21:25 --- We might now be able to disable the warning in the second vrp pass -- Dirk, did you try that after all the early optimizations we now got? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058

[Bug middle-end/31046] some i386-pf-sse-1.c started to fail on 3/3/07

2007-03-07 Thread brett dot albertson at stratech dot com
--- Comment #1 from brett dot albertson at stratech dot com 2007-03-07 21:29 --- (In reply to comment #0) As of last night, these now PASS again. Brett -- brett dot albertson at stratech dot com changed: What|Removed |Added -

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2007-03-07 21:29 --- Created an attachment (id=13165) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13165&action=view) Setting the correct rank in minloc This makes minloc have rank 0, and allows for inlining. I guess we'll find

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread gdr at cs dot tamu dot edu
--- Comment #17 from gdr at cs dot tamu dot edu 2007-03-07 21:35 --- Subject: Re: bogus array overflow warnings in unrolled loops "rguenth at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | This is why we have this bug -- because loop unrolling creates possibly | unreachable code w

[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-03-07 21:39 --- (In reply to comment #9)> > If none of those are the case, what bit of info am I not understanding? Yes "alldone:" are really two seperate tokens in C :). If you change the definition of LABEL to: #define LABEL(a

[Bug c++/31027] Compiler segfaults in simple virtual inheritance situation

2007-03-07 Thread v dot lesk at ic dot ac dot uk
--- Comment #3 from v dot lesk at ic dot ac dot uk 2007-03-07 21:44 --- Created an attachment (id=13166) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13166&action=view) Code which triggers bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31027

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread mueller at gcc dot gnu dot org
-- mueller at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfi

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread mueller at gcc dot gnu dot org
--- Comment #18 from mueller at gcc dot gnu dot org 2007-03-07 22:03 --- IIRC there are some cases that are only caught in the 2nd vrp run. It is still a possibility if this bug cannot be fixed otherwise. However, I don't see the issue with this testcase. a) its not a flex array b)

[Bug middle-end/31058] overflow warnings should not be enabled with -Wall

2007-03-07 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #19 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2007-03-07 22:17 --- Subject: Re: overflow warnings should not be enabled with -Wall > IIRC there are some cases that are only caught in the 2nd vrp run. It is still > a possibility if this bug cannot be fixed ot

[Bug target/31072] [4.3 Rgression] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-03-07 22:33 --- Woops. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED

[Bug target/31072] [4.2/4.3 Rgression] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-03-07 22:34 --- I was looking at the bug wrong the first time. Anyways this is caused by section anchors. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/31064] [4.1/4.2/4.3 Regression] Internal Compiler Error when using operator& from template function

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-07 22:39 --- *** This bug has been marked as a duplicate of 28879 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/28879] [4.0/4.1/4.2/4.3 regression] ICE with VLA in template function

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-03-07 22:39 --- *** Bug 31064 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

2007-03-07 Thread sdirkse at gams dot com
--- Comment #2 from sdirkse at gams dot com 2007-03-07 22:52 --- Thanks for telling me about the -fwrapv flag, that's good to know - I should have double-checked my K&R 2nd Edition before sending the bug. But I tried running the above example with the addition of the -fwrapv flag, and i

[Bug libstdc++/28080] header dependencies

2007-03-07 Thread paolo at gcc dot gnu dot org
--- Comment #23 from paolo at gcc dot gnu dot org 2007-03-07 22:59 --- Subject: Bug 28080 Author: paolo Date: Wed Mar 7 22:59:24 2007 New Revision: 122676 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122676 Log: 2007-03-06 Paolo Carlini <[EMAIL PROTECTED]> PR libst

[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-03-07 23:00 --- [EMAIL PROTECTED] ~]$ ~/gcc-mainline/bin/gcc t.c -O2 -fwrapv [EMAIL PROTECTED] ~]$ !./ ./a.out mini64: test 2's-complement arithmetic minint64-1 = 9223372036854775807 minint64 - 1 == MAXINT64 [EMAIL PROTECTED] ~]$ ~/

[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

2007-03-07 Thread sdirkse at gams dot com
--- Comment #4 from sdirkse at gams dot com 2007-03-07 23:10 --- DOH! I wasn't running the executable compiled with -fwrapv. Using the -fwrapv flag does indeed make things work as I hoped and as documented. -- sdirkse at gams dot com changed: What|Removed

[Bug middle-end/31076] New: ICE with double and unsigned long long with -march=prescott

2007-03-07 Thread schnetter at aei dot mpg dot de
I use $ ~/gcc/bin/gcc --version gcc (GCC) 4.3.0 20070307 (experimental) to compile double rdtsc_cputick; double rdtsc () { unsigned long eax, edx; asm volatile ("rdtsc" : "=a" (eax), "=d" (edx)); return rdtsc_cputick * ((unsigned long long) edx << 3

[Bug c/30475] assert(int+100 > int) optimized away

2007-03-07 Thread js at linuxtv dot org
--- Comment #53 from js at linuxtv dot org 2007-03-08 01:03 --- I read all this and the mailing list thread with great interest, however I think there is a fundamental flaw in the reasoning: C90 6.2.1.2 / C99 6.3.1.3 defines signed integer overflow as "implementation-defined behaviour",

[Bug c/30475] assert(int+100 > int) optimized away

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #54 from pinskia at gcc dot gnu dot org 2007-03-08 01:14 --- (In reply to comment #53) > I read all this and the mailing list thread with great interest, > however I think there is a fundamental flaw in the reasoning: > > C90 6.2.1.2 / C99 6.3.1.3 defines signed integer ove

[Bug rtl-optimization/28173] [4.0/4.1 regression] misses constant folding

2007-03-07 Thread roger at eyesopen dot com
--- Comment #6 from roger at eyesopen dot com 2007-03-08 01:55 --- I suspect this problem is now fully resolved. The patch for PR24427 has been backported to the gcc-4_1-branch, and additionally on mainline, simplify-rtx.c has been enhanced to also perform the missed-optimization at the

[Bug c++/31074] [4.1/4.2/4.3 Regression] Reference casting involving multiple inheritance produces bad pointer

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-08 02:06 --- Confirmed, related to PR 22132. The difference between this and that PR is this one has references while that one was only pointers. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/31074] [4.1/4.2/4.3 Regression] Reference casting involving multiple inheritance produces bad pointer

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-08 02:09 --- Oh and PR 22132 was already fixed :). And the reason why the patch for PR 22132 did not fix this bug is because comp_ptr_ttypes_const does not take into account REFERENCE_TYPEs. -- pinskia at gcc dot gnu dot org

[Bug c/31072] [4.2/4.3 Rgression] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-03-08 03:41 --- I have a very simple fix to the C front-end that I am testing. The C front-end causes the DECL_RTL to be created early on. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-07 Thread fxcoudert at gcc dot gnu dot org
--- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-03-08 05:50 --- (In reply to comment #6) > This makes minloc have rank 0, and allows for > inlining. No, it's wrong. See F95 13.14.71: "Result Characteristics. The result is of type default integer. If DIM is absent, the result

[Bug libfortran/31052] Bad IOSTAT values when readings NAMELISTs past EOF

2007-03-07 Thread jvdelisle at gcc dot gnu dot org
--- Comment #14 from jvdelisle at gcc dot gnu dot org 2007-03-08 05:51 --- Here is a patch. Herald, do you want to see if this fixes it for you. I tested here, but it does not hurt to test some more. Index: file_pos.c ==

[Bug fortran/31011] Incorrect error: parameter array sections

2007-03-07 Thread patchapp at dberlin dot org
--- Comment #2 from patchapp at dberlin dot org 2007-03-08 06:25 --- Subject: Bug number PR31011 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-03/msg00459.html -- http://gcc.gnu.org/bugzilla/sh

[Bug c++/30917] [4.1/4.2/4.3 Regression] ICE with friend in local class (to a function)

2007-03-07 Thread patchapp at dberlin dot org
--- Comment #4 from patchapp at dberlin dot org 2007-03-08 06:55 --- Subject: Bug number PR c++/30917 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-03/msg00463.html -- http://gcc.gnu.org/bugzil

[Bug c++/30534] [4.3 regression] ICE with invalid template argument

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2007-03-08 07:26 --- Subject: Bug 30534 Author: reichelt Date: Thu Mar 8 07:26:43 2007 New Revision: 122685 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122685 Log: PR c++/30534 * pt.c (any_template_argument

[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2007-03-08 07:31 --- Subject: Bug 30852 Author: reichelt Date: Thu Mar 8 07:31:47 2007 New Revision: 122686 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122686 Log: PR c++/30852 * c-common.c (fold_offsetof_1

[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2007-03-08 07:36 --- Subject: Bug 30852 Author: reichelt Date: Thu Mar 8 07:36:17 2007 New Revision: 122687 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122687 Log: PR c++/30852 * c-common.c (fold_offsetof_1

[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #3 from reichelt at gcc dot gnu dot org 2007-03-08 07:39 --- Subject: Bug 30852 Author: reichelt Date: Thu Mar 8 07:39:04 2007 New Revision: 122688 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122688 Log: PR c++/30852 * c-common.c (fold_offsetof_1

[Bug c++/30534] [4.3 regression] ICE with invalid template argument

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #5 from reichelt at gcc dot gnu dot org 2007-03-08 07:48 --- Fixed on mainline. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added S

[Bug c++/30852] [4.1/4.2/4.3 regression] Trouble with __builtin_offsetof and volatile

2007-03-07 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2007-03-08 07:49 --- Fixed on mainline, 4.2 branch, and 4.1 branch. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added ---

  1   2   >