[Bug fortran/36214] Wrong simplification of BOZ constants

2008-09-11 Thread domob at gcc dot gnu dot org
--- Comment #8 from domob at gcc dot gnu dot org 2008-09-11 07:29 --- Subject: Bug 36214 Author: domob Date: Thu Sep 11 07:28:18 2008 New Revision: 140264 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140264 Log: 2008-09-11 Daniel Kraft <[EMAIL PROTECTED]> PR fortran

[Bug target/37382] [4.4 Regression] ICE in extract_insn: ) 0)

2008-09-11 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-09-11 07:34 --- Subject: Bug 37382 Author: jakub Date: Thu Sep 11 07:33:23 2008 New Revision: 140265 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140265 Log: PR target/37382 * expmed.c (extract_low_bits): Av

[Bug target/37382] [4.4 Regression] ICE in extract_insn: ) 0)

2008-09-11 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2008-09-11 07:40 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug other/37474] [4.4 Regression] mpfr related memory corruption, part 2

2008-09-11 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++/36391] Compilation never ends

2008-09-11 Thread rhorstmann at securecomputing dot com
--- Comment #5 from rhorstmann at securecomputing dot com 2008-09-11 07:49 --- I think this is the same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29512 So should be fixed in 4.3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36391

[Bug c++/37146] [4.4 Regression] Invalid types with COND_EXPR

2008-09-11 Thread dodji at gcc dot gnu dot org
--- Comment #9 from dodji at gcc dot gnu dot org 2008-09-11 07:56 --- @Jakub: * I think (x ? c.i : c.j) = y; should be valid. because we then fall into the item 4 of the spec, PDF page 115, section 5.16: Conditional operator which reads: "If the second and third operands are lvalues an

[Bug other/37474] [4.4 Regression] mpfr related memory corruption, part 2

2008-09-11 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-09-11 08:19 --- vect_analyze_slp_instance/vect_supported_load_permutation_p/vect_supported_slp_permutation_p are buggy. 0x00a51e93 in vect_supported_slp_permutation_p (instance=0x7fffe4bfafd8) at ../../gcc/tree-vect-analyze.c:

[Bug other/37474] [4.4 Regression] mpfr related memory corruption, part 2

2008-09-11 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=37474

[Bug other/37474] [4.4 Regression] vect_supported_slp_permutation_p memory corruption

2008-09-11 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-09-11 08:22 --- It has absolutely nothing to do with mpfr (neither did the other memory corruption), no idea where you got it from. -- jakub at gcc dot gnu dot org changed: What|Removed |Added -

[Bug other/37474] [4.4 Regression] vect_supported_slp_permutation_p memory corruption

2008-09-11 Thread irar at il dot ibm dot com
-- irar at il dot ibm dot com changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |irar at il dot ibm dot com |dot org

[Bug libstdc++/37475] New: codecvt::do_in/do_out functions return "ok" when the output sequence has zero length

