[Bug other/45686] New: Building rev. 164285 fails with --enable-checking=all

2010-09-16 Thread aanisimov at inbox dot ru
I've configured GCC with following options: ../gcc-current/configure --prefix=/home/artem/testing/gcc46 --enable-shared --enable-bootstrap --enable-languages=c,c++ --enable-threads=posix --enable-checking=release --with-system-zlib --disable-libunwind-exceptions --enable-__cxa_atexit

[Bug c/45687] New: possible wrong code bug

2010-09-16 Thread regehr at cs dot utah dot edu
I don't think there's anything wrong with the testcase. The -O2 result is wrong. [reg...@gamow ~]$ current-gcc -v Using built-in specs. COLLECT_GCC=current-gcc

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #8 from dominiq at lps dot ens dot fr 2010-09-16 07:06 --- I believe that there are related PRs that I have to find. pr40472 comment #21 for SPREAD: REAL, DIMENSION(720,360), PARAMETER :: ZLON_MASK = SPREAD( (/ (JLON , JLON=1,720) /) , DIM=2, NCOPIES=360 ) print *,

[Bug tree-optimization/45653] [4.6 Regression] ICE: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1241 with -fno-early-inlining -fno-ipa-cp -fno-ipa-pure-const

2010-09-16 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-09-16 07:20 --- (In reply to comment #0) Tested revisions: r164228 - crash r163636 - crash r161659 - crash typo, r161659 doesn't crash (thus it's a 4.6 regression) 4.5 r163761 compiles fine as well -- zsojka at seznam dot cz

[Bug libffi/45677] Bad stack allocation for ffi function calls on x86-64

2010-09-16 Thread mh+gcc at glandium dot org
--- Comment #10 from mh+gcc at glandium dot org 2010-09-16 07:43 --- (In reply to comment #9) Created an attachment (id=21806) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21806action=view) [edit] testcase Here you go. This passes at -O0 but fails at -O2. Note that the

[Bug c/45687] possible wrong code bug

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-09-16 08:13 --- Broken by http://gcc.gnu.org/viewcvs?root=gccview=revrev=164135 -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/45687] possible wrong code bug

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2010-09-16 08:27 --- Seems ipa_modify_call_arguments creates incorrect MEM_REF here. base is correctly ADDR_EXPR of a, with int * type for the ADDR_EXPR, but offset has int ** type instead of int *. At RTL level this results in alias set

[Bug fortran/45674] [OOP] Undefined references for extended types

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-09-16 08:50 --- (I have not regtested this yet.) The (second) patch in comment #2 fixes the pr without regression. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45674

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread rguenther at suse dot de
--- Comment #10 from rguenther at suse dot de 2010-09-16 08:50 --- Subject: Re: Missed devirtualization On Wed, 15 Sep 2010, hubicka at ucw dot cz wrote: --- Comment #9 from hubicka at ucw dot cz 2010-09-15 22:39 --- Subject: Re: Missed devirtualization We fold a stmt

[Bug c/45687] possible wrong code bug

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-09-16 08:55 --- --- ipa-prop.c.jj 2010-09-14 15:24:45.0 +0200 +++ ipa-prop.c 2010-09-16 10:47:14.0 +0200 @@ -2185,7 +2185,8 @@ ipa_modify_call_arguments (struct cgraph if (TREE_CODE (base) == ADDR_EXPR

[Bug bootstrap/45686] Building rev. 164285 fails with --enable-checking=all

2010-09-16 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-09-16 09:30 --- With seeing .clone in fn names I suppose this is ipa-cp or ipa-sra. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/45686] Building rev. 164285 fails with --enable-checking=all

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-09-16 09:35 --- Subject: Bug 45686 Author: jakub Date: Thu Sep 16 09:35:02 2010 New Revision: 164330 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164330 Log: PR bootstrap/45686 * fold-const.c

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-09-16 Thread paul dot richard dot thomas at gmail dot com
--- Comment #9 from paul dot richard dot thomas at gmail dot com 2010-09-16 09:43 --- Subject: Re: [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208 Thanks! Paul On Thu, Sep 16, 2010 at 9:06 AM, dominiq at lps dot ens dot fr

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-09-16 10:17 --- DECL_ALIGN of d is set to 128 (but appearantly it isn't ensured it'll end up that way). DECL_ALIGN is adjusted here: Old value = 32 New value = 128 expand_one_stack_var_at (decl=0x75ae90a0, offset=-16) at

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-09-16 10:18 --- Created an attachment (id=21809) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21809action=view) patch to fix half STRICT_ALIGNMENT targets memcpy folding Might need this patch to fix as well. i?86 / x86_64

[Bug web/45688] New: Typo in __attribute__((version-id)) docs

2010-09-16 Thread dascandy at gmail dot com
HP-UX system header files may use version level functioning for some system calls. This is a very amusing (what I assume to be) typo in the documentation of function-level versioning. Not sure this is the right bug tracker but this is one that I know... -- Summary: Typo in

[Bug web/45688] Typo in __attribute__((version-id)) docs

2010-09-16 Thread dascandy at gmail dot com
--- Comment #1 from dascandy at gmail dot com 2010-09-16 10:23 --- http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes The link where the typo is to be found. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45688

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-09-16 10:40 --- Re: #c4, shouldn't there be srcvar = NULL_TREE; somewhere for the STRICT_ALIGNMENT non-aligned case? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45678

[Bug fortran/45689] New: CSHIFT and EOSHIFT are not in the make-164314p7m1.log list

2010-09-16 Thread dominiq at lps dot ens dot fr
While playing with modifications of PR4581, I tried module m implicit none type t integer :: i end type t type(t), dimension(2), parameter :: a1 = (/ t(1), t(2) /) type(t), dimension(2), parameter :: d = cshift ( a1, 1 ) end module m and got pr45081_red.f90:7.43:

[Bug fortran/45689] CSHIFT and EOSHIFT are not in the trans_func_f2003 list

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-09-16 10:42 --- pasto!-( -- dominiq at lps dot ens dot fr changed: What|Removed |Added Summary|CSHIFT

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-09-16 10:50 --- Missing some else indeed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45678

[Bug tree-optimization/45623] [4.5/4.6 Regression] GCC 4.5.[01] breaks our ffi on Linux64. ABI break?

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #26 from rguenth at gcc dot gnu dot org 2010-09-16 11:06 --- Subject: Bug 45623 Author: rguenth Date: Thu Sep 16 11:06:25 2010 New Revision: 164333 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164333 Log: 2010-09-16 Richard Guenther rguent...@suse.de PR

[Bug tree-optimization/45623] [4.5 Regression] GCC 4.5.[01] breaks our ffi on Linux64. ABI break?

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #27 from rguenth at gcc dot gnu dot org 2010-09-16 11:07 --- Fixed for trunk sofar. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/45689] CSHIFT and EOSHIFT are not in the trans_func_f2003 list

2010-09-16 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2010-09-16 11:14 --- They are not, as there, afaik, are no simplifiers yet. Hence, with your patch they will be accepted, but you'd end up with wrong code at the end, as the functions are not properly simplified and thus not constant.

[Bug web/45688] Typo in __attribute__((version-id)) docs

2010-09-16 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug bootstrap/45445] [4.6 regression] ARM bootstrap failure: comparison failures after stage 3

2010-09-16 Thread laurent at guerby dot net
--- Comment #11 from laurent at guerby dot net 2010-09-16 11:49 --- With --with-arch=armv5te --with-tune=xscale I get the comparison failure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45445

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2010-09-16 11:57 --- For the ix86/x86_64 alignment issue, I believe the problem here is that max_align = MAX (crtl-max_used_stack_slot_alignment, PREFERRED_STACK_BOUNDARY); is fine for

[Bug lto/45375] [meta-bug] Mozilla does not build with LTO

2010-09-16 Thread hubicka at gcc dot gnu dot org
--- Comment #6 from hubicka at gcc dot gnu dot org 2010-09-16 12:09 --- PR 45679 also reproduce during -O3 build. I am testing patch for it now. -- hubicka at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/45674] [OOP] Undefined references for extended types

2010-09-16 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-09-16 12:10 --- (In reply to comment #3) Thanks for the quick fix! Well, it was *your* fix, so *I* should thank *you* :) Anyway, I think the patch in comment #2 qualifies as obvious, and has no regressions, as noted by Dominique.

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread hubicka at gcc dot gnu dot org
--- Comment #11 from hubicka at gcc dot gnu dot org 2010-09-16 12:25 --- Hmm, so do you have any idea where folding should be added for this particular case? It always seemed to me that it would make sense to add verifier that all statements are folded (locally, not by looking at SSA

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread rguenther at suse dot de
--- Comment #12 from rguenther at suse dot de 2010-09-16 12:31 --- Subject: Re: Missed devirtualization On Thu, 16 Sep 2010, hubicka at gcc dot gnu dot org wrote: --- Comment #11 from hubicka at gcc dot gnu dot org 2010-09-16 12:25 --- Hmm, so do you have any idea where

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread hubicka at ucw dot cz
--- Comment #13 from hubicka at ucw dot cz 2010-09-16 12:48 --- Subject: Re: Missed devirtualization I'm lost in this PR - for what testcase what statement needs folding (and what pending patches do I need to apply to see that)? PR is tracking missed optimization in the testcase in

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread rguenther at suse dot de
--- Comment #14 from rguenther at suse dot de 2010-09-16 12:51 --- Subject: Re: Missed devirtualization On Thu, 16 Sep 2010, hubicka at ucw dot cz wrote: --- Comment #13 from hubicka at ucw dot cz 2010-09-16 12:48 --- Subject: Re: Missed devirtualization I'm lost in

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2010-09-16 13:02 --- This also failed: --- typedef float V __attribute__ ((vector_size (16))); V g; float d[4] = { 4, 3, 2, 1 }; int main () { V e; __builtin_memcpy (e, d, sizeof (d)); V f = { 5, 15, 25, 35 }; e = e * f; g =

[Bug fortran/25104] [F2003] Non-initialization expr. as case-selector

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #20 from dominiq at lps dot ens dot fr 2010-09-16 13:03 --- The test in comment #0 now gives (with/without -std=g95) pr25104.f90:3.5: CASE(MAXLOC(K,1)) 1 Error: transformational intrinsic 'maxloc' at (1) is not permitted in an initialization expression for 4.4.4,

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2010-09-16 13:05 --- If __builtin_memcpy generates instructions which require bigger alignment than alignments of source or destination, it should increase the alignment of source or destination. --

[Bug fortran/45689] [F2003] Missing transformational intrinsic in the trans_func_f2003 list

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2010-09-16 13:09 --- MAXLOC and MINLOC are also missing (see pr25104). They are not, as there, afaik, are no simplifiers yet. Hence, with your patch they will be accepted, but you'd end up with wrong code at the end, as the

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2010-09-16 13:10 --- When __builtin_memcpy increases the alignment of source or destination, it should update needed stack alignment if source or destination is on stack. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45678

[Bug fortran/45674] [OOP] Undefined references for extended types

2010-09-16 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2010-09-16 13:13 --- Subject: Bug 45674 Author: janus Date: Thu Sep 16 13:12:59 2010 New Revision: 164338 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164338 Log: 2010-09-16 Janus Weil ja...@gcc.gnu.org PR

[Bug fortran/45674] [OOP] Undefined references for extended types

2010-09-16 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2010-09-16 13:14 --- Fixed with r164338. Closing. Thanks for the report! -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #10 from dominiq at lps dot ens dot fr 2010-09-16 13:14 --- (1) The patch in comment #7 fixes this pr without regression. (2) If I replace type(t), dimension(1), parameter :: a1 = (/ t(1) /) type(t), dimension(1), parameter :: a = reshape ( (/ a1 /), (/ 1 /) )

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2010-09-16 13:21 --- This code: if (TREE_CODE (srcvar) == ADDR_EXPR var_decl_component_p (TREE_OPERAND (srcvar, 0)) tree_int_cst_equal (TYPE_SIZE_UNIT (srctype), len) (!STRICT_ALIGNMENT

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2010-09-16 13:32 --- (In reply to comment #4) Created an attachment (id=21809) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21809action=view) [edit] patch to fix half STRICT_ALIGNMENT targets memcpy folding Might need this

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #13 from rguenth at gcc dot gnu dot org 2010-09-16 13:39 --- (In reply to comment #12) (In reply to comment #4) Created an attachment (id=21809) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21809action=view) [edit] patch to fix half STRICT_ALIGNMENT targets

[Bug bootstrap/45445] [4.6 regression] ARM bootstrap failure: comparison failures after stage 3

2010-09-16 Thread bernds at gcc dot gnu dot org
--- Comment #12 from bernds at gcc dot gnu dot org 2010-09-16 13:50 --- (In reply to comment #6) So stage1 chooses adds but stage2 and stage3 choose lsls for of the lower half of a long long. Since the behaviour of a stageN xgcc depends on both the gcc source code and the compiler

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #14 from jakub at gcc dot gnu dot org 2010-09-16 13:54 --- The reason why cfgexpand does increase the alignment is that it believes that the base slot will be at least PREFERRED_STACK_BOUNDARY bytes aligned, which is true on all targets but i?86/x86-64, which apparently

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #15 from hjl dot tools at gmail dot com 2010-09-16 13:54 --- Created an attachment (id=21810) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21810action=view) A patch This patch adds HARD_ALIGNMENT_MODE_P and works for me. --

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #16 from hjl dot tools at gmail dot com 2010-09-16 13:59 --- (In reply to comment #13) With that patch the assignment generated from memcpy doesn't need more that int alignment, but still cfgexpand.c sets DECL_ALIGN of the decl to 128 so expand uses aligned

[Bug c++/45690] New: broken debuginfo with dwarf4?

2010-09-16 Thread pluto at agmk dot net
hi, on the recent 4.5 branch i have a problems with dwarf4 and pretty printers. here's steps to reproduce: $ make /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-g++ t.cpp -gdwarf-3 -g2 -o t-dw3 /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-g++

[Bug c++/45690] broken debuginfo with dwarf4?

2010-09-16 Thread pluto at agmk dot net
--- Comment #1 from pluto at agmk dot net 2010-09-16 14:01 --- Created an attachment (id=21811) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21811action=view) source, makefile and precompiled binaries. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45690

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-09-16 Thread pluto at agmk dot net
--- Comment #10 from pluto at agmk dot net 2010-09-16 14:04 --- (In reply to comment #9) Are you sure you haven't modified your GCC sources? i'm testing gcc-4.5 from svn branch, with gdb-7.2 and binutils-2.20.51.0.11. filled as PR45690. --

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2010-09-16 14:08 --- That's true. But many expanders can make use of DECL_ALIGN information, e.g. to choose faster code. If cfgexpand keeps doing what it does now, namely bumping DECL_ALIGN of variables up to PREFERRED_STACK_BOUNDARY

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2010-09-16 14:13 --- (In reply to comment #16) (In reply to comment #13) With that patch the assignment generated from memcpy doesn't need more that int alignment, but still cfgexpand.c sets DECL_ALIGN of the decl to 128 so

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #19 from hjl dot tools at gmail dot com 2010-09-16 14:17 --- (In reply to comment #17) That's true. But many expanders can make use of DECL_ALIGN information, e.g. to choose faster code. If cfgexpand keeps doing what it does now, namely bumping DECL_ALIGN of variables

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #20 from rguenth at gcc dot gnu dot org 2010-09-16 14:22 --- The patch in comment #4 makes memcpy folding not lie about alignment. cfgexpand still lies about alignment though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45678

[Bug rtl-optimization/45678] [4.4/4.5/4.6 Regression] crash on vector code with -m32 -msse

2010-09-16 Thread hjl dot tools at gmail dot com
--- Comment #21 from hjl dot tools at gmail dot com 2010-09-16 14:30 --- (In reply to comment #20) The patch in comment #4 makes memcpy folding not lie about alignment. X86 only cares about alignment for vector modes. Can we combine 2 patches into one? cfgexpand still lies about

[Bug middle-end/45687] [4.6 Regression] possible wrong code bug

2010-09-16 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Component|c |middle-end Keywords|

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2010-09-16 14:55 --- Like Index: gimplify.c === --- gimplify.c (revision 164333) +++ gimplify.c (working copy) @@ -2477,10 +2477,13 @@ gimplify_call_expr (tree

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread jamborm at gcc dot gnu dot org
--- Comment #16 from jamborm at gcc dot gnu dot org 2010-09-16 16:00 --- (In reply to comment #15) Like Index: gimplify.c === --- gimplify.c (revision 164333) +++ gimplify.c (working copy) @@ -2477,10 +2477,13 @@

[Bug c++/45605] Missed devirtualization

2010-09-16 Thread rguenther at suse dot de
--- Comment #17 from rguenther at suse dot de 2010-09-16 16:06 --- Subject: Re: Missed devirtualization On Thu, 16 Sep 2010, jamborm at gcc dot gnu dot org wrote: --- Comment #16 from jamborm at gcc dot gnu dot org 2010-09-16 16:00 --- (In reply to comment #15)

[Bug middle-end/44763] [4.4/4.5/4.6 regression] SEGV in allocno_priority_compare_func on Solaris 8

2010-09-16 Thread ro at gcc dot gnu dot org
--- Comment #3 from ro at gcc dot gnu dot org 2010-09-16 16:37 --- Subject: Bug 44763 Author: ro Date: Thu Sep 16 16:37:01 2010 New Revision: 164341 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164341 Log: Record PR middle-end/44763 in ChangeLog. Modified:

[Bug middle-end/44763] [4.4/4.5/4.6 regression] SEGV in allocno_priority_compare_func on Solaris 8

2010-09-16 Thread ro at gcc dot gnu dot org
--- Comment #4 from ro at gcc dot gnu dot org 2010-09-16 16:43 --- Fixed for 4.6.0. -- ro at gcc dot gnu dot org changed: What|Removed |Added URL|

[Bug bootstrap/45445] [4.6 regression] ARM bootstrap failure: comparison failures after stage 3

2010-09-16 Thread rearnsha at gcc dot gnu dot org
--- Comment #13 from rearnsha at gcc dot gnu dot org 2010-09-16 16:54 --- (In reply to comment #12) I think it's likely there really is a miscompilation. I've not been able to get very far trying to set up a native compiler to run on qemu, so it would help if you could try to

[Bug preprocessor/45362] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread ktietz at gcc dot gnu dot org
--- Comment #6 from ktietz at gcc dot gnu dot org 2010-09-16 16:56 --- (In reply to comment #4) (In reply to comment #2) http://gcc.gnu.org/bugs/#need Since this is a bug in the preprocessor it is hard to get a preprocessed source that causes a bug. That's true. Interesting

[Bug c/45691] New: Floating point comparison failure

2010-09-16 Thread ian at macky dot net
After upgrading to gcc 4.5.0 from 3.3.4, some of my floating point code fails. Searched for and could not find a matching bug. It boils down to this very simple example: #include stdio.h #define MY_PI 3.14159265358979323846 int main() { double z = MY_PI; puts(z == MY_PI ? == : !=);

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-09-16 17:02 --- pr323? As a general rule: never compare floating points for equality, use abs(a-b)epsilon. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45691

[Bug preprocessor/45362] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread manu at gcc dot gnu dot org
--- Comment #7 from manu at gcc dot gnu dot org 2010-09-16 17:04 --- (In reply to comment #4) (In reply to comment #2) http://gcc.gnu.org/bugs/#need Since this is a bug in the preprocessor it is hard to get a preprocessed source that causes a bug. I think this is covered by:

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-16 17:08 --- As an even more general rule, remember to always specify your target: in this case, for example, I can't reproduce at all the behavior on x86_64 -m64, only with -m32. --

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-09-16 17:08 --- *** This bug has been marked as a duplicate of 323 *** *** This bug has been marked as a duplicate of 323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/323] optimized code gives strange floating point results

2010-09-16 Thread pinskia at gcc dot gnu dot org
--- Comment #138 from pinskia at gcc dot gnu dot org 2010-09-16 17:08 --- *** Bug 45691 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-09-16 17:13 --- i?86 is a FLT_EVAL_METHOD 2 target, so for strict C compliance all floating operations and constants are supposed to be evaluated in the precision of long double. The assignment of the constant to a double var or

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-09-16 17:15 --- Thanks Jakub. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45691

[Bug bootstrap/45680] [4.6 regression] cc1 fails to link on Solaris 9/x86 with Sun as: min_insn_size missing

2010-09-16 Thread spop at gcc dot gnu dot org
--- Comment #4 from spop at gcc dot gnu dot org 2010-09-16 17:19 --- Subject: Bug 45680 Author: spop Date: Thu Sep 16 17:19:25 2010 New Revision: 164345 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164345 Log: Fix PR45680. 2010-09-16 Reza Yazdani reza.yazd...@amd.com

[Bug bootstrap/45680] [4.6 regression] cc1 fails to link on Solaris 9/x86 with Sun as: min_insn_size missing

2010-09-16 Thread spop at gcc dot gnu dot org
--- Comment #5 from spop at gcc dot gnu dot org 2010-09-16 17:21 --- Fixed. -- spop at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug tree-optimization/45453] [4.6 Regression] ICE: verify_cgraph_node failed: inlined_to pointer set for noninline callers with -O2 -fno-early-inlining

2010-09-16 Thread hubicka at gcc dot gnu dot org
--- Comment #3 from hubicka at gcc dot gnu dot org 2010-09-16 17:36 --- Hmm, the problem is that foo is virtual self recursive function. We inline it and then indirect inlining decide that it can devirtualize the self recursive call since it knows the operand has proper type. At that

[Bug c/45691] Floating point comparison failure

2010-09-16 Thread ian at macky dot net
--- Comment #6 from ian at macky dot net 2010-09-16 17:44 --- Subject: Re: Floating point comparison failure Thanks everyone. I usually do fuzzy floating-point comparison, except in certain special circumstances. I will switch to using double constants; I'm trying for a code that is

[Bug c++/39934] Union member incorrectly disallowed

2010-09-16 Thread dherring at tentpost dot com
--- Comment #11 from dherring at tentpost dot com 2010-09-16 18:54 --- FWIW, the example given in the C++ draft spec, section 9.5, fails to compile in g++, even under version 4.5 with the -std=c++0x flag. (This example has been there for a few years.) Coupled with requirements such as

[Bug testsuite/45692] New: FAIL: objc/execute/exceptions/throw-nil.m execution on darwin with -m32

2010-09-16 Thread dominiq at lps dot ens dot fr
Since the test objc/execute/exceptions/throw-nil.m has been introduced at revision 164024, it has failed on *-apple-darwin* with -m32, see http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00816.html http://gcc.gnu.org/ml/gcc-testresults/2010-09/msg00835.html -- Summary: FAIL:

[Bug target/45693] New: [4.6 regression] All Tru64 UNIX EH tests fail

2010-09-16 Thread ro at gcc dot gnu dot org
Between 20100607 and 20100624, all Tru64 UNIX V5.1B EH tests started to fail, e.g. FAIL: g++.old-deja/g++.mike/eh33.C execution test This testcase segfaults like this: Program received signal SIGSEGV, Segmentation fault. __cxa_call_unexpected (exc_obj_in=0x70) at

[Bug middle-end/45694] New: fortran host associated variables+optimization==failure?

2010-09-16 Thread jpr at csc dot fi
Hi, (i first reported this to mingw32-w64's bug tracker: http://sourceforge.net/tracker/?func=detailaid=3067541group_id=202880atid=983354 and was forwarded here) The attached fortran program aborts() (a host associated variable changes value from host to hostee without asking) using gfortran -O1

[Bug middle-end/45694] fortran host associated variables+optimization==failure?

2010-09-16 Thread jpr at csc dot fi
--- Comment #1 from jpr at csc dot fi 2010-09-16 19:31 --- Created an attachment (id=21812) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21812action=view) failing fortran code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45694

[Bug c++/45690] broken debuginfo with dwarf4?

2010-09-16 Thread pluto at agmk dot net
--- Comment #2 from pluto at agmk dot net 2010-09-16 21:02 --- ha, my gcc was built with: export CXXFLAGS=-O2; ./configure --disable-shared... and this CXXFLAGS afaics affects libstdc++.a debuginfo level. with CXXFLAGS=-O2 -g2 the python pretty printer works fine. testcase compiled

[Bug fortran/43665] INTENT(IN) etc. optimization of calls: function annotations for noclobber/noescape arguments

2010-09-16 Thread burnus at gcc dot gnu dot org
--- Comment #26 from burnus at gcc dot gnu dot org 2010-09-16 21:30 --- Subject: Bug 43665 Author: burnus Date: Thu Sep 16 21:30:05 2010 New Revision: 164348 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164348 Log: 2010-09-16 Tobias Burnus bur...@net-b.de PR

[Bug c/45695] New: -O1 wrong-code by cmove

2010-09-16 Thread jan dot kratochvil at redhat dot com
is left uninitialized for not-equal comparison. Compilation flags: -O1 it passes = exit code 0 = with -O0 it fails = exit code 1 = with -O1 PASS: gcc (GCC) 4.4.5 20100916 (prerelease) FAIL: gcc (GCC) 4.5.2 20100916 (prerelease) PASS: gcc (GCC) 4.6.0 20100916 (experimental) FAIL: gcc-4.5.1-3.fc14

[Bug c/45695] -O1 wrong-code by cmove

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-09-16 21:57 --- Caused by my http://gcc.gnu.org/viewcvs?root=gccview=revrev=163555 change, so will look into it tomorrow. http://gcc.gnu.org/bugzilla/attachment.cgi?id=21560action=view doesn't break it, only the version that tries

[Bug preprocessor/45362] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread t66667 at gmail dot com
--- Comment #8 from t7 at gmail dot com 2010-09-16 21:58 --- (In reply to comment #4) (In reply to comment #2) http://gcc.gnu.org/bugs/#need Since this is a bug in the preprocessor it is hard to get a preprocessed source that causes a bug. This is very odd, because I

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Keywords||build, GC, ice-on-valid-code Summary|Dangling reference

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2010-09-16 22:00 --- GC issues normally don't show at different times depending on the layout of memory and such. Sometimes it depends on env variables being slightly different. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45362

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread t66667 at gmail dot com
--- Comment #10 from t7 at gmail dot com 2010-09-16 22:03 --- Program received signal SIGSEGV, Segmentation fault. gt_ggc_mx_cpp_macro (x_p=value optimized out) at gtype-desc.c:2078 2078 ((*x).params[i0]) ? HT_IDENT_TO_GCC_IDENT (HT_NODE (((*x).params[i0]))) : NULL;

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread t66667 at gmail dot com
--- Comment #11 from t7 at gmail dot com 2010-09-16 22:06 --- But too bad this file 'gtype-desc.c' is automatically generated at build time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45362

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2010-09-16 22:28 --- Can you try compiling it with --param ggc-min-expand=0 --param ggc-min-heapsize=0 ? Perhaps you'll trigger it then more reliably... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45362

[Bug preprocessor/45362] [4.6 Regression] Dangling reference about saved cpp_macro for push/pop macro

2010-09-16 Thread t66667 at gmail dot com
--- Comment #13 from t7 at gmail dot com 2010-09-16 22:33 --- (In reply to comment #12) Can you try compiling it with --param ggc-min-expand=0 --param ggc-min-heapsize=0 ? Perhaps you'll trigger it then more reliably... Without it: GGC heuristics: --param ggc-min-expand=30

[Bug web/43011] Upgrade gcc.gnu.org/bugzilla to Bugzilla 3.6

2010-09-16 Thread LpSolit at netscape dot net
--- Comment #49 from LpSolit at netscape dot net 2010-09-16 22:51 --- (In reply to comment #48) The current bugzilla has extra separating lines with the column names. The new installation does not. Yeah, it is so by design. Not something I'm going to reimplement. Note that we

[Bug rtl-optimization/45685] GCC optimizer for Intel x64 generates inefficient code

2010-09-16 Thread ekuznetsov at divxcorp dot com
--- Comment #3 from ekuznetsov at divxcorp dot com 2010-09-16 23:08 --- Created an attachment (id=21813) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21813action=view) Output of gcc -v -O3 gcc-bug.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45685

[Bug preprocessor/45696] New: Continuation character gets lost or not taken into account

2010-09-16 Thread John dot Tytgat at aaug dot net
Using gcc 4.6.0 20100915 trunk revision 164317 Using the preprocessor on following piece: --8-- error_identifiers: \ kErr_AlreadyWaitingForGDB(Already waiting for a GDB to connect) --8-- gcc -E gives me: --8-- # 1 test-preprocess.c # 1 built-in # 1 command-line # 1 test-preprocess.c

[Bug c++/45697] New: __restrict__ inconsistent in presence of typedefs

2010-09-16 Thread evan at chromium dot org
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 typedef unsigned char uint8_t; void f(uint8_t __restrict__ foo[]) { // no warnings/errors } void f2(unsigned char __restrict__ foo[]) { // doesn't compile:: // test.cc:6: error: ‘__restrict__’ qualifiers cannot be applied to ‘unsigned char’ } The two

[Bug preprocessor/45696] Continuation character gets lost or not taken into account

2010-09-16 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-09-16 23:55 --- C preprocessor is not a generic preprocessor. The continuation character is removed so the correct line number is used. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug preprocessor/45696] Continuation character gets lost or not taken into account

2010-09-16 Thread John dot Tytgat at aaug dot net
--- Comment #2 from John dot Tytgat at aaug dot net 2010-09-17 00:04 --- I don't understand why the continuation character should be removed. For the C parser that character is not special (only for the C preprocessor it is), nor it confuses its line number accountancy. Or am I

[Bug preprocessor/45696] Continuation character gets lost or not taken into account

2010-09-16 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-09-17 00:06 --- (In reply to comment #2) I don't understand why the continuation character should be removed. For the C parser that character is not special (only for the C preprocessor it is), nor it confuses its line number

  1   2   >