[Bug middle-end/11492] Unsigned char promoted to signed int in for loop test for gpp but not gcc

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-01-22 08:28 --- (In reply to comment #5) > (In reply to comment #1) > > "1000" is a signed integer constant, so b*1000 is a signed integer too. I > > guess the warning is ok, then. > > That is only true for unsigned multiplication and

[Bug fortran/30512] MAXVAL() incorrect for zero-size int arrays, and for -HUGE-1 maximum values.

2007-01-22 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-01-22 08:47 --- > For what it's worth, the Intel and Sun compilers have the behaviour you > expect, but the Portland compiler and g95 both have the same behaviour as > gfortran. NAG f95 and pathscale 2.4 have: -128. > If I underst

[Bug preprocessor/14331] please add option to suppress warning message "no newline at end of file"

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #9 from manu at gcc dot gnu dot org 2007-01-22 08:52 --- In my opinion the patch is too old, now we have other mechanism for handling options, and it lacks documentation updates and testcases. Also, it is a standards conformance warning, so perhaps it should be just moved to

[Bug other/19165] (Natural) language independent error / warning classification

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-01-22 08:58 --- Is this really a bug in GCC? Eclipse should run GCC with a locale it can understand. Then, if it wants to support other languages, it has to support them also in the parser. Or we go for the XML output? That would be k

[Bug fortran/30531] ICE in fold_convert

2007-01-22 Thread sfilippone at uniroma2 dot it
--- Comment #2 from sfilippone at uniroma2 dot it 2007-01-22 09:18 --- Created an attachment (id=12930) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12930&action=view) test case Sorry for the delay, there was something wrong with my browser yesterday evening. It's cleared now.

[Bug fortran/30398] memmove for string operations

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-01-22 10:02 --- (In reply to comment #1) > Or, even better, the memmove/memcpy could be ommitted completely, > by using the variable directly as the target. The string_repeat() function could be generated directly by the front-e

[Bug fortran/29876] ICE on bad operator in ONLY clause of USE statement

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug fortran/30531] allocatable component and intent(out) yield ICE in fold_convert

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-01-22 10:16 --- Slightly reduced testcase below. It's all about allocatable components and intent(out). Remove one or the other, and it's gone. Adding Erik Edeelman and Paul Thomas (although he does not have time now) to the CC l

[Bug tree-optimization/30038] Call to sin(x), cos(x) should be transformed to sincos(x)

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2007-01-22 11:11 --- Subject: Bug 30038 Author: rguenth Date: Mon Jan 22 11:11:00 2007 New Revision: 121052 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121052 Log: 2007-01-22 Richard Guenther <[EMAIL PROTECTED]>

[Bug libgomp/30540] New: Document default value of implementation-dependent OpenMP settings

2007-01-22 Thread burnus at gcc dot gnu dot org
http://gcc.gnu.org/onlinedocs/libgomp.pdf 2.1 omp_get_dynamic – Dynamic teams setting etc. Here, the default value is not documented; it can be found in "3 Environment Variables" ("If undefined, dynamic adjustment is disabled by default."), but this is not obvious. Especially, since the omp_get_*

[Bug tree-optimization/30038] Call to sin(x), cos(x) should be transformed to sincos(x)

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #19 from rguenth at gcc dot gnu dot org 2007-01-22 11:12 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|normal

[Bug tree-optimization/29686] [4.1 Regression] ICE when expanding recursive function containing switch

2007-01-22 Thread rearnsha at gcc dot gnu dot org
--- Comment #4 from rearnsha at gcc dot gnu dot org 2007-01-22 12:04 --- The reduced testcase also ices on a native i386 build. The problem seems to crop up somewhere in t81.ivopts pass where a switch statement variable is transformed from an integral calculation into a cast of a void*

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

2007-01-22 Thread felix-gcc at fefe dot de
--- Comment #43 from felix-gcc at fefe dot de 2007-01-22 13:02 --- No, it WAS about the security. Now that you made me check and I saw that the optimization also doesn't give any actual speed increase, I want it removed on that grounds, too. And I want it removed for reasons of sanity.

[Bug bootstrap/30541] New: Ada bootstrap fails, stage1 binding does not honor GNATMAKE

2007-01-22 Thread rguenth at gcc dot gnu dot org
CC="gcc-4.1" GNATMAKE="gnatmake-4.1" ../configure --enable-languages=ada ... checking whether gcc-4.1 accepts -g... yes checking for gnatbind... gnatbind-4.1 checking whether compiler driver understands Ada... yes ... (everything ok until) gcc-4.1 -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECK

[Bug bootstrap/30541] Ada bootstrap fails, stage1 binding does not honor GNATBIND

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-01-22 14:24 --- whoops CC="gcc-4.1" GNATBIND="gnatbind-4.1" ../configure --enable-languages=ada of course... -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/30542] New: gcc 4.1.1 missing uninitialized variable warnings

