[Bug tree-optimization/31873] New: missed optimization: we don't move invariant casts out of loops

2007-05-09 Thread dorit at il dot ibm dot com
This PR was originally opened against PRE (PR25809), but turns out PRE can't solve this problem, so here's a new PR instead: In testcases that have reduction, like gcc.dg/vect/vect-reduc-2char.c and gcc.dg/vect-reduc-2short.c, the following casts appear: signed char sdiff;

[Bug tree-optimization/25809] missed PRE optimization - move invariant casts out of loops

2007-05-09 Thread dorit at il dot ibm dot com
--- Comment #8 from dorit at il dot ibm dot com 2007-05-09 07:14 --- So I guess this should be handled somewhere else. I'll open a new missed-optimization PR instead (not against PRE this time). thanks. This is now PR31873 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25809

[Bug rtl-optimization/30957] Misscompare with variable expansion optimization

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2007-05-09 07:27 --- This testcase (gcc.dg/pr30957-1.c) fails on spu-elf because spu-elf's float almost always treat -0.0 as 0.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30957

[Bug middle-end/31862] Loop IM and other optimizations harmful for -fopenmp

2007-05-09 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2007-05-09 07:30 --- You are entitled to your opinion. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31862

[Bug tree-optimization/30843] [4.3 Regression] ice for legal code with -ftree-vectorize -O2

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-05-09 07:30 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug tree-optimization/31874] New: gcc.dg/torture/pr28900.c fails on spu-elf with an ICE

2007-05-09 Thread pinskia at gcc dot gnu dot org
/home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/torture/pr28900.c: In function 'synths_':^M /home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/torture/pr28900.c:5: internal compiler error: in vect_transform_loop, at tree-vect-transform.c:5263^M Please submit a full bug report,^M with preprocessed

[Bug rtl-optimization/31848] [4.3 regression] Invalid loop optimization causes bootstrap failure in genautomata

2007-05-09 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2007-05-09 07:06 --- Investigating... -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31867] function result with character LEN computed at run time

2007-05-09 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-05-09 07:33 --- valgrind shows: ==7067== Syscall param write(buf) points to uninitialised byte(s) ==7067==at 0x5603550: write (in /lib64/libc-2.5.so) ==7067==by 0x4EC1130: do_write (unix.c:336) ==7067==by 0x4EC11D1:

[Bug tree-optimization/31874] [4.3 Regression] gcc.dg/torture/pr28900.c at -Os fails on spu-elf with an ICE

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-09 07:35 --- /home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/torture/pr28900.c:8: note: --vectorizing statement: L17: -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug java/31875] New: Error loading applet when playing runescape

2007-05-09 Thread donmerlcp at yahoo dot com
Use GCJ as web plugin for java. Go to http://www.runescape.com Click Play as an existing user (No need to create user name) Click High Definition Click Free membership There was an error before playing the game. The error is Error loading applet Currently using Fedora Core 6 on a 64-bit --

[Bug fortran/30802] out of bounds error in allocatable array not picked up with -fbounds-check

2007-05-09 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/31119] -fbounds-check: Check for presence of optional arguments before bound checking

2007-05-09 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 c/31876] New: SH: ICE in gen_lowpart_general, at rtlhooks.c:59

2007-05-09 Thread sugioka at itonet dot co dot jp
Attached code fails to compile with cross compiler for sh4-linux. $ sh-linux-gcc -m4 -c frame.i frame.c: In function efaacEncSetConfigurationf: frame.c:262: internal compiler error: in gen_lowpart_general, at rtlhooks.c:59 -- Summary: SH: ICE in gen_lowpart_general, at

[Bug target/31876] SH: ICE in gen_lowpart_general, at rtlhooks.c:59

2007-05-09 Thread sugioka at itonet dot co dot jp
--- Comment #1 from sugioka at itonet dot co dot jp 2007-05-09 10:10 --- Created an attachment (id=13533) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13533action=view) pre-processed code Source code which causes the problem. --

