[Bug c++/35338] [4.3/4.4 regression] Broken diagnostics for fixed-point types

2009-02-18 Thread reichelt at gcc dot gnu dot org
--- Comment #8 from reichelt at gcc dot gnu dot org 2009-02-19 07:24 --- Fixed-point constants are rejected by the C++ frontend since the patch for PR39059. So lets turn the PR into the original state: a diagnostic issue which has been fixed since GCC 4.3.1. -- reichelt at gcc dot g

[Bug c++/38489] [c++0x] ICE in digest_init_r, at cp/typeck2.c:821 on "auto t = 0r;" (fixed fp)

2009-02-18 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2009-02-19 07:16 --- Fixed-point constants are rejected by the C++ frontend since the patch for PR39059. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/35448] [4.3 regression] ICE with fixed-point constants

2009-02-18 Thread reichelt at gcc dot gnu dot org
--- Comment #5 from reichelt at gcc dot gnu dot org 2009-02-19 07:14 --- The target was i686-pc-linux-gnu. Yup, this is fixed indeed by the patch for PR39059. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35448

[Bug fortran/39230] ASSOCIATED & undefined pointers

2009-02-18 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-02-19 07:08 --- > (ii) Once we have array descriptors that flag the status of the data, include > pointers in the club? I prefer to have simple pointers for scalars and use the descriptor only for arrays/strings/dimension(..) for pe

[Bug c++/35325] [4.3/4.4 regression] ICE with fixed-point types in template parameter

2009-02-18 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2009-02-19 07:07 --- Btw, fixed-point constants are rejected by the C++ frontend since the patch for PR39059. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35325

[Bug c++/35319] [4.3/4.4 regression] ICE throwing fixed-point types

2009-02-18 Thread reichelt at gcc dot gnu dot org
--- Comment #9 from reichelt at gcc dot gnu dot org 2009-02-19 07:03 --- Fixed-point constants are rejected by the C++ frontend since the patch for PR39059. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/38852] [4.3] UBOUND fails for negative stride triplets

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #15 from pault at gcc dot gnu dot org 2009-02-19 06:44 --- Fixed on trunk and 4.3 Thanks for the report Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38852] [4.3] UBOUND fails for negative stride triplets

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #14 from pault at gcc dot gnu dot org 2009-02-19 06:43 --- Subject: Bug 38852 Author: pault Date: Thu Feb 19 06:43:15 2009 New Revision: 144286 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144286 Log: 2009-02-19 Paul Thomas PR fortran/38852 PR f

[Bug fortran/39006] Wrong result for array(:,ny:1:-1)) as actual argument (inverting order by negative strides)

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-02-19 06:43 --- Subject: Bug 39006 Author: pault Date: Thu Feb 19 06:43:15 2009 New Revision: 144286 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144286 Log: 2009-02-19 Paul Thomas PR fortran/38852 PR fo

[Bug bootstrap/39111] gcc 4.4.0 20090204 - Configury from GNU linker to Operating System's Linker broke (reverse works OK)

2009-02-18 Thread rob1weld at aol dot com
uded-gettext --enable-stage1-checking --enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8 --with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld --with-ld=/usr/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local --without-ppl Thread model: posix gcc version 4.4.0 20090218 (exper

[Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2009-02-19 06:04 --- Tobias, It seems to me that your proposal to permit this with a warning is good. However, will it work on all architectures? I am confirming it with some trepidation since it is not a bug:-) Paul -- pault at gc

[Bug fortran/39171] Misleading warning for negative character length

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2009-02-19 05:56 --- Confirmed Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added Status|UNCO

[Bug fortran/39230] ASSOCIATED & undefined pointers

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-02-19 05:52 --- I wonder if this should not be fixed ultimately by: (i) Allowing allocatable scalars, which should allow rank 0 descriptors to take the field; and (ii) Once we have array descriptors that flag the status of the data, i

[Bug fortran/38592] eliminate some string comparisons

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-02-19 05:44 --- Thomas, As a matter of curiosity, do other compilers catch this? Confirmed Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/39189] Improvement in handling COMMON'ed pointers to allocatable arrays