2007-01-22 Thread david dot cuthbert at gmail dot com
Not sure if this is a bug, or I'm just missing some option or other, but I appear to be missing "uninitialized variable" warnings (in some cases, but not others) when compiling C such as the following: #include int main(void) { int foo; int i; i = 1; while (i) { if (i ==

[Bug c/30542] gcc 4.1.1 missing uninitialized variable warnings

2007-01-22 Thread david dot cuthbert at gmail dot com
--- Comment #1 from david dot cuthbert at gmail dot com 2007-01-22 14:31 --- Created an attachment (id=12931) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12931&action=view) foo.i file Adding foo.i file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30542

[Bug bootstrap/30541] Ada bootstrap fails, stage1 binding does not honor GNATBIND

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-01-22 14:33 --- removing the offending line from ada/Make-lang.in leaves GNATBIND empty, so we are not passing it down from (where?). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30541

[Bug fortran/30531] allocatable component and intent(out) yield ICE in fold_convert

2007-01-22 Thread sfilippone at uniroma2 dot it
--- Comment #4 from sfilippone at uniroma2 dot it 2007-01-22 14:43 --- (In reply to comment #3) > Slightly reduced testcase below. It's all about allocatable components and > intent(out). Remove one or the other, and it's gone. Adding Erik Edeelman and > Paul Thomas (although he does not

[Bug bootstrap/30541] Ada bootstrap fails, stage1 binding does not honor GNATBIND

2007-01-22 Thread schwab at suse dot de
--- Comment #3 from schwab at suse dot de 2007-01-22 14:51 --- See *_FLAGS_TO_PASS in toplevel makefile. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30541

[Bug middle-end/30333] [4.3 Regression] Segmentation fault for -O2 on legal code

2007-01-22 Thread dcb314 at hotmail dot com
--- Comment #3 from dcb314 at hotmail dot com 2007-01-22 15:51 --- (In reply to comment #2) > I think this was already fixed a while back. > Can you try again? I tried again, and it seems fixed to me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30333

[Bug other/19165] (Natural) language independent error / warning classification

2007-01-22 Thread tromey at gcc dot gnu dot org
--- Comment #9 from tromey at gcc dot gnu dot org 2007-01-22 16:12 --- Some kind of machine-readable output is necessary for use by an IDE. Eclipse can't translate the messages after they have been emitted by GCC. So, it should run GCC in the user's locale. However, then it would like to

[Bug c++/30539] Accepts invalid explicit specialization declaration

2007-01-22 Thread sebor at roguewave dot com
--- Comment #1 from sebor at roguewave dot com 2007-01-22 16:25 --- Even better, this works too: template <> void X<1>::X<2>::X<3>::X<4>::f(); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30539

