[Bug tree-optimization/27109] Simplify a - 10 150 into a 160 when range of a is known (in VRP or somewhere else)

2006-12-28 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-12-28 12:03 --- Confirmed. compare_values needs to be teached to look at value ranges for operands and decide on overflow there - but only for substitute and fold as earlier we can have invalid intermediate value ranges. --

[Bug tree-optimization/25145] missed VRP opportunity

2006-12-28 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2006-12-28 12:14 --- The testcase in comment #1 is fixed by comparison canonicalization of i = j - 1 to i j. Of course it fails again if we use a temporary for j - 1 like in the testcases in other comments. --

[Bug tree-optimization/30317] New: VRP cannot extract a range from (unsigned int) i + 0x0ffffffff 4

2006-12-28 Thread rguenth at gcc dot gnu dot org
fold and VRP interact badly if we have a range test like if (i 0 i =5) ... as we fold that to if ((unsigned int) i + 0x0 4) ... for which VRP fails to extract a range for i. If we write the range test so that fold doesn't see it, VRP is happy: if (i 0) if (i = 5) ...

[Bug tree-optimization/30318] New: VRP does not create ANIT_RANGEs on overflow

2006-12-28 Thread rguenth at gcc dot gnu dot org
VRP should, if overfow is defined, create anti-ranges if plus or minus cause wrapping. void test2 (unsigned int i) { if (i = 0x0fffa) { return; } if (i == 0x0) { return; } { unsigned int v = i + 2; { if (v != 0) { if (v

[Bug bootstrap/28472] -B$(build_tooldir)/bin/

2006-12-28 Thread gin at mo dot msk dot ru
--- Comment #5 from gin at mo dot msk dot ru 2006-12-28 13:32 --- Subject: Re: -B$(build_tooldir)/bin/ It actually broke build of gcc (version 3.0.3) at least on one class of systems, i386-pc-sco3.2v5, as follows. Had on that system gnu binutils installed with PREFIX. Had gcc

[Bug middle-end/26374] Compile failure on long double

2006-12-28 Thread dwmw2 at infradead dot org
--- Comment #10 from dwmw2 at infradead dot org 2006-12-28 14:32 --- Any progress on this? -- dwmw2 at infradead dot org changed: What|Removed |Added CC|

[Bug middle-end/26374] Compile failure on long double

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2006-12-28 14:48 --- (In reply to comment #10) Any progress on this? There are two way of fixing this as far as I can see: teach real.c about how to fold IBM 128bit long double format use MPFR instead I would use the latter if I got

[Bug bootstrap/28472] -B$(build_tooldir)/bin/

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-12-28 14:55 --- No, I still say you are incorrect. Can you give the output of the original confgure which should show you which ld/as GCC is going to use? By default the toplevel configure looks into PREFIX/${TARGET} for ld/as.

[Bug java/26390] Problem dispatching method call when method does not exist in superclass

2006-12-28 Thread rob1weld at aol dot com
--- Comment #12 from rob1weld at aol dot com 2006-12-28 15:45 --- (In reply to comment #11) Fix checked in. I'm not an expert with Java but am trying to compile gcc 4_2 branch (CVS) and I have the same problem as is described in this bug report. The fixes mentioned in this report

[Bug tree-optimization/30317] VRP cannot extract a range from (unsigned int) i + 0x0ffffffff 4

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-28 16:03 --- I think the range folding should late in compiling after VRP2 happens. This will also help out code that is written like: if (i 0) if (i = 5) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30317

[Bug tree-optimization/30316] internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:434

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-28 17:43 --- Can you rerun the command line that ICEs and add -save-temps and then attach the .i file? The .cpp file you provided does not ICE for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30316

[Bug fortran/30034] pure subroutine requires intent for procedure argument

2006-12-28 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2006-12-28 18:41 --- Subject: Bug 30034 Author: pault Date: Thu Dec 28 18:41:25 2006 New Revision: 120244 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120244 Log: 2006-12-28 Paul Thomas [EMAIL PROTECTED] PR

[Bug fortran/30237] Alternate return arguments in intrinsic subroutine calls are ignored

2006-12-28 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2006-12-28 18:41 --- Subject: Bug 30237 Author: pault Date: Thu Dec 28 18:41:25 2006 New Revision: 120244 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120244 Log: 2006-12-28 Paul Thomas [EMAIL PROTECTED] PR

[Bug preprocessor/30001] out-of-bounds access when processing empty file

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #4 from tromey at gcc dot gnu dot org 2006-12-28 18:45 --- Subject: Bug 30001 Author: tromey Date: Thu Dec 28 18:45:48 2006 New Revision: 120245 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120245 Log: PR preprocessor/30001: * charset.c

[Bug preprocessor/30001] out-of-bounds access when processing empty file

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #5 from tromey at gcc dot gnu dot org 2006-12-28 18:47 --- I checked in the fix. -- tromey at gcc dot gnu dot org changed: What|Removed |Added

[Bug preprocessor/29245] want way to #include but still able to finish compiling

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #13 from tromey at gcc dot gnu dot org 2006-12-28 19:11 --- This isn't really a gcc bug per se, so I am closing it. If someone wants to implement one or all of these on a branch, that is still fine. -- tromey at gcc dot gnu dot org changed: What|Removed

[Bug preprocessor/14460] --enable-c-mbchar will not work

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #5 from tromey at gcc dot gnu dot org 2006-12-28 19:12 --- This option no longer exists and 3.3 is no longer maintained. So, I am closing this. -- tromey at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter

2006-12-28 Thread vivekrao4 at yahoo dot com
U:\vrao\fortrantype gfort_bug_returns.f90 module amod character (len=1), parameter :: aa = z, bb(1) = (/aa/) end module amod U:\vrao\fortrangfortran -v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable-languages=c,fortran

[Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-28 19:19 --- Confirmed, even as of today. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow

2006-12-28 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-12-28 19:35 --- Created an attachment (id=12845) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12845action=view) preliminary patch needs proper testing / splitting. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30318

[Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter

2006-12-28 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2006-12-28 19:37 --- The following appears to work, so Vivek if you have a critical need to get an application compiled. You can split the line. module amod ! The following is a work around. character (len=1), parameter :: aa = z

[Bug fortran/30320] New: program crash for SUM applied to zero-size array

2006-12-28 Thread vivekrao4 at yahoo dot com
U:\vrao\fortrangfortran -v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable-languages=c,fortran --with-gmp=/home/coudert/local --disable-nls --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror --enable-bootstrap

[Bug tree-optimization/30318] VRP does not create ANTI_RANGEs on overflow

2006-12-28 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-12-28 20:32 --- Doesn't seem to work. gcc.c-torture/execute/vrp-5.c fails because [5, +INF] + [5, +INF] is combined to [10, +INF-1] (and 5 + +INF-5 is zero anyways). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30318

[Bug fortran/30321] New: program crash for SUM applied to zero-size array

2006-12-28 Thread vivekrao4 at yahoo dot com
U:\vrao\fortrangfortran -v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable-languages=c,fortran --with-gmp=/home/coudert/local --disable-nls --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror --enable-bootstrap

[Bug fortran/30321] program crash for SUM applied to zero-size array

2006-12-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2006-12-28 21:20 --- Confirmed, the crash is within the library: $ gfortran -g xzero_size_array.f90 $ gdb ./a.out GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General

[Bug libfortran/30162] I/O with named pipes does not work

2006-12-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2006-12-28 21:22 --- This is deep regression country; in the time I have to devote to this, I couldn't work it out. Unassigning myself (for now). -- tkoenig at gcc dot gnu dot org changed: What|Removed

[Bug libfortran/30162] I/O with named pipes does not work

2006-12-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2006-12-28 21:39 --- Additional data points: Reading/writing unformatted sequential doesn't work with g77 (fails with an error message on open), and it fails with ifort 8 for records longer than 2**18 bytes (ifort's default buffer

[Bug tree-optimization/30316] internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:434

2006-12-28 Thread deji_aking at yahoo dot ca
--- Comment #3 from deji_aking at yahoo dot ca 2006-12-28 22:07 --- I'm sorry, it seems I'd posted the .cpp of a different code other than the one that ICEd(signal.cc). However, the .cpp of signal.cc doesn't ICE for me too. In any case I've done as you requested and put signal.ii on

[Bug tree-optimization/30316] internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:434

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-28 22:16 --- I can reproduce it this time and now I am reducing the testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30316

[Bug libfortran/30162] I/O with named pipes does not work

2006-12-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-12-28 23:11 --- I will work at it. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/30322] New: fold folds -i-1+i+1 to ~i+i+1

2006-12-28 Thread rguenth at gcc dot gnu dot org
int bar(int i) { return -i-1+i+1; } optimizes to ;; Function bar (bar) Analyzing Edge Insertions. bar (i) { bb 2: return i + 1 + ~i; } (instead of return 0; which we catch at rtl level later) Either i+1 needs to be folded to -~i, we need to re-associate earlier or something needs to do

[Bug middle-end/30322] ((-i-1) + i) +1) is turned into ~i + (i+1) and never into 0 on the tree level

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-28 23:42 --- [I think most of these interesting foldings should be deferred] This is not an interesting fold anyways, unlike say the range generator. Also this is really a reassociate issue. if we wrote the function like: int

[Bug tree-optimization/30316] internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:434

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-12-28 23:50 --- *** This bug has been marked as a duplicate of 29585 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/29585] [4.2 Regression] tree check: expected ssa_name, have var_decl in is_old_name, at tree-into-ssa.c:558

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-12-28 23:50 --- *** Bug 30316 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30323] New: shared clauses for const variables are illigal

2006-12-28 Thread kuba at et dot pl
Compiling the following code with gcc -fopenmp -O -Wall I get a hosed error message: void foo() { int A[20]; const int x = 3; #pragma omp parallel for shared(x) for(i = 0; i 20; i++) A[i] = x;} } foo.c: In function

[Bug c/30324] New: shared clauses for const variables are illigal

2006-12-28 Thread kuba at et dot pl
Compiling the following code with gcc -fopenmp -O -Wall I get a hosed error message: void foo() { int A[20]; const int x = 3; #pragma omp parallel for shared(x) for(i = 0; i 20; i++) A[i] = x;} } foo.c: In function

[Bug c/30325] New: shared clauses for const variables are illigal

2006-12-28 Thread kuba at et dot pl
Compiling the following code with gcc -fopenmp -O -Wall I get a hosed error message: void foo() { int A[20]; const int x = 3; #pragma omp parallel for shared(x) for(i = 0; i 20; i++) A[i] = x;} } foo.c: In function

[Bug c/30324] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** This bug has been marked as a duplicate of 30323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** Bug 30324 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug c/30325] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** This bug has been marked as a duplicate of 30323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-29 01:46 --- *** Bug 30325 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-12-29 01:49 --- Real testcase: void foo() { int A[20]; const int x = 3; int i; #pragma omp parallel for shared(x) for(i = 0; i 20; i++) A[i] = x; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug c/30326] New: shared clauses for const variables are illigal

2006-12-28 Thread kuba at et dot pl
Compiling the following code with gcc -fopenmp -O -Wall I get a hosed error message: void foo() { int A[20]; const int x = 3; #pragma omp parallel for shared(x) for(i = 0; i 20; i++) A[i] = x;} } foo.c: In function

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-29 01:56 --- 2.8.1.1 Sharing Attribute Rules for Variables Referenced in a Construct line 7 on page 64: Variables with const-qualified type having nomutable member are shared. Variables with predetermined sharing attributes

[Bug c/30326] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 01:57 --- *** This bug has been marked as a duplicate of 30323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30323] shared clauses for const variables are illigal

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-12-29 01:57 --- *** Bug 30326 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30323

[Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #13 from tromey at gcc dot gnu dot org 2006-12-29 02:54 --- I am testing a patch for this. It pedwarns on '#foo' in an expression, and also when #assert or #unassert is used. It also warns about these when -Wdeprecated is given. -- tromey at gcc dot gnu dot org

[Bug preprocessor/28165] _Pragma GCC system_header broken

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #1 from tromey at gcc dot gnu dot org 2006-12-29 03:28 --- This happens because destringize_and_run calls cpp_push_buffer. The new buffer has a non-null 'prev'; do_pragma_system_header checks for prev==NULL to determine whether the directive is in the primary source file.

[Bug preprocessor/28165] _Pragma GCC system_header broken

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2006-12-29 04:29 --- I think this will also occur for _Pragma(once) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28165

[Bug pch/9471] #pragma system_header vs. precompiled headers

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #4 from tromey at gcc dot gnu dot org 2006-12-29 04:30 --- I think this same problem will occur with #include_next and #pragma once. cpp doesn't currently seem to differentiate between the PCH case and other kinds of preprocessing. -- tromey at gcc dot gnu dot org

[Bug middle-end/30311] [4.3 regression] revision 120211 failed to compile perlbench

2006-12-28 Thread ghazi at gcc dot gnu dot org
--- Comment #4 from ghazi at gcc dot gnu dot org 2006-12-29 04:36 --- A similar error that may be related was posted here: http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01713.html The testcase in my post was from a gcc bootstrap. -- ghazi at gcc dot gnu dot org changed:

[Bug libgomp/29986] testsuite failures

2006-12-28 Thread ghazi at gcc dot gnu dot org
--- Comment #3 from ghazi at gcc dot gnu dot org 2006-12-29 04:45 --- I think the first step is to report it to sun so they track it and hopefully one day fix their toolchain. Does anyone have a support contract who can file a report? --

[Bug libgomp/29987] libgomp.c++/ctor-9.C failure

2006-12-28 Thread ghazi at gcc dot gnu dot org
--- Comment #3 from ghazi at gcc dot gnu dot org 2006-12-29 04:45 --- I think the first step is to report it to sun so they track it and hopefully one day fix their toolchain. Does anyone have a support contract who can file a report? --

[Bug target/30040] -mtune=native is wrong for Core 2 Duo and Core Duo

2006-12-28 Thread hjl at gcc dot gnu dot org
--- Comment #9 from hjl at gcc dot gnu dot org 2006-12-29 06:09 --- Subject: Bug 30040 Author: hjl Date: Fri Dec 29 06:09:06 2006 New Revision: 120256 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120256 Log: 2006-12-28 H.J. Lu [EMAIL PROTECTED] Backport from

[Bug boehm-gc/30327] New: The make script periodically thinks my 7450 is an 8540

2006-12-28 Thread trog24 at comcast dot net
The system is a Dual 800 MHz PowerPC G4 (7450) (QuickSilver) running under Darwin 8.8.0. The command sequence is as follows: cd gcc mkdir build cd build ../configure make make.log Periodically, the following appears: ../../gcc/config/rs6000/altivec.md:xxx: warning operand 3 missing

[Bug boehm-gc/30327] The make script periodically thinks my 7450 is an 8540

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 06:23 --- Since you don't have a G5, you should do --disable-multilib. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/30328] New: bit-field: unassemblable assembly code

2006-12-28 Thread s__nakayama at infoseek dot jp
gcc produces unassemblable assembly code. //testcase: struct S { signed int a:17; } x; typedef typeof (x.a) foo; template class T T* inc(T* p) { return p+1; } int main () { foo x[2] = { 1,2 }; int y[2] = { 1,2 }; *inc(x); *inc(y); return 0; } result $ g++ -S bug.cpp $ g++ -c

[Bug c/30329] New: Gcc Linker problem

2006-12-28 Thread shantibhushan dot sale at gmail dot com
If i have a shared lib with some name like FTPobex with funtion name Func1() { printf(First function); } And i have my local function void main() { Func1();/i call this function here using shared lib } //local function

[Bug preprocessor/21521] -finput-charset -save-temps converts characters twice

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2006-12-29 07:43 --- I looked at this a bit tonight. It is straightforward to remove -finput-charset from the second invocation of cc1 (needed several places -- gcc.c but also the c++ and objc lang-specs). I think this approach fails

[Bug c/30329] Gcc Linker problem

2006-12-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 07:44 --- This problem if it is a real issue, is not a GCC issue at all, GCC does not do dynamic loading or even the static linking. The problem here is you don't understand elf semantics. since we know that Func1 is local

[Bug preprocessor/14438] Potential need for buffer overflow checks in _cpp_lex_direct

2006-12-28 Thread tromey at gcc dot gnu dot org
--- Comment #25 from tromey at gcc dot gnu dot org 2006-12-29 07:58 --- FWIW I've been looking at this area for PR 29966. I don't see how overflow checking could be added to _cpp_lex_direct. However I did end up adding an assertion to _cpp_lex_token, to try to expose a hidden