2009-02-18 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2009-02-19 05:40 --- I agree with Steve and have marked this as WONTFIX. You should use another pointer and allocate to that if you want to avoid the automatic deallocation on leaving scope. Paul -- pault at gcc dot gnu dot org chang

[Bug libgcj/39161] gcc 4.4.0 20090210 - The 'copy-vmresources.sh' script can't find the 'mkinstalldirs' script.

2009-02-18 Thread rob1weld at aol dot com
in/as --with-gnu-ld --with-ld=/usr/local/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local --without-ppl Thread model: posix gcc version 4.4.0 20090218 (experimental) [trunk revision 144279] (GCC) # gmake (hours) ... mkdir META-INF mkdir META-INF/services ./copy-vmresources.sh[34]: mkinstalldirs

[Bug libstdc++/39238] trunk revision 144279 - cfenv:54: error: �::fenv_t� has not been declared

2009-02-18 Thread rob1weld at aol dot com
-double-128 --with-included-gettext --enable-stage1-checking --enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8 --with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld --with-ld=/usr/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local --without-ppl Thread model: posix gcc version 4

[Bug testsuite/38165] g++.dg/pubtypes.C fails at -m32/-m64 on i686-apple-darwin9

2009-02-18 Thread howarth at nitro dot med dot uc dot edu
--- Comment #5 from howarth at nitro dot med dot uc dot edu 2009-02-19 02:32 --- Fixed on current gcc trunk. -- howarth at nitro dot med dot uc dot edu changed: What|Removed |Added --

[Bug testsuite/38166] g++.dg/ext/visibility/class1.C fails at -m64 on i686-apple-darwin9

2009-02-18 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2009-02-19 02:31 --- Fixed on current gcc trunk. -- howarth at nitro dot med dot uc dot edu changed: What|Removed |Added --

[Bug libstdc++/39238] trunk revision 144279 - cfenv:54: error: �::fenv_t� has not been declared

2009-02-18 Thread rob1weld at aol dot com
--- Comment #2 from rob1weld at aol dot com 2009-02-19 02:30 --- That worked. The build continues until it fails here: # gmake (5 minutes) ... Making all in src gmake[4]: Entering directory `/usr/share/src/gcc_build/i386-pc-solaris2.11/libstdc++-v3/src' ... -DPIC -o .libs/parallel_set

[Bug libstdc++/39238] trunk revision 144279 - cfenv:54: error: �::fenv_t� has not been declared

2009-02-18 Thread rob1weld at aol dot com
--- Comment #1 from rob1weld at aol dot com 2009-02-19 02:21 --- New warning "different GCC executable" was just 'xgcc' instead of 'g++'. Next error in 'extc++.h.gch/O2g.gch' is fixed by: /usr/share/src/gcc_build/./gcc/xgcc -shared-libgcc -B/usr/share/src/gcc_build/./gcc -nostdinc++ -

[Bug libstdc++/39238] New: trunk revision 144279 - cfenv:54: error: �::fenv_t� has not been declared

2009-02-18 Thread rob1weld at aol dot com
nu-ld --with-ld=/usr/local/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local --without-ppl Thread model: posix gcc version 4.4.0 20090218 (experimental) [trunk revision 144279] (GCC) # gmake ... Making all in include gmake[4]: Entering directory `/usr/share/src/gcc_build/i386-pc-solaris2.11/

[Bug c++/39219] attribute doesn't work with enums properly

2009-02-18 Thread hjl at gcc dot gnu dot org
--- Comment #8 from hjl at gcc dot gnu dot org 2009-02-19 01:58 --- Subject: Bug 39219 Author: hjl Date: Thu Feb 19 01:58:15 2009 New Revision: 144284 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144284 Log: gcc/cp 2009-02-18 H.J. Lu PR c++/39219 * parser.

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #27 from jason at gcc dot gnu dot org 2009-02-19 01:12 --- I reverted the mistaken checkins a few seconds later. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179