[Bug bootstrap/30541] Ada bootstrap fails, stage1 binding does not honor GNATBIND

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-01-22 16:37 --- Created an attachment (id=12932) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12932&action=view) patch During the build we still call (and require) a 'gnatmake' in $PATH like for (cd ada/bldtools/nmake_b;

[Bug bootstrap/30541] Top-level should pass GNATBIND, GNATLINK and GNATMAKE variables down

2007-01-22 Thread bonzini at gnu dot org
--- Comment #5 from bonzini at gnu dot org 2007-01-22 16:48 --- > During the build we still call (and require) a 'gnatmake' in $PATH like for > > (cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb ) > > but at least gnatbind is used as specified at configure

[Bug rtl-optimization/30545] New: Why does optimizer not move exp() out of loop

2007-01-22 Thread georg dot viehoever at web dot de
Hi, I wonder why gcc does not move the constant exp() call from the inner loop to the outer loop. Should I use different optimization settings? Georg Checked with g++ -O3 -S t.cpp; emacs t.S t.cpp: #include #include int main() { for (int i=0; i<10;++i) { for (int j=0; j<2;++j)

[Bug libgcj/30454] [4.3 Regression] classpath/gnu/javax/crypto/jce/GnuCrypto.java:431: error: cannot find file for class gnu.javax.crypto.jce.mac.HMacSHA512Spi

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-01-22 17:02 --- I was able to reproduce this under powerpc-darwin myself. Running the command which failed during the build manually, still failed. Adding -save-temps to that command made it pass. I have not looked at what is diffe

[Bug c/20764] value won't fit in type

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-01-22 17:05 --- PR 23572 has a better description of the problem and the current status. *** This bug has been marked as a duplicate of 23572 *** -- manu at gcc dot gnu dot org changed: What|Removed

[Bug other/23572] No warning for assigning a value to a 'float' variable that overflows with option -Wextra

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-01-22 17:05 --- *** Bug 20764 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added -

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

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #44 from pinskia at gcc dot gnu dot org 2007-01-22 17:14 --- Again this really has nothing to do with security except for the fact some developers wrote security checking code that depends on overflow being defined as wrapping which is not what the C standard says and what G

[Bug middle-end/30333] [4.3 Regression] Segmentation fault for -O2 on legal code

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-01-22 17:17 --- Fixed so closing as such. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/30545] Why does optimizer not move exp() out of loop

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-22 17:24 --- exp can set errno as defined by the C/C++ standard so it cannot be pulled out of the loop. you can work around this by using -fmath-errno which says the math builtins don't set errno. -- pinskia at gcc dot gnu do

[Bug middle-end/22456] [4.1/4.2/4.3 regression] missing "is used uninitialized" warning

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-01-22 17:27 --- *** Bug 30542 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/30542] gcc 4.1.1 missing uninitialized variable warnings

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-22 17:27 --- *** This bug has been marked as a duplicate of 22456 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug bootstrap/30541] Top-level should pass GNATBIND, GNATLINK and GNATMAKE variables down

2007-01-22 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2007-01-22 17:27 --- Note that doing this for GNATMAKE also will make us run into PR29127 (gnatbind seems to be unaffected by this bug). Ada people generally don't seem to care about the FSF way to build/install gcc, so I don't expect t

[Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-01-22 17:35 --- I have a simple fix. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Assign

[Bug libgomp/30546] New: [4.3 regression] build fail in libgomp because makeinfo is missing

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
While it was bootstrapping fine on 2006-10-21, mainline now fails to build on my mingw setup because libgomp wants to run makeinfo, which I don't have. It says make can be buggy, but it's not (it's GNU make 3.79.1). if /home/coudert/trunk/missing makeinfo --split-size=500 -I ../../../trunk/li

[Bug bootstrap/30541] Top-level should pass GNATBIND, GNATLINK and GNATMAKE variables down

2007-01-22 Thread bonzini at gnu dot org
--- Comment #7 from bonzini at gnu dot org 2007-01-22 17:37 --- However, fixing GNATBIND/GNATLINK/GNATMAKE would allow you to e.g. install 4.1 in /opt/gcc-4.1/ and then configure with GNATMAKE=/opt/gcc-4.1/bin/gnatmake. So there is still a point in fixing this bug. If you start from 4.

[Bug c/28875] "-Wextra -Wno-unused-parameter -Wall" doesn't work as expected

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-01-22 18:11 --- (In reply to comment #1) > So you have "-Wextra -Wno-unused-parameter -Wall" so the -Wno-unused-parameter > does not have an effect as it is not turned on by -Wextra but instead by > -Wall. > Humm, I disagree. -Wext

[Bug libgomp/30546] [4.3 regression] build fail in libgomp because makeinfo is missing

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-22 18:20 --- >From http://gcc.gnu.org/install/prerequisites.html Texinfo version 4.4 (or later) Necessary to build GCC documentation during development because the generated output files are not included in the SVN repository

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

2007-01-22 Thread steven at gcc dot gnu dot org
--- Comment #45 from steven at gcc dot gnu dot org 2007-01-22 18:26 --- Marking this as WONTFIX leaves the impression that here is a bug here at all. This should have been closed as INVALID. First commandment of using C: "Thou shall not rely on undefined behavior." -- http://gcc.g

[Bug c++/30277] bit-field: wrong overload resolution

2007-01-22 Thread s__nakayama at infoseek dot jp
--- Comment #3 from s__nakayama at infoseek dot jp 2007-01-22 18:28 --- (In reply to comment #1) > I only have the C99 standard, and there I read in 6.3.1.1 p2 that only > those variables are promoted to int that are of smaller size. > > Similarly, in 6.3.1.8, integer promotion rules ar

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

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #46 from pinskia at gcc dot gnu dot org 2007-01-22 18:33 --- > PS: Mr Simon, that link to a how-to that says "btw this doesn't work for this > special input", is that supposed to impress anyone? It certainly does not > impress me very much, really. yes and the special inpu

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

2007-01-22 Thread andreas at andreas dot org
--- Comment #47 from andreas at andreas dot org 2007-01-22 18:36 --- It was suggested to me that this issue should be discussed on the mailing list. If you have an opinion, come there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475

Gcj-4.3 builds fail

2007-01-22 Thread Maciej Piechotka
http://pastebin.ca/324404 http://pastebin.ca/324405 Regards -- I've probably left my head... somewhere. Please wait untill I find it. Homepage (pl_PL): http://uzytkownik.jogger.pl/ (GNU/)Linux User: #425935 (see http://counter.li.org/)

[Bug fortran/30532] ^Z as EOF?

2007-01-22 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2007-01-22 19:18 --- (In reply to comment #2) scriptors (10.2.1). > > The following patch allows the test case in #1 to compile: Looks good (and I agree with the reasoning). Will you submit the patch? Thomas -- tkoenig at

[Bug middle-end/30132] [4.1/4.2/4.3 Regression] ICE in find_lattice_value, at tree-complex.c:133

2007-01-22 Thread geir at cray dot com
--- Comment #10 from geir at cray dot com 2007-01-22 19:24 --- Here is a Fortran test case: $ cat bug2737.f90 PROGRAM get_tst_inc_complex implicit none external subrrg, checkrr complex :: vrr, trr vrr=cmplx(1.,2.); call subrr ( ) contains su

[Bug middle-end/30132] [4.1/4.2/4.3 Regression] ICE in find_lattice_value, at tree-complex.c:133

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2007-01-22 19:30 --- (In reply to comment #10) > Here is a Fortran test case: I think that Fortran issue is something unrelated to this bug. In fact that Fortran testcase was fixed for 4.1.2 by PR 27889. -- http://gcc.gnu.org/bugz

[Bug ada/30547] New: Never ending program initializing an array of array of Unbounded_String.

2007-01-22 Thread kafka dot fr at laposte dot net
The following program never ends, after the string has been displayed the program eats 75% of CPU forever: --8<-8<-8<-8<-8<--- with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Bug is type A_1 is array(1..1) of Unbounded_String;

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

2007-01-22 Thread felix-gcc at fefe dot de
--- Comment #48 from felix-gcc at fefe dot de 2007-01-22 19:50 --- Oh wow, another wise cracking newbie who comments without actually understanding the issue. I AM NOT RELYING ON UNDEFINED BEHAVIOR. On the contrary. gcc is fine to assign 23 instead of a negative number. But if it doe

[Bug fortran/30512] MAXVAL() incorrect for zero-size int arrays, and for -HUGE-1 maximum values.

2007-01-22 Thread sgk at troutmask dot apl dot washington dot edu
--- Comment #5 from sgk at troutmask dot apl dot washington dot edu 2007-01-22 20:16 --- Subject: Re: MAXVAL() incorrect for zero-size int arrays, and for -HUGE-1 maximum values. > >- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-01-22 07:56 --- > I don't think it's a bu

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

2007-01-22 Thread ian at airs dot com
--- Comment #49 from ian at airs dot com 2007-01-22 20:16 --- In the C language standard "undefined behaviour" meants that the compiler can do anything at all. It means that the program is specifically undefined. When you say that the compiler should not eliminate the test because the

[Bug fortran/30389] ACHAR() intrinsic gives erroneous errors in constant-folding.

2007-01-22 Thread patchapp at dberlin dot org
--- Comment #4 from patchapp at dberlin dot org 2007-01-22 20:35 --- Subject: Bug number PR 30389 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-01/msg01808.html -- http://gcc.gnu.org/bugzilla/s

[Bug c++/30548] New: parse error

2007-01-22 Thread igodard at pacbell dot net
Only the first message is relevant. The parser seems to think that it is in an expression and "<" is a relational operator rather than the bracket in front of a template parameter for the member template function "MMIOize". Note that if the expression is broken in two (the previous two lines) then

[Bug c++/30548] parse error

2007-01-22 Thread igodard at pacbell dot net
--- Comment #1 from igodard at pacbell dot net 2007-01-22 20:40 --- Created an attachment (id=12933) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12933&action=view) compiler output -v -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30548

[Bug c++/30548] parse error

2007-01-22 Thread igodard at pacbell dot net
--- Comment #2 from igodard at pacbell dot net 2007-01-22 20:41 --- Created an attachment (id=12934) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12934&action=view) source code (compressed) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30548

[Bug c++/30548] parse error

2007-01-22 Thread igodard at pacbell dot net
--- Comment #3 from igodard at pacbell dot net 2007-01-22 20:44 --- p.s. if the disambiguator "template" is inserted in front of the call (i.e. "... .template MMIOize< ..." the the compiler complains that a disambiguating template keyword can only be used in a template. -- http://gc

[Bug fortran/30514] zero-sized array wrongly rejected: integer :: i(1:-1)

2007-01-22 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-01-22 21:05 --- This fixes the PR but I have not yet determined if it is standard conforming behaviour: Index: gcc/fortran/array.c === *** gcc/fortran/array.c (revision

[Bug c++/30548] parse error

2007-01-22 Thread igodard at pacbell dot net
--- Comment #4 from igodard at pacbell dot net 2007-01-22 21:20 --- p.p.s. The error depends on the kind of primary in front of the selection and call. If the primary is a variable then no error, as shown in the previous line. However, you can also make the error go away by wrapping the

[Bug fortran/30514] zero-sized array wrongly rejected: integer :: i(1:-1)

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-01-22 21:28 --- (In reply to comment #2) > This fixes the PR but I have not yet determined if it is standard conforming > behaviour I'm almost sure it is. Usually, we need to take care of the case for negative stride, but here o

[Bug fortran/30146] Redefining do-variable in excecution cycle

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug libfortran/30533] minval, maxval missing for kind=1 and kind=2

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug fortran/29800] -fbounds-check: For derived types, write not also compound name

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug fortran/30073] Array out of bounds gives name of RHS array not LHS array

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug fortran/30522] Host-/use-associated VOLATILE variable: volatile scope, redundent attributes

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last recon

[Bug c++/30548] parse error

2007-01-22 Thread igodard at pacbell dot net
--- Comment #5 from igodard at pacbell dot net 2007-01-22 21:53 --- OK, found the source of the problem: there's a template function in the base class and a non-template function of the same name in the derived class, and the parse is resolving the call to the non-template even though th

[Bug fortran/25620] Missed optimization with power

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
--- Comment #17 from fxcoudert at gcc dot gnu dot org 2007-01-22 22:02 --- cbrt is now available in the front-end (among others), thanks again to Richard! Closing this PR, as the optimization appears to be working fully: $ cat a.f90 REAL*8 :: a(6),b(6) read(*,*) a(:) b(1)=a(1)**(1.D0/

[Bug fortran/30549] New: compiler warning in resolve.c: possibly uninitialized use of name

2007-01-22 Thread burnus at gcc dot gnu dot org
The compiler warns that in the function "resolve_function" of resolve.c:, the variable "name" might be used unintialized. I think gcc is right. Name is initialized with: if (!pure_function (expr, &name) && name) and later used without extra if(name) in: if (expr->value.function.esym && !expr

[Bug fortran/30549] compiler warning in resolve.c: possibly uninitialized use of name

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-22 22:14 --- Can you try after: http://gcc.gnu.org/ml/gcc-cvs/2007-01/msg00765.html ? >and later used without extra if(name) in: No, that means it is used possiable as null. You need to check inside pure_function to see if ther

[Bug fortran/30514] zero-sized array wrongly rejected: integer :: i(1:-1)

2007-01-22 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-01-22 22:17 --- > This fixes the PR but I have not yet determined if it is standard conforming > behaviour See 5.1.2.5.1 Explicit-shape array: "If the upper bound is less than the lower bound, the range is empty, the extent in that

[Bug fortran/30549] compiler warning in resolve.c: possibly uninitialized use of name

2007-01-22 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-01-22 22:25 --- > No, that means it is used possiable as null. > You need to check inside pure_function to see if there is a way that the > second argument does not get initialized. There is: if (e->symtree != NULL && e->

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

2007-01-22 Thread pinskia at gcc dot gnu dot org
--- Comment #50 from pinskia at gcc dot gnu dot org 2007-01-22 22:27 --- There is no nothing special about signed integer overflow in C, it is just undefined behavior at runtime. I had forgot to mention the SPEC results because I don't feel SPEC CPU or any benchmark is a good way to me

[Bug fortran/30432] gfortran.dg/c_by_val_1.f fails on ia64-*-*, problem with %VAL

2007-01-22 Thread sje at cup dot hp dot com
--- Comment #7 from sje at cup dot hp dot com 2007-01-22 22:45 --- So I can see things going wrong in expand_call but I still don't know why. With the FORTRAN example (comment #3) expand_call sets num_actuals to 2 and n_named_args to 1. If I write the calling code in C, num_actuals is

[Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10

2007-01-22 Thread andreast at gcc dot gnu dot org
--- Comment #6 from andreast at gcc dot gnu dot org 2007-01-22 22:54 --- I undef'ed the sun in gcj/array.h since this was the only header I found useful for the moment. Having done this led me to the mentioned problem with write/read_barrier which is not implemented for sparc. Adding th

[Bug java/29812] env->klass value is not updated during the native calls

2007-01-22 Thread tromey at gcc dot gnu dot org
--- Comment #4 from tromey at gcc dot gnu dot org 2007-01-22 23:04 --- Subject: Bug 29812 Author: tromey Date: Mon Jan 22 23:04:16 2007 New Revision: 121064 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121064 Log: PR java/29812: * testsuite/libjava.jni/pr29812.

[Bug other/29972] typos in the manual

2007-01-22 Thread Ralf dot Wildenhues at gmx dot de
--- Comment #4 from Ralf dot Wildenhues at gmx dot de 2007-01-22 23:06 --- Created an attachment (id=12935) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12935&action=view) updated updated updated patch -- Ralf dot Wildenhues at gmx dot de changed: What|Removed

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

2007-01-22 Thread andreas at andreas dot org
--- Comment #51 from andreas at andreas dot org 2007-01-22 23:10 --- Sure, new security checks can be written in a compliant manner. But what plan do you suggest to find instances of non-compliant overflow checking in the existing body? Think something like a whole Linux distribution.

[Bug libgcj/30550] New: Missing dependencies for ecjx target

2007-01-22 Thread hjl at lucon dot org
I downloaded ecj.jar with contrib/download_ecj. During bootstrap, I got /export/build/gnu/gcc/build-ia64-linux/./gcc/xgcc -shared-libgcc -B/export/build/gnu/gcc/build-ia64-linux/./gcc -nostdinc++ -L/export/build/gnu/gcc/build-ia64-linux/ia64-unknown-linux-gnu/libstdc++-v3/src -L/export/build/gnu/

[Bug java/29812] env->klass value is not updated during the native calls

2007-01-22 Thread tromey at gcc dot gnu dot org
--- Comment #5 from tromey at gcc dot gnu dot org 2007-01-22 23:20 --- Subject: Bug 29812 Author: tromey Date: Mon Jan 22 23:20:18 2007 New Revision: 121065 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121065 Log: PR java/29812: * testsuite/libjava.jni/pr29812.

[Bug java/29812] env->klass value is not updated during the native calls

2007-01-22 Thread tromey at gcc dot gnu dot org
--- Comment #6 from tromey at gcc dot gnu dot org 2007-01-22 23:33 --- Subject: Bug 29812 Author: tromey Date: Mon Jan 22 23:33:24 2007 New Revision: 121066 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121066 Log: PR java/29812: * java/lang/natRuntime.cc (_load

[Bug java/29812] env->klass value is not updated during the native calls

2007-01-22 Thread tromey at gcc dot gnu dot org
--- Comment #7 from tromey at gcc dot gnu dot org 2007-01-22 23:33 --- Fixed in 4.2, 4.3. -- tromey at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug c/26494] -pedantic-errors can be overridden by -W*

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-01-22 23:47 --- Does it happen with any other option apart from -Wimplicit-function-declaration? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26494

[Bug libgcj/30454] [4.3 Regression] classpath/gnu/javax/crypto/jce/GnuCrypto.java:431: error: cannot find file for class gnu.javax.crypto.jce.mac.HMacSHA512Spi

2007-01-22 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #10 from dave at hiauly1 dot hia dot nrc dot ca 2007-01-22 23:53 --- Subject: Re: [4.3 Regression] classpath/gnu/javax/crypto/jce/GnuCrypto.java:431: error: cannot find file for class gnu.javRO > Running the command which failed during the build manually, still failed. > A

[Bug c/30477] Integer Overflow detection code optimised away, -fwrapv broken

2007-01-22 Thread tg at mirbsd dot de
--- Comment #15 from tg at mirbsd dot de 2007-01-22 23:54 --- Subject: Re: Integer Overflow detection code optimised away, -fwrapv broken pinskia at gcc dot gnu dot org dixit: >fold-const.c changed a lot, etc. >Actually there are two different code, one I wrote which is does >foldin

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

2007-01-22 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-01-22 23:54 --- The code that triggers the ICE enters gfc_resolve with gfc_current_ns->cl_list->length that is: $12 = {expr_type = 0, ts = {type = BT_UNKNOWN, kind = 0, derived = 0x0, cl = 0x0}, rank = 0, shape = 0x0, symtr

[Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-01-23 00:01 --- The testcase given is not valid any more. Could you think in any other testcase? In stmt.c (expand_asm_operands) there is: warning (0, "use of memory input without lvalue in " "asm o

[Bug rtl-optimization/14737] Purge political statement from -ffast-math docs

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-01-23 00:03 --- If this is confirmed as a bug, why don't you submit the patch to gcc-patches? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14737

[Bug c/26494] -pedantic-errors can be overridden by -W*

2007-01-22 Thread truedfx at gentoo dot org
--- Comment #3 from truedfx at gentoo dot org 2007-01-23 00:05 --- -Wendif-labels and -Wimplicit-int don't turn errors into warnings, so probably, yes. I did notice something else of interest while testing, though: int main(char a) {} gcc bug.c -ansi -pedantic compiles this without any

[Bug c/26494] -pedantic-errors can be overridden by -W*

2007-01-22 Thread truedfx at gentoo dot org
--- Comment #4 from truedfx at gentoo dot org 2007-01-23 00:08 --- (In reply to comment #3) > -Wendif-labels and -Wimplicit-int don't turn errors into warnings, so > probably, > yes. So probably, no, it does not happen with any other option. Sorry, I read your question wrong. -- h

[Bug c/26494] -pedantic-errors can be overridden by -W*

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2007-01-23 00:10 --- Open a new bug report, please. I am going to submit a patch to fix this one and reviewers don't like patches that do many things and the same time. Add me to the CC list of the new report and I will look at it as soon

[Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread hpa at zytor dot com
--- Comment #5 from hpa at zytor dot com 2007-01-23 00:15 --- Subject: Re: -Wno-deprecated needed also for C manu at gcc dot gnu dot org wrote: > --- Comment #4 from manu at gcc dot gnu dot org 2007-01-23 00:01 --- > The testcase given is not valid any more. Could you think in

[Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-01-23 00:20 --- Hey, don't look at me. I am not sure what that means, I was just looking for something deprecated in C front-end to make a testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051

[Bug c/30551] New: -pedantic does not include -Wmain, but -pedantic-errors does make -Wmain cause error messages

2007-01-22 Thread truedfx at gentoo dot org
Noticed while doing a test for bug #26494: int main(char a) {} gcc bug.c -ansi -pedantic compiles this without any error or warning. gcc bug.c -ansi -pedantic -Wmain reports bug.c:1: warning: first argument of ‘main’ should be ‘int’ bug.c:1: warning: ‘main’ takes only zero or two arguments and c

[Bug c/26494] -pedantic-errors can be overridden by -W*

2007-01-22 Thread truedfx at gentoo dot org
--- Comment #6 from truedfx at gentoo dot org 2007-01-23 00:23 --- Thank you, and done. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26494

[Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread hpa at zytor dot com
--- Comment #7 from hpa at zytor dot com 2007-01-23 00:24 --- Subject: Re: -Wno-deprecated needed also for C manu at gcc dot gnu dot org wrote: > --- Comment #6 from manu at gcc dot gnu dot org 2007-01-23 00:20 --- > Hey, don't look at me. I am not sure what that means, I was

Re: [Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread Andrew Pinski
> manu at gcc dot gnu dot org wrote: > > --- Comment #4 from manu at gcc dot gnu dot org 2007-01-23 00:01 > > --- > > The testcase given is not valid any more. Could you think in any other > > testcase? > > > > In stmt.c (expand_asm_operands) there is: > > > > warning (0, "u

[Bug c/11051] -Wno-deprecated needed also for C

2007-01-22 Thread pinskia at physics dot uc dot edu
--- Comment #8 from pinskia at physics dot uc dot edu 2007-01-23 00:29 --- Subject: Re: -Wno-deprecated needed also for C > manu at gcc dot gnu dot org wrote: > > --- Comment #4 from manu at gcc dot gnu dot org 2007-01-23 00:01 > > --- > > The testcase given is not valid any

[Bug middle-end/30391] [4.3 regression] ICE at -O1 with conditional expressions and GIMPLE_MODIFY_STMT

2007-01-22 Thread aldyh at gcc dot gnu dot org
--- Comment #4 from aldyh at gcc dot gnu dot org 2007-01-23 00:43 --- I'll look at this. -- aldyh at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|u

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

2007-01-22 Thread kargl at gcc dot gnu dot org
--- Comment #52 from kargl at gcc dot gnu dot org 2007-01-23 00:45 --- (In reply to comment #51) > Sure, new security checks can be written in a compliant manner. > > But what plan do you suggest to find instances of non-compliant overflow > checking in the existing body? Think somethi

[Bug c/30552] New: gcc crashed when compiling an example

2007-01-22 Thread chenwj at gcrj dot com
gcc crashed when compile the following example , and report "internal compiler error: Segmentation fault". //comandline: gcc -c a.c /* a.c */ int main() { void fun(a) int a[({void h(){}2;})]; { } return 0; } -- Summary: gcc crashed when compiling an example Pro

  1   2   >