[Bug tree-optimization/31873] missed optimization: we don't move invariant casts out of loops

2007-05-09 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-05-09 10:47 --- Does it do it if you specify --param lim-expensive=1? Then it's just a cost issue. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/30987] [4.3 Regression] Problem while compiling gcc for score

2007-05-09 Thread liqin at gcc dot gnu dot org
--- Comment #5 from liqin at gcc dot gnu dot org 2007-05-09 10:55 --- I will remove the bitclr_c,bitset_c and bittgl_c pattern from misc.md, they have not to many use. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30987

[Bug c/31864] need -print-includes-dirs option

2007-05-09 Thread bkoz at gcc dot gnu dot org
--- Comment #2 from bkoz at gcc dot gnu dot org 2007-05-09 11:06 --- I'm not quite sure if the component=c is correct. This could also be c++, or driver. This seems fine for the time being. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31864

[Bug tree-optimization/31873] missed optimization: we don't move invariant casts out of loops

2007-05-09 Thread rakdver at gcc dot gnu dot org
--- Comment #2 from rakdver at gcc dot gnu dot org 2007-05-09 11:10 --- (In reply to comment #1) Does it do it if you specify --param lim-expensive=1? Then it's just a cost issue. no, lim won't do this transformation. Store motion could probably be persuaded to do it by a few

[Bug ada/31877] New: Imported variables marked volatile in Ada

2007-05-09 Thread baldrick at gcc dot gnu dot org
In this testcase, A is for some reason considered volatile, so the first write is not removed: procedure Vol is A : Integer; pragma Import (C, A); begin A := 1; A := 2; end; $ gcc -S -O2 vol.adb $ grep mov vol.s movl%esp, %ebp movl$1, a movl$2, a

[Bug ada/31877] Imported variables marked volatile in Ada

2007-05-09 Thread charlet at gcc dot gnu dot org
--- Comment #1 from charlet at gcc dot gnu dot org 2007-05-09 13:37 --- The code is as intended here, and GCC notion of aliasing is not sufficient to fullfill Ada needs in this case. Arno -- charlet at gcc dot gnu dot org changed: What|Removed

[Bug ada/31824] Code generation problem with gnat-4.1.2

2007-05-09 Thread charlet at gcc dot gnu dot org
--- Comment #2 from charlet at gcc dot gnu dot org 2007-05-09 13:50 --- Code generated as expected in more recent versions (e.g. trunk). note that you should avoid using pragma Inline_Always and use pragma Inline and -gnatn instead. Arno -- charlet at gcc dot gnu dot org changed:

[Bug libstdc++/31518] _GLIBCXX_DEBUG error message formatter line width not configurable

2007-05-09 Thread bkoz at gcc dot gnu dot org
--- Comment #1 from bkoz at gcc dot gnu dot org 2007-05-09 13:55 --- This is an interesting idea, especially if it could be tied in to a gcc-wide variable. -benjamin -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31518

[Bug ada/31877] Imported variables marked volatile in Ada

2007-05-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #2 from ebotcazou at gcc dot gnu dot org 2007-05-09 14:08 --- Just to clarify a little: it's a (questionable) implementation choice, the GCC 4 aliasing machinery would now make it possible to get rid of the hack. -- ebotcazou at gcc dot gnu dot org changed:

[Bug c/31878] New: Spurious warnings generated due to not optimizing first

2007-05-09 Thread lloyd at randombit dot net
$ cat return.c #include assert.h int f(int x) { if(x) return x; assert(x); } $ gcc -O2 -c -Wall -W return.c return.c: In function ‘int f(int)’: return.c:9: warning: control reaches end of non-void function The call to assert expands to (glibc 2.4): (static_castvoid ((x) ?

[Bug ada/31877] Imported variables marked volatile in Ada

2007-05-09 Thread baldrick at gcc dot gnu dot org
--- Comment #3 from baldrick at gcc dot gnu dot org 2007-05-09 14:42 --- The code is as intended here, and GCC notion of aliasing is not sufficient to fullfill Ada needs in this case. Are you sure? gcc got more sophisticated wrt aliasing in the gcc 4 series. What exactly does Ada