[Bug c++/39188] G++ doesn't handle static anonymous union right

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-02-18 23:45 --- (In reply to comment #2) > A patch is posted at > > http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00714.html > Jason, Richard, can you review this wrong-code fix? Thanks. -- hjl dot tools at gmail dot com chang

[Bug c++/39219] attribute doesn't work with enums properly

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2009-02-18 23:44 --- (In reply to comment #3) > A patch is posted at > > http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00790.html > Jason, can you take a look at this one line fix? Thanks. -- hjl dot tools at gmail dot com changed:

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #14 from hjl dot tools at gmail dot com 2009-02-18 23:42 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug testsuite/38165] g++.dg/pubtypes.C fails at -m32/-m64 on i686-apple-darwin9

2009-02-18 Thread janis at gcc dot gnu dot org
--- Comment #4 from janis at gcc dot gnu dot org 2009-02-18 23:18 --- Subject: Bug 38165 Author: janis Date: Wed Feb 18 23:17:56 2009 New Revision: 144277 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144277 Log: 2009-02-18 Jack Howarth PR testsuite/38165 * g

[Bug testsuite/38166] g++.dg/ext/visibility/class1.C fails at -m64 on i686-apple-darwin9

2009-02-18 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2009-02-18 22:19 --- Subject: Bug 38166 Author: janis Date: Wed Feb 18 22:19:26 2009 New Revision: 144274 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144274 Log: 2009-02-18 Jack Howarth PR testsuite/38166 * g

[Bug tree-optimization/39234] Call to constant function pointer not inlined

2009-02-18 Thread dpirch at gmail dot com
--- Comment #2 from dpirch at gmail dot com 2009-02-18 22:16 --- extfunc cannot change the value of f, it would lead to undefined behavior. "If an attempt is made to modify an object defined with a const-qualified type through use of an lvalue with non-const-qualified type, the behavior

[Bug libstdc++/39237] Overloaded Operator delete not called

2009-02-18 Thread caroline dot rioux at ca dot ibm dot com
--- Comment #5 from caroline dot rioux at ca dot ibm dot com 2009-02-18 22:15 --- (In reply to comment #4) > Nope, only currently 4.2 and above are being maintained. Is there a reason > why > you unlikely to move to 4.x in the short term? We have a big code base and changing compile

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #26 from ebotcazou at gcc dot gnu dot org 2009-02-18 22:11 --- > Fixed. The C++ static/extern issue has been added as PR 39236. You have installed a lot more things than what's described in the ChangeLog. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179

[Bug libstdc++/39237] Overloaded Operator delete not called

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-02-18 22:06 --- (In reply to comment #3) > Ok thanks for your input. Was this explicitly fixed or a result of other > framework changes? Is there any way a patch exists and could be applied? Off hand I don't know. > I ask because

[Bug libstdc++/39237] Overloaded Operator delete not called

2009-02-18 Thread caroline dot rioux at ca dot ibm dot com
--- Comment #3 from caroline dot rioux at ca dot ibm dot com 2009-02-18 22:02 --- (In reply to comment #2) > Fixed in 4.1.0 as mentioned already. 3.3.x is no longer maintained and any > bug > that is reported against that old version is most likely not going to be ever > fixed. > Ok

Re: Pass by reference problem

2009-02-18 Thread Andrew Pinski
On Mon, Feb 16, 2009 at 7:29 PM, e211 wrote: > > //The following code works and there is no way it should. Seems like a bug > someone put in on purpose > > #include > using namespace std; > > void swap(int *x, int *y) > { >int temp; >temp = *x; >*x = *y; >*y = tem

[Bug libgomp/39217] g++4.3.3 OpenMP (aka omp) for loop hangs

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-18 21:55 --- We need a preprocessed source or at least a self contained example. It might be the case you don't use the correct barriers or atomics when doing updates of a global variable. -- pinskia at gcc dot gnu dot org c

[Bug bootstrap/38523] [4.4 regression] arm build fails to link cc1-dummy

2009-02-18 Thread danglin at gcc dot gnu dot org
--- Comment #17 from danglin at gcc dot gnu dot org 2009-02-18 21:54 --- Configuring with --disable-stage-checking, I see the following for cc1: -bash-3.2$ size cc1 text data bss dechex filename 28977798 496932 623152 300978821cb41da

[Bug libstdc++/39237] Overloaded Operator delete not called

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-02-18 21:45 --- Fixed in 4.1.0 as mentioned already. 3.3.x is no longer maintained and any bug that is reported against that old version is most likely not going to be ever fixed. -- pinskia at gcc dot gnu dot org changed:

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl at gcc dot gnu dot org
--- Comment #13 from hjl at gcc dot gnu dot org 2009-02-18 21:40 --- Subject: Bug 39224 Author: hjl Date: Wed Feb 18 21:40:08 2009 New Revision: 144272 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144272 Log: 2009-02-18 H.J. Lu PR target/39224 * config/i386

[Bug libstdc++/39237] Overloaded Operator delete not called

2009-02-18 Thread caroline dot rioux at ca dot ibm dot com
--- Comment #1 from caroline dot rioux at ca dot ibm dot com 2009-02-18 21:39 --- Created an attachment (id=17327) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17327&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39237

[Bug libstdc++/39237] New: Overloaded Operator delete not called

2009-02-18 Thread caroline dot rioux at ca dot ibm dot com
Hello, We use a unit testing framework which overloads operator new and operator delete to track memory allocations and detect leaks. According to it, vector's push_back method allocates memory through operator new but does not release it through operator delete. I am not sure if this is because

[Bug rtl-optimization/17387] Redundant zero extension instructions in loop optimization

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #25 from hjl dot tools at gmail dot com 2009-02-18 21:31 --- All 32bit load insns are zero extended to 64bit, not just move. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17387

[Bug rtl-optimization/17387] Redundant zero extension instructions in loop optimization

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #24 from hjl dot tools at gmail dot com 2009-02-18 21:24 --- I tried: --- config/i386/i386.h.zero 2009-02-18 08:42:40.0 -0800 +++ config/i386/i386.h 2009-02-18 13:16:26.0 -0800 @@ -1940,6 +1940,11 @@ do {

[Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name

2009-02-18 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #25 from jason at gcc dot gnu dot org 2009-02-18 21:09 --- Fixed. The C++ static/extern issue has been added as PR 39236. -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/39236] New: G++ sets TREE_STATIC and DECL_EXTERNAL on the same VAR_DECLs

2009-02-18 Thread jason at gcc dot gnu dot org
G++ uses TREE_STATIC to mean "will be written out statically somewhere" rather than "write out statically in this TU"; it should be set on VAR_DECLs that also have DECL_EXTERNAL set. Historically we've set DECL_EXTERNAL on anything that we weren't yet sure whether or not we were going to write out

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #24 from jason at gcc dot gnu dot org 2009-02-18 21:01 --- Subject: Bug 39179 Author: jason Date: Wed Feb 18 21:01:03 2009 New Revision: 144270 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144270 Log: PR target/39179 * tree-ssa-ccp.c (get_symbol_con

[Bug rtl-optimization/39235] get_simple_loop_desc returns uninitialized memory

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-18 20:57 --- Such patch would be obvious and a minor change. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39235

[Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name

2009-02-18 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.4.0 |4.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225

[Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name

2009-02-18 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Known to fail|4.3.4 |4.3.4 4.4.0 Known to work|4.4.0 4.3.2 |4.3.2

[Bug c++/39225] ICE if destructor doen't match class name

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2009-02-18 20:19 --- It is caused by revision 143502 on trunk: http://gcc.gnu.org/ml/gcc-cvs/2009-01/msg00515.html -- hjl dot tools at gmail dot com changed: What|Removed |Added --

[Bug rtl-optimization/39235] New: get_simple_loop_desc returns uninitialized memory

2009-02-18 Thread amylaar at gcc dot gnu dot org
get_simple_loop_desc uses the XNEW macro to allocate the new loop description, thus the memory is not initialized. At least the desc->infinite field thus can remain uninitialized when the function returns. As long as the optimizers only punt on infinity that can result in pseudo-random missed opti

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-02-18 19:56 --- I'm sure it is somehow possible, maybe we can use scev_probably_wraps_p in simple_iv. I will check that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39233

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2009-02-18 19:50 --- The updated patch is at http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00871.html -- hjl dot tools at gmail dot com changed: What|Removed |Added --

[Bug target/39226] [4.4 Regression] gcc_assert (verify_initial_elim_offsets ()); ICE

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-02-18 19:41 --- (In reply to comment #4) > You mean anddi3_internal3_nomc, right? If so, I guess anddi3_internal2_nomc > should be removed too. I will have to look at what I did, I know I ran into a case where a constant was being

[Bug target/39226] [4.4 Regression] gcc_assert (verify_initial_elim_offsets ()); ICE

2009-02-18 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-02-18 19:40 --- You mean anddi3_internal3_nomc, right? If so, I guess anddi3_internal2_nomc should be removed too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39226

[Bug target/39226] [4.4 Regression] gcc_assert (verify_initial_elim_offsets ()); ICE

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-02-18 19:34 --- Hmm, for the PS3 toolchain, I think I just removed anddi3_internal3_mc. Mine. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2009-02-18 19:22 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00870.html -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-02-18 18:56 --- Would it be possible for known loop bounds to still use pointer etc. ivopts if we can ensure the overflow doesn't happen on that interval (+-1)? Say if the same testcase goes for (i = 16; i >= 10; i--) instead of for

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2009-02-18 18:53 --- The problem is callee returns long double via a pointer to a structure. But caller thinks callee returns long double in rax/edx. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39224

[Bug c++/39225] ICE if destructor doen't match class name

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-02-18 18:47 --- And in the release of 4.3.2 with checking turned on. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-02-18 18:47 --- This patch fixes it, with unknown side-effects. It should be ok for the common sizetype extensions due to POINTER_PLUS_EXPR (sizetype is unsigned for sane languages). Index: tree-scalar-evolution.c

[Bug c++/39225] ICE if destructor doen't match class name

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-02-18 18:46 --- And: GNU C++ (GCC) version 4.4.0 20090116 (experimental) [trunk revision 143448] (powerpc64-unknown-linux-gnu) compiled by GNU C version 4.4.0 20090116 (experimental) [trunk revision 143448], GMP version 4.2.

[Bug c++/39225] ICE if destructor doen't match class name

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-02-18 18:46 --- It works for me with: GNU C++ (GCC) version 4.4.0 20081229 (experimental) [trunk revision 142951] (i386-apple-darwin8.11.1) compiled by GNU C version 4.4.0 20081229 (experimental) [trunk revision 142951], GMP

[Bug tree-optimization/39234] Call to constant function pointer not inlined

2009-02-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-18 18:38 --- const fptr_t f = inlinable; extfunc(&f); f(); extfunc can change the value of f so this is invalid. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #23 from jason at gcc dot gnu dot org 2009-02-18 18:31 --- ...and then of course there's the actual documentation: TARGET_BINDS_LOCAL_P (tree exp) Returns true if exp names an object for which name resolution rules must resolve to the current ``module'' (dynamic shared libra

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #22 from jason at gcc dot gnu dot org 2009-02-18 18:06 --- Seems like we already had this discussion last year, starting at http://gcc.gnu.org/ml/gcc/2007-06/msg00848.html The conclusion there was that binds_local_p means "binds to this executable/shared library", and the P

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-02-18 17:53 --- This one also fails on i?86-*-*: extern void abort (void); __attribute__((noinline)) void foo (void *p) { long l = (long) p; if (l < 0 || l > 6) abort (); } int main () { short i; for (i = 6; i >= 0; i

[Bug tree-optimization/39234] New: Call to constant function pointer not inlined

2009-02-18 Thread dpirch at gmail dot com
rget: x86_64-unknown-linux-gnu Configured with: ../gcc-svn/configure --program-suffix=-4.4 --enable-languages=c Thread model: posix gcc version 4.4.0 20090218 (experimental) (GCC) -- Summary: Call to constant function pointer not inlined Product: gcc Version: 4

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #21 from jason at gcc dot gnu dot org 2009-02-18 17:51 --- OTOH, the use of visibility in default_binds_local_p is also wrong under this interpretation... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-02-18 17:50 --- Confirmed on x86_64 with -O2. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added GCC t

[Bug target/39179] [4.4 Regression] Wrong code in c++ for const members initialized in external file

2009-02-18 Thread jason at gcc dot gnu dot org
--- Comment #20 from jason at gcc dot gnu dot org 2009-02-18 17:47 --- (In reply to comment #19) > I suppose it's a question of what "module" means. "module" is used in a lot of different ways, but this usage definitely refers to the current translation unit: /* In a VAR_DECL, FUNCTION

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-02-18 17:47 --- I will have a look. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Assigne

[Bug target/39082] union with long double doesn't follow x86-64 psABI

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #15 from hjl dot tools at gmail dot com 2009-02-18 17:43 --- (In reply to comment #13) > Created an attachment (id=17325) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17325&action=view) [edit] > Ada testcase > > (botca...@red) ~ $ gcc -S p.ads > p.ads:16: note: The A

[Bug fortran/39230] ASSOCIATED & undefined pointers

2009-02-18 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-02-18 17:32 --- The other bug is PR 29616. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39230

[Bug fortran/39230] ASSOCIATED & undefined pointers

2009-02-18 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-02-18 17:28 --- > This is actually invalid Yes, but this is a requirement to the program(mer) not to the compiler. > and should probably trigger a runtime error. Yes, but only with some checking option, otherwise it really gets too

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-02-18 17:24 --- Caused by PR31358. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39233

[Bug tree-optimization/39233] [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39233

[Bug tree-optimization/39233] New: [4.4 Regression] ivopts + vrp miscompilation

2009-02-18 Thread jakub at gcc dot gnu dot org
extern void abort (void); __attribute__((noinline)) void foo (void *p) { long l = (long) p; if (l < 0 || l > 6) abort (); } int main () { int i; for (i = 6; i >= 0; i--) foo ((void *) (long) i); return 0; } is miscompiled (into endless loop). First ivopts decides to use a poin

[Bug c++/39219] attribute doesn't work with enums properly

2009-02-18 Thread sebor at roguewave dot com
--- Comment #6 from sebor at roguewave dot com 2009-02-18 16:50 --- (In reply to comment #5) > Should attribute work on enum constants? Not sure if this is a question for me but IMO, it should. I would expect individual enumerators to be more heavily referenced than their types (sometim

[Bug c/39232] apparent bizarre miscompilation on AVR

2009-02-18 Thread regehr at cs dot utah dot edu
--- Comment #1 from regehr at cs dot utah dot edu 2009-02-18 16:41 --- Created an attachment (id=17326) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17326&action=view) failure-inducing C program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39232

[Bug fortran/39229] No warning of truncated lines if a continuation line follows

2009-02-18 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-02-18 16:41 --- > I'm not sure if this kind of thing is legal to begin with Well, the Fortran standard only has: Free form: "If a line consists entirely of characters of default kind (4.4.4), it may contain at most 132 characters.

[Bug c/39232] New: apparent bizarre miscompilation on AVR

2009-02-18 Thread regehr at cs dot utah dot edu
This is seen on the version of avr-gcc 4.3.3 that gets built by the script that comes with FemtoOS 0.88. I'm compiling like this: avr-gcc -mmcu=atmega128 -O0 small_preprocessed.c -o small.elf And observing the result of a run like this: java -server avrora.Main -platform=mica2 -simulation=s

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2009-02-18 15:50 --- For sysv/x86-64, XFmode is 16byte with 16byte alignment. It is passed in memory and returned in in %st0/%st1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39224

[Bug c/39223] volatile bug on AVR

2009-02-18 Thread eric dot weddington at atmel dot com
--- Comment #4 from eric dot weddington at atmel dot com 2009-02-18 15:19 --- Fail on 4.3.2 with -O1, success with -O[023s]. -- eric dot weddington at atmel dot com changed: What|Removed |Added -

[Bug target/39082] union with long double doesn't follow x86-64 psABI

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #14 from hjl dot tools at gmail dot com 2009-02-18 15:10 --- (In reply to comment #12) > > I believe that warning is turned on for C ObjC C++ ObjC++ only. > > Wrong. A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00834.html -- http://gcc.gnu.org/bu

[Bug testsuite/38165] g++.dg/pubtypes.C fails at -m32/-m64 on i686-apple-darwin9

2009-02-18 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2009-02-18 14:56 --- Submitted patch to gcc-patches... http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00831.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38165

[Bug target/39082] union with long double doesn't follow x86-64 psABI

2009-02-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #13 from ebotcazou at gcc dot gnu dot org 2009-02-18 14:51 --- Created an attachment (id=17325) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17325&action=view) Ada testcase (botca...@red) ~ $ gcc -S p.ads p.ads:16: note: The ABI of passing union with long double has

[Bug target/39082] union with long double doesn't follow x86-64 psABI

2009-02-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #12 from ebotcazou at gcc dot gnu dot org 2009-02-18 14:38 --- > I believe that warning is turned on for C ObjC C++ ObjC++ only. Wrong. spgn_numerics.ads: In function 'Test_Gip_Stat': spgn_numerics.ads:25: note: The ABI of passing union with long double has changed in GCC

[Bug c/39231] Optimized code gives wrong result

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-18 14:37 --- gcc -o t t.c -O2 -Wstrict-overflow t.c: In function ‘main’: t.c:13: warning: assuming signed overflow does not occur when simplifying conditional to constant negating signed 0x8000 invokes undefined behavior.

[Bug c/39231] New: Optimized code gives wrong result

2009-02-18 Thread gabriel dot campana at free dot fr
The following code gives wrong result with -O2 and above : % gcc -O0 -o example example.c && ./example 1 % gcc -O2 -o example example.c && ./example 0 The bug is triggered on i486 platform, with gcc 4.3.2 but not with gcc 4.1.2. #include int main(void) { volatile int y; int x; y =

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread ktietz at gcc dot gnu dot org
--- Comment #8 from ktietz at gcc dot gnu dot org 2009-02-18 14:23 --- (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > (In reply to comment #4) > > > > ok, I found the issue, which causes here the problem. > > > > The x86_64 abi returns TFmode in ra

[Bug target/39228] [4.3/4.4 Regression] 387 optimised __builtin_isinf() gives incorrect result

2009-02-18 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2009-02-18 14:15 --- Patch at http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00825.html -- ubizjak at gmail dot com changed: What|Removed |Added

[Bug target/39224] ABI attribute doesn't work with long double

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2009-02-18 14:13 --- (In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > ok, I found the issue, which causes here the problem. > > > The x86_64 abi returns TFmode in rax,edx which is stored in aligned s

[Bug target/39082] union with long double doesn't follow x86-64 psABI

2009-02-18 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2009-02-18 14:08 --- (In reply to comment #10) > Please make sure the warning is issued only for appropriate languages (it is > not > needed in Ada for example and the wording doesn't make sense). TIA. > I believe that warning is tu

[Bug c++/36954] Wrong warning with -Wlogical-op

2009-02-18 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2009-02-18 13:15 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00824.html -- manu at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/32061] (Wlogical-op) wording of warning of constant logicials need improvement

2009-02-18 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2009-02-18 13:13 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00824.html -- manu at gcc dot gnu dot org changed: What|Removed |Added --

[Bug rtl-optimization/17387] Redundant zero extension instructions in loop optimization

2009-02-18 Thread bonzini at gnu dot org
--- Comment #23 from bonzini at gnu dot org 2009-02-18 13:02 --- > Gcc doesn't know/remember > > movlS(,%rax,4), %eax > > will zero extend to 64bit. I don't know you can touch only the lower > 32bit bits. This could be fixed by LOAD_EXTEND_OP, right? -- http://gcc.gnu.org/bug

[Bug tree-optimization/39207] [4.4 Regression] Strict aliasing warnings in libstdc++ headers

2009-02-18 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2009-02-18 12:56 --- Ok, a backported patch fixes all three new testcases. I was avoiding the backport to avoid late performance and/or compile-time regressions, so I'll give the patch (and one accompanied change that went to the bran

  1   2   >