2008-09-11 Thread tsyvarev at ispras dot ru
The following member functions of the class codecvt result in(stateT& state, const externT* from, const externT* from_end, const externT*& from_next, internT* to, internT* to_limit, internT*& to_next) const and result out(stateT& state, const internT* from, const internT* from_end, const internT

[Bug libstdc++/37475] codecvt::do_in/do_out functions return "ok" when the output sequence has zero length

2008-09-11 Thread tsyvarev at ispras dot ru
--- Comment #1 from tsyvarev at ispras dot ru 2008-09-11 09:35 --- Created an attachment (id=16291) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16291&action=view) test.cpp -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37475

[Bug other/37474] [4.4 Regression] vect_supported_slp_permutation_p memory corruption

2008-09-11 Thread irar at il dot ibm dot com
--- Comment #4 from irar at il dot ibm dot com 2008-09-11 09:58 --- Testing: Index: tree-vect-analyze.c === --- tree-vect-analyze.c (revision 140274) +++ tree-vect-analyze.c (working copy) @@ -3200,6 +3200,10 @@ vect_suppor

[Bug libstdc++/37477] New: std::uncaught_exception() returns wrong value after entering terminate() in some cases

2008-09-11 Thread tsyvarev at ispras dot ru
The description of uncaught_exception() throw() function states (18.6.4): Returns: true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected() due to the throw; or after entering termina

[Bug libstdc++/37477] std::uncaught_exception() returns wrong value after entering terminate() in some cases

2008-09-11 Thread tsyvarev at ispras dot ru
--- Comment #1 from tsyvarev at ispras dot ru 2008-09-11 10:18 --- Created an attachment (id=16292) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16292&action=view) test.tar Reproduce situations when terminate is called implicitly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug libstdc++/37477] std::uncaught_exception() returns wrong value after entering terminate() in some cases

2008-09-11 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2008-09-11 10:29 --- Note this is a libsupc++ issue, we don't have a specific Bugzilla component, but as a matter of fact the code has been mostly implemented and maintained by different people than the libstdc++ maintainers... I'm

[Bug libstdc++/37475] codecvt::do_in/do_out functions return "ok" when the output sequence has zero length

2008-09-11 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2008-09-11 10:31 --- http://gcc.gnu.org/ml/libstdc++/2008-09/msg00090.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37475

[Bug c/37476] New: Initialising a union member of a struct without braces

2008-09-11 Thread stl at koffein dot net
Compiling: typedef struct t { char *d; union { int aa; float ab; } a; } T; int f() { T s = {"one", 1}; return s.a.aa; } with -Wall --std=c99 yields: structinit.c: In function 'f': structinit.c:10: warning: missing braces around initializer structinit.c:10: wa

[Bug libstdc++/37478] New: undefined reference to `ctype const& use_facet

2008-09-11 Thread chris dot fairles at gmail dot com
Compiling anything I get: undefined reference to `std::ctype const& std::use_facet >(std::locale const&)@GLIBCXX_3.4' -- Summary: undefined reference to `ctype const& use_facet>(locale const&)' Product: gcc Version: 4.4.0 Status:

[Bug libstdc++/37478] undefined reference to `ctype const& use_facet

2008-09-11 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-09-11 11:12 --- Hey Chris, it's something on your side, because as you can see on testresults nobody has any problem (myself included ;) -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug bootstrap/37441] [4.4 regression] dwarf2 unwind info patches produce undefined symbols

2008-09-11 Thread ro at techfak dot uni-bielefeld dot de
--- Comment #4 from ro at techfak dot uni-bielefeld dot de 2008-09-11 11:23 --- Subject: Re: [4.4 regression] dwarf2 unwind info patches produce undefined symbols jakub at gcc dot gnu dot org writes: > references undefined label. I'm afraid at least until some support is added > to

[Bug c++/37480] New: GCC Allows null-references in C++

2008-09-11 Thread rarut at mail dot ru
It's possible to create null references which contradicts the standard: Assume simple structs: template struct null_val { null_val(T t = T()) : value(t) {} T value; }; template struct null_ref : null_val {}; Now it's possible to use 'null_ref().value' which is null reference! --

[Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i

2008-09-11 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2008-09-11 11:37 --- I cannot reproduce it on ppc/intel Darwin9, however the following code: PROGRAM bug IMPLICIT NONE DOUBLE PRECISION r COMMON /91/ r DOUBLE PRECISION x x = 1000 write(6

[Bug web/37479] New: -fdwarf2-cfi-asm is undocumented

2008-09-11 Thread ro at gcc dot gnu dot org
I just noticed that the new -fdwarf2-cfi-asm option isn't documented in gcc/doc/invoke.texi. Filing as component other since there seems to be noc doc component. -- Summary: -fdwarf2-cfi-asm is undocumented Product: gcc Version: 4.4.0 Status: UNCONFI

[Bug tree-optimization/36881] [4.4 Regression] Creating runtime relocations for code which does not need it

2008-09-11 Thread jamborm at gcc dot gnu dot org
--- Comment #5 from jamborm at gcc dot gnu dot org 2008-09-11 11:42 --- I guess this is mine. -- jamborm at gcc dot gnu dot org changed: What|Removed |Added Assig

[Bug c++/37480] GCC Allows null-references in C++

2008-09-11 Thread rarut at mail dot ru
--- Comment #1 from rarut at mail dot ru 2008-09-11 11:45 --- Generally reference members when used like this seem to behaive like pointers: - have default constructor (making null reference) - store garbage when when left uninitialized -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug objc/37460] [4.4 Regression]: objc.dg/super-class-2.m objc.dg/zero-link-1.m objc.dg/zero-link-2.m ICE

2008-09-11 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2008-09-11 11:45 --- I see the same errors (a lot of them) on Darwin (see also http://gcc.gnu.org/ml/gcc-testresults/2008-09/msg00938.html). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37460

[Bug c++/37480] GCC Allows null-references in C++

2008-09-11 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2008-09-11 12:01 --- This is already fixed in mainline and 4_3-branch. I bet this PR is a duplicate... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37480

[Bug tree-optimization/37474] [4.4 Regression] vect_supported_slp_permutation_p memory corruption

2008-09-11 Thread irar at gcc dot gnu dot org
--- Comment #5 from irar at gcc dot gnu dot org 2008-09-11 12:09 --- Subject: Bug 37474 Author: irar Date: Thu Sep 11 12:08:01 2008 New Revision: 140276 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140276 Log: PR tree-optimization/37474 * tree-vect-analyze.c (v

[Bug middle-end/37448] [4.3 Regression] gcc 4.3.1 cannot compile big function

2008-09-11 Thread hubicka at gcc dot gnu dot org
--- Comment #10 from hubicka at gcc dot gnu dot org 2008-09-11 12:36 --- Subject: Bug 37448 Author: hubicka Date: Thu Sep 11 12:34:53 2008 New Revision: 140281 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140281 Log: PR middle-end/37448 * tree-inline.c (add_le

[Bug middle-end/37448] [4.3 Regression] gcc 4.3.1 cannot compile big function

2008-09-11 Thread hubicka at gcc dot gnu dot org
--- Comment #11 from hubicka at gcc dot gnu dot org 2008-09-11 12:40 --- Subject: Bug 37448 Author: hubicka Date: Thu Sep 11 12:38:57 2008 New Revision: 140284 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140284 Log: PR middle-end/37448 * cgraph.c (cgraph_cre

[Bug fortran/36599] [4.3 regression] induct.f90 polyhedron benchmark in 4.3.1 on Intel

2008-09-11 Thread pault at gcc dot gnu dot org
--- Comment #17 from pault at gcc dot gnu dot org 2008-09-11 13:11 --- I agree with Dominique's last comment and have closed this PR accordingly. Cheers Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/37474] [4.4 Regression] vect_supported_slp_permutation_p memory corruption

2008-09-11 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-09-11 13:24 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass

2008-09-11 Thread bonzini at gnu dot org
--- Comment #15 from bonzini at gnu dot org 2008-09-11 13:46 --- Uros, does your comment #11 apply also to SSE registers (Yi), which could alleviate for PR 37437, or only to MMX (Ym)? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37364

[Bug debug/34037] [4.2/4.3/4.4 Regression] Bounds for VLAs not emitted into debuginfo

2008-09-11 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 fortran/37472] bad output on default-format write of double in common block with -m64 flag i

2008-09-11 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2008-09-11 14:27 --- Jerry, do you know why gfortran 4.3/4.4 prints one trailing zero more for 1000 than for other numbers? 4.2 used the same number of trailing digits. 1000.0 1001. for print *, 1000.0 print *, 1001.0

[Bug c/37476] Initialising a union member of a struct without braces

2008-09-11 Thread jsm28 at gcc dot gnu dot org
--- Comment #1 from jsm28 at gcc dot gnu dot org 2008-09-11 14:46 --- This is a stylistic warning from -Wall that the code is potentially confusing, not that the code is invalid. If you don't want such warnings, don't use -Wall, or use -Wno-missing-braces. -- jsm28 at gcc dot gnu do

[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2008-09-11 Thread schwab at suse dot de
--- Comment #3 from schwab at suse dot de 2008-09-11 15:19 --- Caused by: 2007-07-23 Peter Bergner <[EMAIL PROTECTED]> Jakub Jelinek <[EMAIL PROTECTED]> PR middle-end/PR28690 Can be reproduced with gcc.c-torture/execute/20060420-1.c when compiled with -O2. --

[Bug middle-end/37053] [4.3/4.4 regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2008-09-11 Thread bonzini at gnu dot org
--- Comment #4 from bonzini at gnu dot org 2008-09-11 15:29 --- I think there is a missing constrain_operands somewhere, because in (define_insn "*addsi3_internal" [(set (match_operand:SI 0 "nonimmediate_operand" "=m,?a,?a,d,a") (plus:SI (match_operand:SI 1 "general_operand" "

[Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser

2008-09-11 Thread tbm at cyrius dot com
--- Comment #6 from tbm at cyrius dot com 2008-09-11 15:36 --- Adding Adam Nemet since I see the segfault on a Cavium Octeon based machine (from Movidis). -- tbm at cyrius dot com changed: What|Removed |Added ---

[Bug c/37481] New: -pedantic accepts flexible array member = "string" initialization

2008-09-11 Thread h dot b dot furuseth at usit dot uio dot no
struct Foo { int i; char a[]; } foo = { 1, "" }; // No warning struct Bar { int i; char a[]; } bar = { 1, {0} }; // Warning Line 1 passes -pedantic, but C99 6.7.2.1p16 says it is invalid: Flexible array members are ignored except with ',', '->', and for aligning the size of the struct. Related

[Bug fortran/37319] [4.4 Regression] FAIL: gfortran.dg/function_kinds_5.f90

2008-09-11 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2008-09-11 16:33 --- At r140286 with the patch in http://gcc.gnu.org/ml/fortran/2008-09/msg00210.html, the failure is gone!-( -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37319

[Bug c++/37146] [4.4 Regression] Invalid types with COND_EXPR

2008-09-11 Thread dodji at gcc dot gnu dot org
--- Comment #10 from dodji at gcc dot gnu dot org 2008-09-11 16:40 --- Created an attachment (id=16293) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16293&action=view) another patch that fixes the problem. This patch proposes a fix for the problem and complies with my comment htt

[Bug middle-end/37372] [graphite] SCoP detection splits bbs / Define SCoPs with single entry and exit edge

2008-09-11 Thread spop at gcc dot gnu dot org
--- Comment #2 from spop at gcc dot gnu dot org 2008-09-11 16:47 --- Jan proposed to switch to a different algorithm for detecting scops based on the fact that scops are single entry, single exit regions. Instead of detecting scops from the innermost to the outermost, we should instead

[Bug target/37482] New: [4.4 Regression] definition in block 51 follows the use for SSA_NAME with -maltivec

2008-09-11 Thread tbm at cyrius dot com
With current trunk on powerpc (revision 140291) (sid)2635:[EMAIL PROTECTED]: ..4.3-2008-09-11-r140291/gcc] ./cc1 -quiet -O3 -maltivec ~/mednafen-convert.i sexyal/convert.c: In function 'SexiALI_Convert': sexyal/convert.c:42: error: definition in block 51 follows the use for SSA_NAME: vect_var_.1

[Bug target/37483] New: [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread tbm at cyrius dot com
With current trunk on powerpc (revision 140291): (sid)2644:[EMAIL PROTECTED]: ..4.3-2008-09-11-r140291/gcc] ./cc1plus -quiet -O3 -maltivec ~/gdc-4.2-constfold.ii ../../src/gcc/d/dmd/constfold.c: In function 'Expression* Ushr(Type*, Expression*, Expression*)': ../../src/gcc/d/dmd/constfold.c:635: i

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2008-09-11 16:55 --- Created an attachment (id=16294) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16294&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37483

[Bug target/37482] [4.4 Regression] definition in block 51 follows the use for SSA_NAME with -maltivec

2008-09-11 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2008-09-11 16:55 --- Created an attachment (id=16295) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16295&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37482

[Bug c/35712] decimal float literal constant zero loses significant trailing zeroes

2008-09-11 Thread janis at gcc dot gnu dot org
-- janis at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reco

[Bug c/35712] decimal float literal constant zero loses significant trailing zeroes

2008-09-11 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2008-09-11 16:56 --- Fixed in mainline. It's not a regression so the fix has not been applied to 4.3. -- janis at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread tbm at cyrius dot com
--- Comment #2 from tbm at cyrius dot com 2008-09-11 16:57 --- (gdb) run -quiet -O3 -maltivec ~/gdc-4.2-constfold.ii Starting program: /home/tbm/tmp/gcc/4.3-2008-09-11-r140291/gcc/cc1plus -quiet -O3 -maltivec ~/gdc-4.2-constfold.ii Program received signal SIGSEGV, Segmentation fault. no

[Bug c/37481] -pedantic accepts flexible array member = "string" initialization

2008-09-11 Thread jsm28 at gcc dot gnu dot org
-- jsm28 at gcc dot gnu dot org changed: What|Removed |Added OtherBugsDependingO||16989 nThis|| Sta

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread tbm at cyrius dot com
--- Comment #3 from tbm at cyrius dot com 2008-09-11 17:08 --- Created an attachment (id=16296) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16296&action=view) Preprocessed source Here's another testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37483

[Bug c/37484] [graphite] Valgrind gives invalid reads/writes on CPU2006 403.gcc benchmark

2008-09-11 Thread harsha dot jagasia at amd dot com
--- Comment #1 from harsha dot jagasia at amd dot com 2008-09-11 17:15 --- Created an attachment (id=16297) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16297&action=view) Fixes invalid reads/writes for cpu2006 403.gcc benchmark. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass

2008-09-11 Thread ubizjak at gmail dot com
--- Comment #16 from ubizjak at gmail dot com 2008-09-11 17:33 --- (In reply to comment #15) > Uros, does your comment #11 apply also to SSE registers (Yi), which could > alleviate for PR 37437, or only to MMX (Ym)? Comment #11 is also true for Yi SSE registers (for TARGET_INTER_UNIT_MO

[Bug c/37484] New: [graphite] Valgrind gives invalid reads/writes on CPU2006 403.gcc benchmark

2008-09-11 Thread harsha dot jagasia at amd dot com
Valgrind report --- valgrind --leak-check=yes ./cc1 -DSPEC_CPU -DNDEBUG -I ~/WORK/benchmarks/cpu2006/benchspec/CPU2006/403.gcc/src -O2 -fgraphite -floop-block -DSPEC_CPU_LP64 ~/WORK/benchmarks/cpu2006/benchspec/CPU2006/403.gcc/src/c-common.c ==23086== Memcheck, a memory er

[Bug target/35620] ICE passing dereferenced pointer to _Decimal32

2008-09-11 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2008-09-11 17:35 --- Fixed on mainline. -- janis at gcc dot gnu dot org changed: What|Removed |Added Status|A

[Bug libstdc++/37475] [DR 382] codecvt::do_in/do_out functions return "ok" when the output sequence has zero length

2008-09-11 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last re

[Bug libstdc++/37475] [DR 382] codecvt::do_in/do_out functions return "ok" when the output sequence has zero length

2008-09-11 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|NEW |SUSPENDED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37475

[Bug target/37096] conditional evaluation incorrect with -O3

2008-09-11 Thread ubizjak at gmail dot com
--- Comment #7 from ubizjak at gmail dot com 2008-09-11 17:57 --- There is a runtime difference between -O1 and -O2: g++ -O1 pr37096.cpp main.o ./a.out nz: 3 g++ -O2 pr37096.cpp main.o ./a.out nz: 3 98 Target: x86_64-unknown-linux-gnu gcc version 4.4.0 20080911 (experimental) [trunk

[Bug target/37096] conditional evaluation incorrect with -O3

2008-09-11 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2008-09-11 18:16 --- Hm, with -O2 -fno-strict-aliasing, it works fine. Is there an aliasing issue involved? short Transform4x4(short *pMatrix) { __m128i r4, r5; __m128i r0 = _mm_loadl_epi64((__m128i *)(pMatrix + 0 * 16));

[Bug fortran/37199] array assignment from function writes out of bounds

2008-09-11 Thread domob at gcc dot gnu dot org
--- Comment #8 from domob at gcc dot gnu dot org 2008-09-11 19:15 --- Subject: Bug 37199 Author: domob Date: Thu Sep 11 19:13:59 2008 New Revision: 140296 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140296 Log: 2008-09-08 Daniel Kraft <[EMAIL PROTECTED]> PR fortran

[Bug fortran/37199] array assignment from function writes out of bounds

2008-09-11 Thread domob at gcc dot gnu dot org
--- Comment #9 from domob at gcc dot gnu dot org 2008-09-11 19:15 --- Fixed on 4.3 branch. -- domob at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug fortran/37355] Request runtime preconnected buffer option for gfortran

2008-09-11 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2008-09-11 19:30 --- (In reply to comment #2) > Yes, FLUSH works, but > > * I don't think it was part of standards until 2003, > * I need to place it several places in my code, > * I really didn't want gfortran specific code if I coul

[Bug fortran/18584] --std=f would be nice

2008-09-11 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2008-09-11 19:48 --- Do we really want to do this any more? I nobody objects, I'll close this as WONTFIX in a few days. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18584

[Bug fortran/37468] error when combining -i8 with .F files

2008-09-11 Thread charles at schwieters dot org
--- Comment #2 from charles at schwieters dot org 2008-09-11 19:51 --- thanks for pointing that out. -fdefault-integer-8 works fine. However, the -i8 behavior *is* confusing: % gfortran -c -i8 t.f % gfortran -c -i8 t.F cc1: error: unrecognized command line option "-i8" i.e. it *seems*

[Bug c/37485] New: [graphite] Disconnecting exit edge in process of code generation

2008-09-11 Thread harsha dot jagasia at amd dot com
In tranlate_clast when clast stmt is a stmt_user, we can end up disconnecting the edge that is the exit_edge of the scop that is transformed. This state creates problems because the exit_edge no longer has a destination. Hence when after translate_clast, the exit_edge is redirected with redirect_ed

[Bug middle-end/37485] [graphite] Disconnecting exit edge in process of code generation

2008-09-11 Thread harsha dot jagasia at amd dot com
--- Comment #1 from harsha dot jagasia at amd dot com 2008-09-11 20:05 --- Created an attachment (id=16298) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16298&action=view) Reduced test case for bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37485

[Bug ada/35576] Ada HW Interrupt Task Enhancement

2008-09-11 Thread joel at gcc dot gnu dot org
--- Comment #19 from joel at gcc dot gnu dot org 2008-09-11 20:08 --- Now merged on SVN trunk. Closing. Thanks Arnaud. -- joel at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug ada/21327] gnat_ugn.texi invalid @direntry

2008-09-11 Thread joel at gcc dot gnu dot org
--- Comment #4 from joel at gcc dot gnu dot org 2008-09-11 20:12 --- ping. Still not fixed as of 20080910 [trunk revision 140246] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21327

[Bug target/37482] [4.4 Regression] definition in block 51 follows the use for SSA_NAME with -maltivec

2008-09-11 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug tree-optimization/37482] [4.4 Regression] definition in block 51 follows the use for SSA_NAME with -maltivec

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-09-11 20:23 --- Reducing ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37482

[Bug tree-optimization/37482] [4.4 Regression] definition in block 51 follows the use for SSA_NAME with -maltivec

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-09-11 20:30 --- Nice reduced testcase: void SexiALI_Convert(void *vdest, void *vsrc, unsigned int frames) { unsigned int x; short *src = vsrc; unsigned char *dest = vdest; for(x=0;xhttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=374

[Bug fortran/18584] --std=f would be nice

2008-09-11 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2008-09-11 20:49 --- > Do we really want to do this any more? > I nobody objects, I'll close this as WONTFIX in a few days. I think some are still interested in F; however, as it is does not support the new Fortran 2003/2008 features, I

[Bug fortran/37486] New: alignment of data in COMMON blocks

2008-09-11 Thread janus at gcc dot gnu dot org
Currently, gfortran automatically aligns data in COMMON blocks, as in the following example: implicit none integer(kind=4) :: n real(kind=8) :: p common /foo/ n,p end This gives the warning: COMMON 'foo' at (1) requires 4 bytes of padding at start This automatic padding can result in unexpected

[Bug c++/37487] New: invalid return by value optimization

2008-09-11 Thread khoaduynguyen at gmail dot com
For return by value optimization, instead of calling the copy constructor or the assignment operator, gcc decides to optimize and push the address of the lhs of the expression into the rhs. Foo createFoo() { Foo f2; return f2; } int main(){ Foo f1 = createFoo(); return 0; } OPTIMIZED TO void

[Bug c++/37487] invalid return by value optimization

2008-09-11 Thread khoaduynguyen at gmail dot com
--- Comment #1 from khoaduynguyen at gmail dot com 2008-09-11 21:00 --- Created an attachment (id=16299) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16299&action=view) Reproduction -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37487

[Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser

2008-09-11 Thread nemet at gcc dot gnu dot org
--- Comment #7 from nemet at gcc dot gnu dot org 2008-09-11 21:00 --- I was able to reproduce this with 140295. Assigning to myself. -- nemet at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/37487] invalid return by value optimization

2008-09-11 Thread khoaduynguyen at gmail dot com
--- Comment #2 from khoaduynguyen at gmail dot com 2008-09-11 21:02 --- -bash-3.1$ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checki

[Bug c++/37487] invalid return by value optimization

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-09-11 21:02 --- This is allowed by the standard. THe compiler can elide constructors as defined by the C++ standard. If you want not this behavior use -fno-elide-constructors. -- pinskia at gcc dot gnu dot org changed:

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-11 21:15 --- Here is a simple reduced testcase for the first one: typedef unsigned long long int uint64_t; uint64_t Ushr( unsigned count,int i) { uint64_t value; if (i==0) value = (value & 0x) >> count; return

[Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser

2008-09-11 Thread nemet at gcc dot gnu dot org
--- Comment #8 from nemet at gcc dot gnu dot org 2008-09-11 21:46 --- It's caused by this http://gcc.gnu.org/ml/gcc-patches/2008-08/msg02376.html. In this hunk: @@ -1901,7 +1904,8 @@ noce_try_sign_mask (struct noce_if_info INSN_B which can happen for e.g. conditional stores to

[Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2008-09-11 21:48 --- I think this is the same bug as PR 37483. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37395

[Bug target/37483] [4.4 Regression] Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-09-11 22:11 --- And the other: typedef struct { short rbearing; short width; } XCharStruct; typedef long I32; typedef I32 Bool; typedef unsigned long Handle; typedef struct _Point { int x; int y; } Point, *PPoint; static P

[Bug c/37488] New: register allocation spills floats needlessly

2008-09-11 Thread jstrother9109 at gmail dot com
In the provided testcase, gcc spills an xmm register onto the stack even though there is only one register being used. This does not occur with similar code using general purpose registers. const void* test(int action, void* ptr) { static void * const addrs[] = {&&L1, &&L2}; if (action =

[Bug c/37488] register allocation spills floats needlessly

2008-09-11 Thread jstrother9109 at gmail dot com
--- Comment #1 from jstrother9109 at gmail dot com 2008-09-11 23:15 --- Created an attachment (id=16300) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16300&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37488

[Bug rtl-optimization/37489] New: In cse.c:fold_rtx(), "true" is represented in floating-point modes as const_true_rtx, if FLOAT_STORE_FLAG_VALUE is undefined.

2008-09-11 Thread raksit at gcc dot gnu dot org
Consider the c++ code: -- class StatVal { public: StatVal(double ev, double va) : m(ev), v(va) {} StatVal(const StatVal& other) : m(other.m), v(other.v) {} StatVal& operator*=(const StatVal& other) { double A = m == 0 ? 1.0 : v / (m * m); double B = other.m ==

[Bug rtl-optimization/37490] [4.4 Regression] IRA causes FP code to have more spills

2008-09-11 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37490

[Bug rtl-optimization/37490] [4.4 Regression] IRA causes FP code to have more spills

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-11 23:47 --- I forgot to mention, not choosing a FLOAT_REG causes a reload to happen which did not happen before. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37490

[Bug target/37489] In cse.c:fold_rtx(), "true" is represented in floating-point modes as const_true_rtx, if FLOAT_STORE_FLAG_VALUE is undefined.

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-11 23:53 --- This is a target bug really since it is SSE which needs to set FLOAT_STORE_FLAG_VALUE correctly. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/37424] [4.4 regression] IRA merge breaks Solaris/SPARC bootstrap

2008-09-11 Thread hjl at gcc dot gnu dot org
--- Comment #4 from hjl at gcc dot gnu dot org 2008-09-11 23:53 --- Subject: Bug 37424 Author: hjl Date: Thu Sep 11 23:52:12 2008 New Revision: 140303 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140303 Log: 2008-09-11 Eric Botcazou <[EMAIL PROTECTED]> PR rtl-optimi

[Bug rtl-optimization/37490] [4.4 Regression] IRA causes FP code to have more spills

2008-09-11 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-09-11 23:54 --- The exact revision I was using is: gcc version 4.4.0 20080910 (experimental) [trunk revision 140245] (GCC) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37490

[Bug target/37489] In cse.c:fold_rtx(), "true" is represented in floating-point modes as const_true_rtx, if FLOAT_STORE_FLAG_VALUE is undefined.

2008-09-11 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-09-12 00:45 --- (In reply to comment #1) > This is a target bug really since it is SSE which needs to set > FLOAT_STORE_FLAG_VALUE correctly. > How can you define FLOAT_STORE_FLAG_VALUE only for float/double when SSE math is used?

[Bug target/37489] In cse.c:fold_rtx(), "true" is represented in floating-point modes as const_true_rtx, if FLOAT_STORE_FLAG_VALUE is undefined.

2008-09-11 Thread raksit at gcc dot gnu dot org
--- Comment #3 from raksit at gcc dot gnu dot org 2008-09-12 01:08 --- (In reply to comment #1) > This is a target bug really since it is SSE which needs to set > FLOAT_STORE_FLAG_VALUE correctly. > In that case, I think simplify-rtx.c:simplify_relational_operation() is being overly co

[Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i

2008-09-11 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-09-12 03:52 --- I will have to explore a bit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37472

[Bug bootstrap/37424] [4.4 regression] IRA merge breaks Solaris/SPARC bootstrap

2008-09-11 Thread ebotcazou at gcc dot gnu dot org
--- Comment #5 from ebotcazou at gcc dot gnu dot org 2008-09-12 05:26 --- Subject: Bug 37424 Author: ebotcazou Date: Fri Sep 12 05:24:41 2008 New Revision: 140312 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140312 Log: PR rtl-optimization/37424 * ira-color.c

[Bug tree-optimization/37392] [4.4 Regression] Segfault in verify_ssa: !gimple_nop_p (stmt)

2008-09-11 Thread tbm at cyrius dot com
--- Comment #6 from tbm at cyrius dot com 2008-09-12 05:28 --- (In reply to comment #4) > This works now with revision 140075. Maybe the reduced one works now, but the original preprocessed source still shows the problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37392

[Bug bootstrap/37086] [4.4 Regression] GCC 3.4 miscompiles trunk (for cross compiling)

2008-09-11 Thread nightstrike at gmail dot com
--- Comment #14 from nightstrike at gmail dot com 2008-09-12 05:47 --- I just wanted to confirm that Joesph's patch does indeed work (thank you!), and ask that the status of this PR change from INVALID to FIXED. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37086