[Bug fortran/31867] function result with character LEN computed at run time

2007-05-09 Thread beliavsky at aol dot com
--- Comment #4 from beliavsky at aol dot com 2007-05-09 15:27 --- (In reply to comment #2) I get: words = 'two three' On x86-64-gnu/linux with latest 4.3 I wonder if this is one that we recently fixed. Can you try with a more recent build? Using Mingw 20070506, the problem

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-05-09 16:16 --- Uh, can you elaborate? We get the warning you want if we have int d (void) { register int a[2]; return a; } instead. In your case, i.e. return a,1, we return 1, but we still need evaluate the expression a. I assume

[Bug c++/986] g++ misses warning for on temporary

2007-05-09 Thread raf2 at msux dot cjb dot net
--- Comment #17 from raf2 at msux dot cjb dot net 2007-05-09 16:27 --- Compilers may warn about this, but they may not issue an error. Let's see what has to say the freely available Borland C++ 5.5.1 for Windows. Yes, it wisely stops people from compiling the attached main.cpp: Error

[Bug c++/31855] using boo::work does not resolve name resolution

2007-05-09 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2007-05-09 16:34 --- The code originally given is indeed ambiguous. It boils down to this: --- namespace boo { template typename T void work(T n); template typename T struct R { }; template typename T void

[Bug fortran/31879] New: ICE with function having array of character variables argument

2007-05-09 Thread vivekrao4 at yahoo dot com
module str_mod contains function copy_str(xx) result(yy) character (len=*), intent(in) :: xx(:) character (len=1) :: yy(size(xx)) yy = (/xx/) end function copy_str subroutine print_vec(labels) character (len=*), intent(in) :: labels(:) print*,labels end subroutine print_vec ! function

[Bug c++/986] g++ misses warning for on temporary

2007-05-09 Thread bangerth at dealii dot org
--- Comment #18 from bangerth at dealii dot org 2007-05-09 16:39 --- (In reply to comment #17) Are comitee decisions (right or wrong) more important than consequences for people? So Borland protects people from undefined behaviours when they can, and I wonder, isn't what most

[Bug fortran/31879] ICE with function having array of character variables argument

2007-05-09 Thread vivekrao4 at yahoo dot com
--- Comment #1 from vivekrao4 at yahoo dot com 2007-05-09 16:41 --- A simpler program exhibiting the same bug: module str_mod contains function ccopy(yy) result(xy) character (len=*), intent(in) :: yy(:) character (len=1) :: xy(size(yy)) xy = yy end function ccopy end module str_mod !

[Bug libfortran/31880] New: silent data corruption in gfortran read statement

2007-05-09 Thread roconnor at health dot usf dot edu
This program should print out 1. Instead, it prints out 1024: program r3 integer*4 a(1025),b(1025),c(1025),d(2048),e(1022) do i=1,2048 d(i)=i end do open (3,file='a',form='unformatted') write (3) a,b,c,d,e rewind 3 read (3) a,b,c,d

[Bug c++/986] g++ misses warning for on temporary

2007-05-09 Thread chris at bubblescope dot net
--- Comment #19 from chris at bubblescope dot net 2007-05-09 17:05 --- while I agree we shouldn't produce an error here, personally I'm highly unconvinced by your argument. If I had some code which if called would always lead to undefined behaviour, but never called it, I would still

[Bug c++/31881] New: inherited members invisible within nested class within templated class

2007-05-09 Thread ghood at psc dot edu
Here is the code (nest.cc) that exhibits the error: templateclass X class A { public: class B { public: int i; }; class C: public B { public: void f() { this-i; // OK i; // results in error: ‘i’ was not declared in this scope //

[Bug target/31850] gcc.c-torture/compile/limits-fnargs.c is slow at compiling for spu-elf

2007-05-09 Thread sje at cup dot hp dot com
--- Comment #4 from sje at cup dot hp dot com 2007-05-09 17:21 --- While testing my change (commenting out the checking code at the top of subst_reload), I found that limits-fnargs.c sped up but I still get timeouts for limits-fndefn.c. --

[Bug c++/31881] inherited members invisible within nested class within templated class

2007-05-09 Thread ghood at psc dot edu
--- Comment #1 from ghood at psc dot edu 2007-05-09 17:22 --- Created an attachment (id=13534) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13534action=view) nest.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31881

[Bug c++/31881] inherited members invisible within nested class within templated class

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-05-09 17:23 --- I don't think this is a bug. class B is dependent so the inherited elements are not seen. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31881

[Bug rtl-optimization/31848] [4.3 regression] Invalid loop optimization causes bootstrap failure in genautomata

2007-05-09 Thread steven at gcc dot gnu dot org
--- Comment #5 from steven at gcc dot gnu dot org 2007-05-09 18:45 --- The cause of this bug is obvious. We move insns out of the loop either by emitting the SET_SRC of an insn before the loop, or by reordering the insns such that the invariant SET is moved into the pre-header. The

[Bug c++/31881] inherited members invisible within nested class within templated class

2007-05-09 Thread ghood at psc dot edu
--- Comment #3 from ghood at psc dot edu 2007-05-09 19:04 --- OK, I now understand the issue here. The fact that B and C were not explicitly templatized, and the other compilers accepted it, led me to think that it was valid code. In case anyone else is interested, there's an

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-05-09 19:18 --- Confirmed on i686-linux, for all active branches. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/31850] gcc.c-torture/compile/limits-fnargs.c is slow at compiling for spu-elf

2007-05-09 Thread sje at cup dot hp dot com
--- Comment #5 from sje at cup dot hp dot com 2007-05-09 22:05 --- It looks like the slowdown in limits-fndefn.c is different than the slowdown for limits-fnargs.c. The compilation time in limits-fndefn.c is spent in push_to_sequence. The problem is that each (32 bit) argument is

[Bug c/31878] Spurious warnings generated due to not optimizing first

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-09 22:07 --- We should get the same warning while compiling with optimizations and while compiling without so I don't think this is a bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31878

[Bug c/31878] Spurious warnings generated due to not optimizing first

2007-05-09 Thread lloyd at randombit dot net
--- Comment #2 from lloyd at randombit dot net 2007-05-09 22:16 --- So are you saying that it is the case that the f() function below might return without a value? Since that is what the warning suggests. (My interpretation re the optimizer may be completely off, I don't know GCC

[Bug testsuite/31883] New: [testsuite, gfortran] typos in the dg directives of the gfortran testsuite

2007-05-09 Thread dominiq at lps dot ens dot fr
In http://gcc.gnu.org/ml/fortran/2007-03/msg00577.html I have reported a few typos in the dg directives of the gfortran testsuite and I have proposed a patch in http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00064.html Since then I have found some more: [karma] dominiq/test% grep -r do-run

[Bug testsuite/31883] [testsuite, gfortran] typos in the dg directives of the gfortran testsuite

2007-05-09 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2007-05-09 22:24 --- Created an attachment (id=13535) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13535action=view) diff for the fixes of the typos, dg-output, and leftovers in gcc/testsuite/gfortran.dg --

[Bug testsuite/31883] [testsuite, gfortran] typos in the dg directives of the gfortran testsuite

2007-05-09 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2007-05-09 22:31 --- Created an attachment (id=13536) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13536action=view) modernize gcc/testsuite/gfortran.fortran-torture/compile/ This diff allows to remove the leftovers due to

[Bug testsuite/31883] [testsuite, gfortran] typos in the dg directives of the gfortran testsuite

2007-05-09 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2007-05-09 22:33 --- Created an attachment (id=13537) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13537action=view) modernize gcc/testsuite/gfortran.fortran-torture/execute/ This diff allows to remove the leftovers due to

