[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)

2007-02-25 Thread rwgk at yahoo dot com
ally hope this helps you pin-pointing the bug! For completeness: % g++ --version g++ (GCC) 4.2.0 20070225 (prerelease) This is SVN revision 122315. -- rwgk at yahoo dot com changed: What|Remove

[Bug target/30770] [4.3 regression] BOOT_CFLAGS="-O2 -g -mtune=nocona" miscompiled the stage 3 compiler

2007-02-25 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2007-02-26 07:05 --- Fixed in SVN. -- ubizjak at gmail dot com changed: What|Removed |Added Status|ASSIGNED

[Bug target/30778] [4.3 Regression] invalid code generation for memset() with -mtune=k8

2007-02-25 Thread ubizjak at gmail dot com
--- Comment #9 from ubizjak at gmail dot com 2007-02-26 07:04 --- Fixed in SVN. -- ubizjak at gmail dot com changed: What|Removed |Added Status|NEW

[Bug c++/30962] cause compile error for "const anonymous class object"

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-26 06:46 --- If you name the class you get: [EMAIL PROTECTED]:~$ gcc t.cc t.cc:8: error: uninitialized const `MyAnonymous' This has nothing to do with const anonymous class object but just an uninitialized class object in genera

[Bug tree-optimization/30958] [4.3 Regression] ice for legal code with -ftree-vectorize -Os (-m64)

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-02-26 06:38 --- I think this is my fault. Reduced testcase for powerpc64-linux-gnu: struct pwc_dec23_private { unsigned int table_dc00[256]; }; void fill_table_dc00_d800(struct pwc_dec23_private *pdec) { int i; unsigned int offs

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2007-02-26 06:28 --- Fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30509

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2007-02-26 06:28 --- Fixed I say. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|A

[Bug tree-optimization/30958] ice for legal code with -ftree-vectorize -Os -mno-sse

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-02-26 06:27 --- Reducing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30958

[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)

2007-02-25 Thread dberlin at gcc dot gnu dot org
--- Comment #15 from dberlin at gcc dot gnu dot org 2007-02-26 04:38 --- I'll happily confirm I can reproduce it on my i686-pc-linux-gnu machine -- dberlin at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)

2007-02-25 Thread rwgk at yahoo dot com
--- Comment #14 from rwgk at yahoo dot com 2007-02-26 03:37 --- > Yes. > http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00817.html > It also fixed vect-101 testcase, in addition to 464.h264ref from spec2006. > It initially caused a failure in 403.gcc, but this was later found to > be a lat

[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)

2007-02-25 Thread dberlin at dberlin dot org
--- Comment #13 from dberlin at gcc dot gnu dot org 2007-02-26 02:42 --- Subject: Re: -fPIC -O3 optimizer bug (32-bit target only) On 26 Feb 2007 02:26:12 -, rwgk at yahoo dot com <[EMAIL PROTECTED]> wrote: > > > --- Comment #12 from rwgk at yahoo dot com 2007-02-26 02:26 ---

[Bug c++/30567] -fPIC -O3 optimizer bug (32-bit target only)

2007-02-25 Thread rwgk at yahoo dot com
--- Comment #12 from rwgk at yahoo dot com 2007-02-26 02:26 --- Daniel Berlin wrote: > This change actually made us more conservative with points-to, it certainly > won't cause *more* things to be optimized away. Was the change supposed to fix a certain problem? If not I suggest the two

[Bug other/30756] Daily bump in branches/gcc-4_0-branch/libstdc++-v3/include/bits/c++config

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-02-26 00:25 --- Fixed by: http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01995.html -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/30964] optional arguments to random_seed

2007-02-25 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2007-02-26 00:14 --- I have a patch to permit gfc_check_random_seed to deal with arguments with the optional attribute set. I was waiting on pault's size0/size1 patch to hit the tree to see if it does the right thing. -- http://gcc.g

[Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize

2007-02-25 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2007-02-25 23:19 --- Fixed on SVN for real. -- ubizjak at gmail dot com changed: What|Removed |Added Status|UNCON

[Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize

2007-02-25 Thread uros at gcc dot gnu dot org
--- Comment #4 from uros at gcc dot gnu dot org 2007-02-25 23:18 --- Subject: Bug 30938 Author: uros Date: Sun Feb 25 23:18:45 2007 New Revision: 122323 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122323 Log: PR tree-optimization/30938 * tree-vect-transform.c

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2007-02-25 22:51 --- Created an attachment (id=13109) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13109&action=view) patch to fix testcase in comment 10 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2007-02-25 22:50 --- We start with D.59982_3 = variable_2(D) + 4B; __unary_op = __unary_op.65; goto (); :; D.61146_10 = __unary_op._M_arg1; D.61147_11 = __unary_op._M_arg2; D.61093_12 = D.61146_10 + D.61147_11; *variab

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2007-02-25 22:23 --- Not really as this is only exposed by TER. Though I remember forwprop catching similiar stuff before. I'll have a look. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #13 from pinskia at gcc dot gnu dot org 2007-02-25 22:01 --- > if (variable != variable + 8B) goto ; else goto ; That issue was fixed just yesterday by PR 30951. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431

[Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize

2007-02-25 Thread ubizjak at gmail dot com
--- Comment #3 from ubizjak at gmail dot com 2007-02-25 21:57 --- Sorry, I was too quick. Please ignore comment #2, bootstrap with BOOT_CFLAGS="-Os -g -ftree-vectorize" still fails with the same error. -- ubizjak at gmail dot com changed: What|Removed

[Bug fortran/30964] New: optional arguments to random_seed

2007-02-25 Thread tkoenig at gcc dot gnu dot org
This is similar to PR 30865. Any of the arguments to random_seed may be specified if they are optional arguments to the subroutine that is called. The following is legal: program trs implicit none integer :: size, ierr integer, allocatable, dimension(:) :: seed call test_random_seed(size)

[Bug fortran/30400] [4.2 and 4.1 only] ANY not accepted as mask in FORALL

2007-02-25 Thread sayle at gcc dot gnu dot org
--- Comment #5 from sayle at gcc dot gnu dot org 2007-02-25 21:15 --- Subject: Bug 30400 Author: sayle Date: Sun Feb 25 21:14:49 2007 New Revision: 122322 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122322 Log: 2007-02-25 Roger Sayle <[EMAIL PROTECTED]> Paul Tho

[Bug middle-end/30956] ice on final.c

2007-02-25 Thread sherpya at netfarm dot it
--- Comment #4 from sherpya at netfarm dot it 2007-02-25 20:13 --- I've compiled other things and this messages is a warning in 4.1, but doesn't crashes -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30956

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread pluto at agmk dot net
--- Comment #12 from pluto at agmk dot net 2007-02-25 20:09 --- (In reply to comment #11) > Bonus points if you can make that self-contained ;) -fdump-tree-optimized shows the same code for both variants and there is the if-with-dereferencing :) (...) if (variable != variable + 8B) g

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2007-02-25 19:52 --- Bonus points if you can make that self-contained ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431

[Bug tree-optimization/19431] missed optimization with ifs and deferencing

2007-02-25 Thread pluto at agmk dot net
--- Comment #10 from pluto at agmk dot net 2007-02-25 19:00 --- one more testcase: #include #include extern void assign( long* variable, long v ) { std::transform( variable, variable + 1, variable, std::tr1::bind( std::plus< long >(), 0L, v ) ); } extern void a

[Bug c++/30962] New: cause compile error for "const anonymous class object"

2007-02-25 Thread gzljg at hotmail dot com
First I cannot find the exact C++ definition of "const anonymous object" so I am not sure the below reporting is valid or not. The question to me is: why adding 'const' to the class declaration will invalidate the code while without 'const' is ok? The following code will compile and run without er

[Bug tree-optimization/30938] Bootstrap fails on x86_64 for -ftree-vectorize

2007-02-25 Thread ubizjak at gmail dot com
--- Comment #2 from ubizjak at gmail dot com 2007-02-25 18:29 --- Fixed by http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01979.html. -- ubizjak at gmail dot com changed: What|Removed |Added ---

[Bug middle-end/27567] [4.0/4.1 Regression] __builtin_memcpy generates redundant stores/moves.

2007-02-25 Thread pluto at agmk dot net
--- Comment #11 from pluto at agmk dot net 2007-02-25 18:27 --- (In reply to comment #10) > (In reply to comment #9) > > adjust summary ( 4.2 regression status reopened ). > That is a target specific issue really and should be filed seperately. filled as PR30961 -- http://gcc.gnu

[Bug target/30961] New: redundant reg/mem stores/moves

2007-02-25 Thread pluto at agmk dot net
float convert( unsigned in ) { float f; __builtin_memcpy( &f, &in, sizeof( in ) ); return f; } unsigned short load( void* p ) { unsigned short v; __builtin_memcpy( &v, p, sizeof( v ) ); return v; } gcc-4.2.0-20070221 $ g++ temp.cpp -O2 -S _Z7conve

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread hubicka at gcc dot gnu dot org
--- Comment #10 from hubicka at gcc dot gnu dot org 2007-02-25 18:11 --- Subject: Bug 30509 Author: hubicka Date: Sun Feb 25 18:11:20 2007 New Revision: 122314 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122314 Log: PR middle-end/30509 * tree-inline.c (copy_b

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-02-25 17:42 --- *** Bug 30768 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/30768] [4.3 regression]: ICE in ext/pb_ds/regression/list_update_data_map_rand.cc

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #31 from pinskia at gcc dot gnu dot org 2007-02-25 17:42 --- Yes this is a dup as the patch which honza added to that bug fixes this one also. Plus there is a small testcase. So closing as a dup. *** This bug has been marked as a duplicate of 30509 *** -- pinskia at g

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-02-25 17:39 --- *** Bug 30866 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/30866] [4.3 regression] Another ICE in calc_dfs_tree()

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-25 17:39 --- The patch which honza added in PR 30509 fixed this testcase so closing as a dup. *** This bug has been marked as a duplicate of 30509 *** -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/30509] [4.3 Regression] ice for legal code with -O3

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-02-25 17:39 --- There is a slight error in the patch here, CB_CGE_MOVE should really be CB_CGE_MOVE_CLONES. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30509

[Bug target/30778] [4.3 Regression] invalid code generation for memset() with -mtune=k8

2007-02-25 Thread hubicka at gcc dot gnu dot org
--- Comment #8 from hubicka at gcc dot gnu dot org 2007-02-25 17:37 --- Subject: Bug 30778 Author: hubicka Date: Sun Feb 25 17:37:37 2007 New Revision: 122313 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122313 Log: PR target/30778 * i386.c (counter_mode): New

[Bug c++/25950] [DR 391] Reference binding and explicit copy constructors

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #25 from pinskia at gcc dot gnu dot org 2007-02-25 16:49 --- *** Bug 30959 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/30959] copy consturctor influences compile errors of constructor from unrelated class

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-25 16:49 --- The C++ standard as written requires this error, though the intent of the C++ standards committee was not having this error message. There was a defect report against the C++ standards about this error and that is r

[Bug fortran/30960] Failed to build gcc from trunk: configure: error: GNU Fortran is not working

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-02-25 16:46 --- This works for me and others, you just have a miss installed/configured GMP/MPFR. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size`