[Bug testsuite/31883] [testsuite, gfortran] typos in the dg directives of the gfortran testsuite

2007-05-09 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2007-05-09 22:37 --- After these patches I get: # of expected passes18091 # of unexpected failures30 # of expected failures 8 # of unsupported tests 58 the failures being large_real_kind_2.F90 and

[Bug testsuite/31884] New: priority_queue_dijkstra.cc operates on deallocated memory

2007-05-09 Thread amylaar at gcc dot gnu dot org
When libstdc++-v3/testsuite/ext/pb_ds/example/priority_queue_dijkstra.cc calls p.pop, the highest priority node is deallocated. All but the last node are still used after being deallocated. In particular, the node with id zero is deallocated after it has been processed. Then when processing the

[Bug fortran/31879] ICE with function having array of character variables argument

2007-05-09 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-05-09 22:53 --- gfc_conv_expr_descriptor, at fortran/trans-array.c:4474: if (expr-ts.type == BT_CHARACTER) { if (expr-ts.cl == NULL) { /* This had better be a substring reference!

[Bug c++/27123] friend class declaration doesn't search out of the namespace

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-05-09 23:10 --- http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00021.html http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14513 Look at: http://gcc.gnu.org/ml/gcc/2004-03/msg00668.html for a real description of why this is invalid

[Bug target/31684] [4.3 Regression] ICE in get_attr_first_insn, at config/ia64/itanium2.md:1839 at -O2

2007-05-09 Thread sje at cup dot hp dot com
--- Comment #3 from sje at cup dot hp dot com 2007-05-09 23:12 --- I tested the patch on IA64 HP-UX and Linux and verified that it fixed the bug and caused no regressions. Jim, do you want to check this patch in? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31684

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread neil at daikokuya dot co dot uk
--- Comment #2 from neil at daikokuya dot co dot uk 2007-05-09 23:39 --- Subject: Re: Failure to diagnose taking address of register variable bangerth at dealii dot org wrote:- Uh, can you elaborate? We get the warning you want if we have int d (void) { register int a[2]; return

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread bangerth at math dot tamu dot edu
--- Comment #3 from bangerth at math dot tamu dot edu 2007-05-09 23:46 --- Subject: Re: Failure to diagnose taking address of register variable for that case, C99's clause 6.3.2.1/3 says that that's possible for register storage class arrays but that the result is undefined.

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread bangerth at dealii dot org
-- bangerth at dealii dot org changed: What|Removed |Added Status|WAITING |NEW Ever Confirmed|0 |1 Last

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread neil at gcc dot gnu dot org
--- Comment #4 from neil at gcc dot gnu dot org 2007-05-10 00:00 --- Agreed it's minor; I think I flagged the PR that way. I'm not sure but I suspect it indicates that the pointer decay is not happening. If so and you were using GCC to do source code analysis, you would have an

[Bug target/26636] use of r1-r3 across __sdivsi3_4 call

2007-05-09 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2007-05-10 00:05 --- __sdivsi3_i4 can't be called via PLT in the first place. This is a design decision, I think. It is defined as a hidden symbol and isn't exported from the shared libgcc with the right configuration. All binaries

[Bug tree-optimization/31885] New: Not removing empty loop, scev not finding the correct result

2007-05-09 Thread pinskia at gcc dot gnu dot org
Hi, when working on the pointer plus branch I noticed that we fail to remove an empty finite loop, we would fold array p+ 4 into array[1] and then scev would get the incorrect result and not optimize it. Here is a testcase which is producable on the mainline: struct s { int *blah; }; static

[Bug preprocessor/31869] stringifying empty macros

2007-05-09 Thread truedfx at gentoo dot org
--- Comment #3 from truedfx at gentoo dot org 2007-05-10 00:33 --- I see the same behaviour with gcc 3.3.6. I'm not able to check even older versions for now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31869

[Bug target/31876] SH: ICE in gen_lowpart_general, at rtlhooks.c:59

2007-05-09 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2007-05-10 00:45 --- I've confirmed that the testcase fails with 4.1 and doesn't fail with 4.0, 4.2 and 4.3. It looks similar to fr30's PR target/21283. Does the patch below work for you? --- ORIG/gcc-4_1-branch/gcc/config/sh/sh.md

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2007-05-10 00:47 --- (In reply to comment #1) Confirmed on i686-linux, for all active branches. I'm not sure how you can confirm this. The program is invalid. a,b,c, and e are undefined in the write statement, so gfortran can do

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread roconnor2 at tampabay dot rr dot com
--- Comment #3 from roconnor2 at tampabay dot rr dot com 2007-05-10 01:02 --- (In reply to comment #2) (In reply to comment #1) Confirmed on i686-linux, for all active branches. I'm not sure how you can confirm this. The program is invalid. a,b,c, and e are undefined in the

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-05-10 01:07 --- I am regression testing the patch. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-05-10 02:01 --- Subject: Bug 31880 Author: jvdelisle Date: Thu May 10 01:01:27 2007 New Revision: 124588 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=124588 Log: 2007-05-09 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-05-10 02:10 --- Subject: Bug 31880 Author: jvdelisle Date: Thu May 10 01:09:57 2007 New Revision: 124590 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=124590 Log: 2007-05-09 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2007-05-10 02:14 --- Russel, thanks for finding this and reporting it. I assume you do not have copyright assignment. I committed the patch because it is very small and simple. Thanks much! --

[Bug target/26636] use of r1-r3 across __sdivsi3_4 call

2007-05-09 Thread rmansfield at qnx dot com
--- Comment #4 from rmansfield at qnx dot com 2007-05-10 03:01 --- Thanks for looking at the PR. Has sdivsi3_i4 has always been hidden? I still link against some shared libraries built with 2.95.3 where __sdivsi3_i4 is not hidden. r1-r3 are in the clobber list for 2.95.3 so I don't trip

[Bug target/26636] use of r1-r3 across __sdivsi3_4 call

2007-05-09 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2007-05-10 03:19 --- Yes. 2.95.3 are broken about this and 2.95.3 libraries are ABI incompatible with the newer binaries. That will never be fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26636

[Bug target/31876] SH: ICE in gen_lowpart_general, at rtlhooks.c:59

2007-05-09 Thread sugioka at itonet dot co dot jp
--- Comment #3 from sugioka at itonet dot co dot jp 2007-05-10 03:25 --- It worked fine. Thanks a lot. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31876

[Bug c/31870] Failure to diagnose taking address of register variable

2007-05-09 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2007-05-10 03:52 --- (In reply to comment #4) I'm not sure but I suspect it indicates that the pointer decay is not happening. Or that the warning is only emitted if something is actually done with the result. I don't know, someone else

[Bug c/31886] New: (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-05-09 Thread zhouyi04 at ios dot cn
When compiling following code with no optimize flags given, gcc will complain: 1 __attribute__((always_inline)) unsigned int 2 alloc_null_binding1(void) 3 { 4 return 1; 5 } 6 7 static inline __attribute__((always_inline)) int ip_nat_initialized1(void)

[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-05-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-10 04:19 --- I don't think this is a bug. The documentation for always inline says: For functions declared inline, this attribute inlines the function even if no optimization level was specified. That quote is from:

[Bug libfortran/31880] silent data corruption in gfortran read statement

2007-05-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2007-05-10 04:22 --- Subject: Bug 31880 Author: jvdelisle Date: Thu May 10 03:22:40 2007 New Revision: 124591 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=124591 Log: 2007-05-09 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-05-09 Thread zhouzhouyi at ercist dot iscas dot ac dot cn
--- Comment #2 from zhouzhouyi at ercist dot iscas dot ac dot cn 2007-05-10 04:41 --- Subject: Re: (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution Dear pinskia, If you lookup my solution current handling of conditions for

[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-05-09 Thread zhouzhouyi at ercist dot iscas dot ac dot cn
--- Comment #3 from zhouzhouyi at ercist dot iscas dot ac dot cn 2007-05-10 04:43 --- Subject: Re: (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution heh, pinkia, take a look at my solution1 On 10 May 2007 03:41:06 -

[Bug target/26636] use of r1-r3 across __sdivsi3_4 call

2007-05-09 Thread rmansfield at qnx dot com
--- Comment #6 from rmansfield at qnx dot com 2007-05-10 04:55 --- (In reply to comment #5) Yes. 2.95.3 are broken about this and 2.95.3 libraries are ABI incompatible with the newer binaries. That will never be fixed. Okay, that's fine. I also wasn't aware of the ABI change.

[Bug target/26636] use of r1-r3 across __sdivsi3_4 call

2007-05-09 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2007-05-10 05:24 --- From the patch http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01856.html which was for 3.2, I think. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26636

[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-05-09 Thread zhouyi04 at ios dot cn
--- Comment #4 from zhouyi04 at ios dot cn 2007-05-10 05:33 --- Dear Pinsky In addition, The problem will still exists even add a inline to line 1 of the program, unless you add a static to line 1. Sincerely yours Zhouyi Zhou -- zhouyi04 at ios dot cn changed: What

[Bug c/31887] New: bad warning converting qualified void* to qualified array pointer

2007-05-09 Thread raeburn at raeburn dot org
/* With revision 124583, using compiler command ./xgcc -B./ -O -S ~/qual.c in the prev-gcc directory once it's been updated with the current binaries, the compiler complains: qual.c:11: warning: passing argument 1 of 'foo' discards qualifiers from pointer target type */ typedef unsigned

[Bug rtl-optimization/31888] New: inefficient comparison sequence - cond jump to label after immediately-following cond jump

2007-05-09 Thread raeburn at raeburn dot org
In the source file i'm going to attach, with compiler rev 124583, the generated assembly code includes a sequence: jg .L2 jge .L6 .L2: ... This would be more efficient as a je .L6, and with the alternate (simpler) implementation of data_eq, that's how it compiles. -- Summary:

[Bug rtl-optimization/31888] inefficient comparison sequence - cond jump to label after immediately-following cond jump

2007-05-09 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-05-10 05:51 --- Created an attachment (id=13538) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13538action=view) source file, with comments on problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31888

[Bug rtl-optimization/31889] New: compiler misses opportunity to combine multiple identical function return paths

2007-05-09 Thread raeburn at raeburn dot org
The source file I'm submitting has two implementations of an inline function, and a second function which calls it and then prints one of two strings depending on the return value. With the simpler implementation of the inline function, one call to puts() is followed by a jump to the return

[Bug rtl-optimization/31889] compiler misses opportunity to combine multiple identical function return paths

2007-05-09 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-05-10 06:04 --- Created an attachment (id=13539) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13539action=view) sample source code, with assembly comments -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31889