2007-02-25 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-25 16:17 --- Fixed in 4.2. Closing as fixed as this is a request for a new feature. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/30955] intrinsic: FGET

2007-02-25 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2007-02-25 16:11 --- There's is/was a discussion at the ML whether GNU extensions should allow default integer only, fold anything into a default integer and recast afterwards or whether the library shall provide calls for any type. As

[Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size`

2007-02-25 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-02-25 16:03 --- (In reply to comment #3) > (In reply to comment #2) > > as i have said, i need a compilation error on such casts. > 4.2 has a nice -Werror=foo feature, but this PR is about 4.1. > if you don't plan to backport -Werror=

[Bug fortran/30955] intrinsic: FGET

2007-02-25 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2007-02-25 15:56 --- > $> gfortran-svn fget.f90 && ./a.out > x > x > > I.e. the string is cleared and the first character is set to the input. > This also "works" with substrings, e.g. s(3:6). > In my eyes I would consider the blank

[Bug fortran/30960] Failed to build gcc from trunk: configure: error: GNU Fortran is not working

2007-02-25 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2007-02-25 15:29 --- configure:4917: /usr/gcc/host-i686-pc-linux-gnu/gcc/gfortran -B/usr/gcc/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include

[Bug fortran/30960] Failed to build gcc from trunk: configure: error: GNU Fortran is not working

2007-02-25 Thread gcc at pellmont dot dyndns dot org
--- Comment #1 from gcc at pellmont dot dyndns dot org 2007-02-25 15:11 --- Created an attachment (id=13108) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13108&action=view) logfile as stated in the error message -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30960

[Bug fortran/30960] New: Failed to build gcc from trunk: configure: error: GNU Fortran is not working

2007-02-25 Thread gcc at pellmont dot dyndns dot org
i tried to compile gcc from trunk on my ubuntu system, but i only get the error: checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /usr/gcc/i686-pc-linux-gnu/libgfortran/config.log m

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

2007-02-25 Thread eres at il dot ibm dot com
--- Comment #3 from eres at il dot ibm dot com 2007-02-25 14:52 --- Created an attachment (id=13107) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13107&action=view) testcase for MVE Running the executable of the attached testcase (compiled with MVE) succeeded. This looks strange

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

2007-02-25 Thread eres at il dot ibm dot com
--- Comment #2 from eres at il dot ibm dot com 2007-02-25 14:50 --- The execution fails also when acc is float (and not double) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30957

[Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size`

2007-02-25 Thread pluto at agmk dot net
--- Comment #3 from pluto at agmk dot net 2007-02-25 14:22 --- (In reply to comment #2) > Could you elaborate a litte bit more for me? > > We have already -Wint-to-pointer-cast and -Wpointer-to-int-cast enabled by > defaul in C. Don't those work for you? as i have said, i need a compil

[Bug c++/30959] New: copy consturctor influences compile errors of constructor from unrelated class

2007-02-25 Thread sl at datamyway dot de
Depending on whether the copy constructor CA(const CA& a) (see following code) is private, public or not (explicitly) defined the constructor CA(const SA& a) from the unrelated class SA gets compile errors. It compiles for public and undefined, but not for private. If CA(const CA& a) is public, t

[Bug c/30958] ice for legal code with -ftree-vectorize -Os -mno-sse

2007-02-25 Thread dcb314 at hotmail dot com
--- Comment #1 from dcb314 at hotmail dot com 2007-02-25 12:35 --- Created an attachment (id=13106) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13106&action=view) C source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30958

[Bug c/30958] New: ice for legal code with -ftree-vectorize -Os -mno-sse

2007-02-25 Thread dcb314 at hotmail dot com
I just tried to compile Linux kernel 2.6.20.1 with the GNU C++ compiler version 4.3 snapshot 20070223. The compiler said drivers/media/video/pwc/pwc-dec23.c: In function 'pwc_dec23_init': drivers/media/video/pwc/pwc-dec23.c:305: error: invalid reference prefix {63368} drivers/media/video/pwc/pwc

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

2007-02-25 Thread eres at il dot ibm dot com
--- Comment #1 from eres at il dot ibm dot com 2007-02-25 11:33 --- Created an attachment (id=13105) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13105&action=view) RTL unroller's dump (compiled with -fvariable-expansion-in-unroller) reg:DF 137 is the new variable expansion creat

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

2007-02-25 Thread eres at il dot ibm dot com
Compiling mzero6.c with -fvariable-expansion-in-unroller flag causes unexpected abortion of the executable. testsuite/gcc.c-torture/execute/ieee/mzero6.c -w -O2 -fno-show-column -lm -funroll-loops --fast-math -O2 -fvariable-expansion-in-unroller -o out -- Summary: Misscompare

[Bug c++/30952] Unclear error message when callling via a function pointer

2007-02-25 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-25 10:29 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|norma