[Bug java/31890] New: Java Namespace error - javaprims.h out of sync

2007-05-09 Thread rob1weld at aol dot com
Even though I specified i686-pc-linux-gnu as the platform this should be applicable to all platforms, if you compile Java. I'm not an expert on Java - but the file gcc-4_2-branch/libjava/HACKING says: ... If you add a class to java.lang, java.io, or java.util (including sub-packages, like

[Bug bootstrap/30341] Makefile using mv instead of ln not working on WinXP Cygwin Bash

2007-05-09 Thread rob1weld at aol dot com
--- Comment #3 from rob1weld at aol dot com 2007-05-10 06:43 --- I tried an un-modified Makefile on WinXP, running X11 under Cygwin, with Xterm running bash, compiling with cygwin (whew!) - the problem does NOT occur there. This problem only seems to occur under a Cygwin MSDOS shell

[Bug bootstrap/30342] Tough time building 4.2.0 (CVS) on WinXP with Cygwin

2007-05-09 Thread rob1weld at aol dot com
--- Comment #5 from rob1weld at aol dot com 2007-05-10 06:51 --- Having great success compiling GCC (with nearly every option enabled) using the above instructions. More recent compile test results are here: Results for 4.2.0 20070501 (prerelease) testsuite on i686-pc-cygwin