[Bug middle-end/45484] r163660 ICEs gcc.c-torture/execute/builtins/sprintf-chk.c compilation, -Os at -m32

2010-09-02 Thread ubizjak at gmail dot com


--- Comment #12 from ubizjak at gmail dot com  2010-09-02 06:05 ---
Created an attachment (id=21652)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21652action=view)
preprocessed source, fails with valgrind on linux

A non-sse4 sse2 capable host (core2 class) is needed to trigger valgrind
failure.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45484



[Bug lto/44899] --with-build-config=bootstrap-lto fails

2010-09-02 Thread andi-gcc at firstfloor dot org


--- Comment #6 from andi-gcc at firstfloor dot org  2010-09-02 07:01 ---
Cannot reproduce this anymore with the latest changes.


-- 

andi-gcc at firstfloor dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44899



[Bug fortran/45489] Default initialization of derived-type function result missing

2010-09-02 Thread burnus at gcc dot gnu dot org


--- Comment #3 from burnus at gcc dot gnu dot org  2010-09-02 07:31 ---
(In reply to comment #2)
 It seems to work if one adds
   if (!a-referenced  sym-value)
 gfc_set_sym_referenced (sym);

As gfortran does not use a static initializer via sym-value but an assignment,
this check does not work.

The following patch should work:

--- resolve.c   (revision 163759)
+++ resolve.c   (working copy)
@@ -9476,6 +9476,7 @@ apply_default_init (gfc_symbol *sym)
 return;

   build_init_assign (sym, init);
+  sym-attr.referenced = 1;
 }

 /* Build an initializer for a local integer, real, complex, logical, or
@@ -12148,7 +12149,6 @@ resolve_symbol (gfc_symbol *sym)
  described in 14.7.5, to those variables that have not already
  been assigned one.  */
   if (sym-ts.type == BT_DERIVED
-   sym-attr.referenced
sym-ns == gfc_current_ns
!sym-value
!sym-attr.allocatable
@@ -12158,6 +12158,7 @@ resolve_symbol (gfc_symbol *sym)

   if ((!a-save  !a-dummy  !a-pointer
!a-in_common  !a-use_assoc
+   (a-referenced || a-result)
!(a-function  sym != sym-result))
  || (a-dummy  a-intent == INTENT_OUT  !a-pointer))
apply_default_init (sym);
@@ -12166,10 +12167,7 @@ resolve_symbol (gfc_symbol *sym)
   if (sym-ts.type == BT_CLASS  sym-ns == gfc_current_ns
sym-attr.dummy  sym-attr.intent == INTENT_OUT
!sym-attr.pointer  !sym-attr.allocatable)
-{
-  apply_default_init (sym);
-  gfc_set_sym_referenced (sym);
-}
+apply_default_init (sym);

   /* If this symbol has a type-spec, check it.  */
   if (sym-attr.flavor == FL_VARIABLE || sym-attr.flavor == FL_PARAMETER


Extended test case

Note, I failed to create a failing dummy test case. Seemingly, sym-value is
set for the dummies below; thus, only the f part of the test case is failing
without the patch above.
--
program test_init
  implicit none
  integer, target :: tgt
  type A
integer, pointer:: p = null ()
integer:: i=3
  end type A
  type(A):: x, y(3)
  x=f()
  if (associated(x%p) .or. x%i /= 3) call abort ()
  y(1)%p = tgt
  y%i = 99
  call sub1(3,y)
  if (associated(y(1)%p) .or. any(y(:)%i /= 3)) call abort ()
  y(1)%p = tgt
  y%i = 99
  call sub2(y)
  if (associated(y(1)%p) .or. any(y(:)%i /= 3)) call abort ()
contains
 function f() result (fr)
type(A):: fr
 end function f
 subroutine sub1(n,x)
   integer :: n
   type(A), intent(out) :: x(n:n+2)
 end subroutine sub1
 subroutine sub2(x)
   type(A), intent(out) :: x(:)
 end subroutine sub2
end program test_init


-- 

burnus at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
   |dot org |org
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-09-02 07:31:51
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45489



[Bug middle-end/45458] [4.5/4.6 Regression] ICE: in add_labels_and_missing_jumps, at bb-reorder.c:1306 with-fnon-call-exceptions -freorder-blocks-and-partition -fprofile-use

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #4 from jakub at gcc dot gnu dot org  2010-09-02 07:57 ---
Subject: Bug 45458

Author: jakub
Date: Thu Sep  2 07:56:48 2010
New Revision: 163761

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163761
Log:
PR middle-end/45458
* bb-reorder.c (add_labels_and_missing_jumps): Treat
bbs ending with throwing insns like blocks ending with a call.
(fix_up_fall_thru_edges): Likewise.

* g++.dg/tree-prof/partition2.C: New test.

Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/tree-prof/partition2.C
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/bb-reorder.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45458



[Bug middle-end/45423] #pragma omp atomic on bool has issues

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #4 from jakub at gcc dot gnu dot org  2010-09-02 08:01 ---
Subject: Bug 45423

Author: jakub
Date: Thu Sep  2 08:00:55 2010
New Revision: 163762

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163762
Log:
Backport from mainline
2010-08-30  Jakub Jelinek  ja...@redhat.com

PR middle-end/45423
* gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
and TRUTH_{AND,OR,XOR}_EXPR.
* c-parser.c (c_parser_omp_atomic): Handle boolean
{PRE,POST}_{INC,DEC}REMENT.
cp/
* parser.c (cp_parser_omp_atomic): Handle boolean
{PRE,POST}_INCREMENT.
testsuite/
* gcc.dg/gomp/atomic-12.c: New test.
* gcc.dg/gomp/atomic-13.c: New test.
* gcc.dg/gomp/atomic-14.c: New test.
* g++.dg/gomp/atomic-11.C: New test.
* g++.dg/gomp/atomic-12.C: New test.
* g++.dg/gomp/atomic-13.C: New test.
* g++.dg/gomp/atomic-14.C: New test.

Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/gomp/atomic-11.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/gomp/atomic-12.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/gomp/atomic-13.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/gomp/atomic-14.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/gomp/atomic-12.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/gomp/atomic-13.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/gomp/atomic-14.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/c-parser.c
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/parser.c
branches/gcc-4_4-branch/gcc/gimplify.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45423



[Bug middle-end/45458] [4.5/4.6 Regression] ICE: in add_labels_and_missing_jumps, at bb-reorder.c:1306 with-fnon-call-exceptions -freorder-blocks-and-partition -fprofile-use

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #5 from jakub at gcc dot gnu dot org  2010-09-02 08:01 ---
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45458



[Bug middle-end/45423] #pragma omp atomic on bool has issues

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #5 from jakub at gcc dot gnu dot org  2010-09-02 08:02 ---
Fixed for GCC 4.4+.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45423



[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread boris at kolpackov dot net


--- Comment #44 from boris at kolpackov dot net  2010-09-02 08:23 ---
I just ran into the same issue building (native) mingw32 GCC 4.5.1 using a
x86-64 to mingw32 cross compiler. Adding -nostdinc++ to PCHFLAGS fixed this for
me as well. 

I also would like to point out that when building in this configuration the
target libraries (libgcc, libstc++) are built using the cross-compiler. Since
these libraries are internal to GCC (and can theoretically track the GCC
version), I think it is reasonable to expect that the cross and native
compilers are the exact same version of GCC. Using different versions in this
setup is just asking for trouble.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974



[Bug c++/45462] Bad optimization in -O3 sometimes

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #13 from rguenth at gcc dot gnu dot org  2010-09-02 09:07 
---
(In reply to comment #11)
 (In reply to comment #10)
  typedef my_unaligned_aliasing_uint32 uint32
  __attribute__((aligned(1),may_alias));
  
  inline __attribute__((__always_inline__)) uint32 READ_UINT32(const void 
  *ptr)
  {
return *(const my_unaligned_aliasing_uint32 *)ptr;
  }
 
 It does not:
 READ_UINT32:
 j   $31
 lw  $2,0($4)
 
 The aligned attribute is ignored there I think.

It is if the target is STRICT_ALIGNMENT (which of course is a bug, but
well ... and I happen to have a fix as well)

  memcpy produces:
 lbu $2,3($4)
 lbu $6,0($4)
 lbu $5,1($4)
 lbu $3,2($4)
 addiu   $sp,$sp,-16
 sb  $6,0($sp)
 sb  $5,1($sp)
 sb  $3,2($sp)
 sb  $2,3($sp)
 lw  $2,0($sp)
 j   $31
 addiu   $sp,$sp,16
 
 Which is bad and could be improved by using lwl/lwr.  I will file a bug about
 that.
 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45462



[Bug c/45493] -Wuninitialized does not warn

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-02 09:12 ---
It's just optimized to always print 10 and the maybe-uninitialized warning
code runs too late.

A dup of some other PR.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45493



[Bug c/45491] [4.6 Regression] FAIL: gcc.c-torture/compile/pr45085.c

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|FAIL: gcc.c-|[4.6 Regression] FAIL:
   |torture/compile/pr45085.c   |gcc.c-
   ||torture/compile/pr45085.c
   Target Milestone|--- |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45491



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

2010-09-02 Thread ebotcazou at gcc dot gnu dot org


--- Comment #2 from ebotcazou at gcc dot gnu dot org  2010-09-02 09:26 
---
We ran into this on SPARC/Solaris 8 as well.


-- 

ebotcazou at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-09-02 09:26:04
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44763



[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread paolo dot carlini at oracle dot com


--- Comment #45 from paolo dot carlini at oracle dot com  2010-09-02 09:42 
---
Paolo (Bonzini), Ralf, I'm going to add -nostdinc++ to PCHFLAGS in
include/Makefile.am. Are there any risks of regressions?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974



[Bug fortran/45489] Default initialization of derived-type function result missing

2010-09-02 Thread burnus at gcc dot gnu dot org


--- Comment #4 from burnus at gcc dot gnu dot org  2010-09-02 10:11 ---
Subject: Bug 45489

Author: burnus
Date: Thu Sep  2 10:11:39 2010
New Revision: 163767

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163767
Log:
2010-09-02  Tobias Burnus  bur...@net-b.de

PR fortran/45489
* resolve.c (apply_default_init): Mark symbol as referenced,
if it is initialized.
(resolve_symbol): Change intialized check for BT_DERIVED such
that also function results get initialized; remove now obsolete
gfc_set_sym_referenced for BT_CLASS.

2010-09-02  Tobias Burnus  bur...@net-b.de

PR fortran/45489
* gfortran.dg/initialization_27.f90: New.


Added:
trunk/gcc/testsuite/gfortran.dg/initialization_27.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45489



[Bug fortran/45494] New: [OOP] Wrong dummy argument not rejected

2010-09-02 Thread sfilippone at uniroma2 dot it
Hello,
The attached code is rejected by XLF 13.1 and NAG, but is accepted by gfortran. 
The problem is that the second instance of the call to the MOLD method passes
an object that is not type compatible.
==gfortran=
[sfili...@localhost bug24]$ gfortran -v 
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gnu46/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran : (reconfigured) ../gcc/configure
--prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.6.0 20100902 (experimental) (GCC) 
[sfili...@localhost bug24]$ gfortran -c bug24.f03 
[sfili...@localhost bug24]$ 
 xlf ===
bash-3.2$ which xlf
/opt/IBM/compilers/xlf13.1/usr/bin/xlf
bash-3.2$ xlf2003 -c bug24.f03 
** foo_mod   === End of Compilation 1 ===
** foo_2_mod   === End of Compilation 2 ===
** foo_3_mod   === End of Compilation 3 ===
bug24.f03, line 43.17: 1513-061 (S) Actual argument attributes do not match
those specified by an accessible explicit interface.
** bar   === End of Compilation 4 ===
1501-511  Compilation failed for file bug24.f03.


-- 
   Summary: [OOP] Wrong dummy argument not rejected
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sfilippone at uniroma2 dot it
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45494



[Bug fortran/45494] [OOP] Wrong dummy argument not rejected

2010-09-02 Thread sfilippone at uniroma2 dot it


--- Comment #1 from sfilippone at uniroma2 dot it  2010-09-02 10:16 ---
Created an attachment (id=21653)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21653action=view)
test-case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45494



[Bug middle-end/43760] [4.6 regression] New test failures

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2010-09-02 10:36 ---
So this is, after all, an assembler bug and not a GCC bug?


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43760



[Bug fortran/45495] New: ICE: For character function with length specifier dependent on non-present arg.

2010-09-02 Thread pmason at ricardo dot com
When compiling test.f90 file as follows:

 gfortran test.f90

I get the following error message:

-
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
-

Not sure if this is actually a bug as such. The code that causes this is
slightly bad. See sample file test.f90 attached.


-- 
   Summary: ICE: For character function with length specifier
dependent on non-present arg.
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pmason at ricardo dot com
 GCC build triplet: 4.6.0 20100828 (experimental)
  GCC host triplet: x86_64
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45495



[Bug target/43808] [4.6 Regression] -fipa-reference -fschedule-insns -fstrict-aliasing causes two gfortran check failures

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-02 10:41 ---
This looks like a genuine RTL alias problem, ipa-reference just causes x, y
and z to be marked as not aliased.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||alias
   Priority|P3  |P1
   Last reconfirmed|2010-07-23 11:47:07 |2010-09-02 10:41:30
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43808



[Bug debug/43937] [4.6 regression] FAIL: gcc.dg/guality/inline-params.c

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43937



[Bug testsuite/43957] [4.6 Regression] FAIL: gcc.dg/const-uniq-1.c scan-tree-dump-times gimple LC0 2

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43957



[Bug fortran/45495] ICE: For character function with length specifier dependent on non-present arg.

2010-09-02 Thread pmason at ricardo dot com


--- Comment #1 from pmason at ricardo dot com  2010-09-02 10:42 ---
Created an attachment (id=21654)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21654action=view)
Small testcase that causes ICE.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45495



[Bug testsuite/43959] [4.6 Regression] FAIL: gcc.dg/torture/builtin-cproj-1.c -O1 (test for excess errors)

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-02 10:46 ---
Please check whether

Index: gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c
===
--- gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c  (revision 163766)
+++ gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c  (working copy)
@@ -7,6 +7,8 @@

 /* { dg-do link } */
 /* { dg-add-options ieee } */
+/* { dg-add-options c99_runtime } */
+/* { dg-require-effective-target c99_runtime } */

 /* All references to link_error should go away at compile-time.  The
argument is the __LINE__ number.  It appears in the tree dump file

fixes this (and commit it then).  But I think the foldings should succeed
anyway, so please investigate.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43959



[Bug target/44031] [4.4/4.5/4.6 Regression] ice in subst_reloads, at reload.c:6327

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44031



[Bug lto/44150] [4.6 regression] g++.dg/lto/20081109 cp_lto_20081109_0.o-cp_lto_20081109_1.o

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44150



[Bug bootstrap/44335] [4.6 regression] gcc-4.6-20100529 java bootstrap failure on arm-linux-gnueabi

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #8 from rguenth at gcc dot gnu dot org  2010-09-02 10:47 ---
Can somebody ping the patch (or close this bug if it alread was applied)?


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44335



[Bug rtl-optimization/45454] [4.6 Regression] ICE: in verify_target_availability, at sel-sched.c:1614

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #2 from jakub at gcc dot gnu dot org  2010-09-02 10:48 ---
Why are you using -fvar-tracking-assignments together with selective
scheduling?
It is known not to work (and that's why it isn't enabled with -g).


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||aoliva at gcc dot gnu dot
   ||org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45454



[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||mrs at gcc dot gnu dot org
   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug bootstrap/44807] [4.6 Regression] bootstrap failure on i686 with BOOT_CFLAGS='-O3'

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44807



[Bug fortran/44882] Bogus types in references with mismatched commons

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #13 from rguenth at gcc dot gnu dot org  2010-09-02 10:51 
---
The bogus types are not a regression.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.6 Regression] Bogus types|Bogus types in references
   |in references with  |with mismatched commons
   |mismatched commons  |
   Target Milestone|4.6.0   |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44882



[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44937



[Bug tree-optimization/44964] [4.6 Regression] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:539) with -fkeep-inline-functions

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44964



[Bug bootstrap/44970] [4.6 regression] Revision 162270 failed to bootstrap

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 GCC target triplet||hppa64-*-*
   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44970



[Bug tree-optimization/44972] [4.6 Regression] ICE: in load_assign_lhs_subreplacements, at tree-sra.c:2475

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44972



[Bug rtl-optimization/45454] [4.6 Regression] ICE: in verify_target_availability, at sel-sched.c:1614

2010-09-02 Thread zsojka at seznam dot cz


--- Comment #3 from zsojka at seznam dot cz  2010-09-02 10:59 ---
I wasn't sure if I should open this bugreport, but the message isn't clear (I
didn't understand changes selective scheduling as causes crashes and/or
wrong code). I don't know it's broken.
The compiler asked me to do so - Please submit a full bug report...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45454



[Bug testsuite/44989] [4.6 regression] g++.dg/guality/redeclaration1.C

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2010-09-02 11:08 ---
I can't get anything but { dg-skip-if  { *-*-* } { -fwhopr -flto } {  }
} to work.  But then -O0 still fails for me.

13  int i = 42;^M
$1 = 0^M
$2 = 42^M
0 != 42

with gdb 7.1.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|middle-end  |testsuite
   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44989



[Bug c/45062] [4.6 Regression] Revision 162223 caused ICE at c-decl.c:4064

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45062



[Bug bootstrap/45067] [4.6 regression] ARM bootstrap failure: internal compiler error: in expand_widen_pattern_expr, at optabs.c:522

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #10 from rguenth at gcc dot gnu dot org  2010-09-02 11:09 
---
Needs a status update.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45067



[Bug tree-optimization/45085] [4.6 Regression] incorrect -Wuninitialized warning

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2010-09-02 11:11 ---
This is fixed now?


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45085



[Bug tree-optimization/45122] [4.6 Regression] -funsafe-loop-optimizations causes FAIL: gcc.c-torture/execute/pr27285.c execution

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45122



[Bug middle-end/45172] [4.6 Regression] internal compiler error: verify_flow_info failed

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45172



[Bug fortran/45186] [4.6 Regression] Gfortran 4.5.0 emits wrong linenumbers

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45186



[Bug tree-optimization/45199] [4.6 Regression] ICE in loop distribution at -O3

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45199



[Bug tree-optimization/45219] [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45219



[Bug tree-optimization/45220] [4.6 Regression] libjava/libltdl/ltdl.c:1272:1: internal compiler error: Segmenta

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45220



[Bug middle-end/45297] [4.6 Regression] ICE: in create_linear_expr_from_tree, at graphite-sese-to-poly.c:1210 with -Os -fgraphite-identity

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45297



[Bug tree-optimization/45301] [4.6 Regression] ICE: SIGSEGV in instantiate_scev_r (tree-scalar-evolution.c:3391) with -O2 -ftree-loop-distribution -fgraphite-identity

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45301



[Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45386



[Bug middle-end/45388] [4.6 Regression] Global constructor not found

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45388



[Bug tree-optimization/45412] [4.6 Regression] ICE: SIGSEGV in update_ssa (tree-flow-inline.h:479) with -O2 -fipa-cp-clone -ftracer

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #5 from rguenth at gcc dot gnu dot org  2010-09-02 11:24 ---
Maybe a similar issue, but this one is after DOM where we have stuff like

bb 7:
  # .MEM_8 = PHI .MEM_7(D)(2)
  # VUSE .MEM_5
  j.0_12 = j;
  goto bb 6;

after jump-threading supposedly, so indeed a quite similar case.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45412



[Bug middle-end/45484] r163660 ICEs gcc.c-torture/execute/builtins/sprintf-chk.c compilation, -Os at -m32

2010-09-02 Thread ubizjak at gmail dot com


--- Comment #13 from ubizjak at gmail dot com  2010-09-02 11:24 ---
(In reply to comment #12)

 A non-sse4 sse2 capable host (core2 class) is needed to trigger valgrind
 failure.

This is actually PR45386. Sorry for the noise...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45484



[Bug middle-end/45415] [4.6 Regression] ICE in partition_view_bitmap, at tree-ssa-live.c:334

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45415



[Bug middle-end/45422] [4.6 Regression] compile time increases 3x.

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45422



[Bug lto/45496] New: Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru
Compiling and linking these two files together should succeed.

/* BEGIN 1.cpp */
int callme();
int main(int argc, char** argv) { return callme(); }
/* END 1.cpp */

/* BEGIN 2.cpp */
templatetypename T struct holder { static int var; };
templatetypename T int holderT::var = 0;
int callme() { return holdervoid::var; }
/* END 2.cpp */

Indeed, compiling and linking them together without LTO succeeds. However, with
LTO, linking fails because of an undefined reference:

$ g++-4.5 -flto 1.cpp 2.cpp
/tmp/ccORg22M.lto.o: In function `main':
ccsrvz5g.o:(.text+0x10): undefined reference to `_Z6callmev'
collect2: ld returned 1 exit status


-- 
   Summary: Static members of templates cause LTO to omit required
code
   Product: gcc
   Version: 4.5.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexey at feldgendler dot ru
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug bootstrap/45444] [4.6 regression] ARM bootstrap failure: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat]

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45444



[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-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||ice-checking, ice-on-valid-
   ||code
   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45453



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #1 from alexey at feldgendler dot ru  2010-09-02 11:27 ---
Created an attachment (id=21655)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21655action=view)
TC (file 1)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #2 from alexey at feldgendler dot ru  2010-09-02 11:27 ---
Created an attachment (id=21656)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21656action=view)
TC (2.cpp)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug rtl-optimization/45472] [4.5/4.6 Regression] ICE: in move_op_ascend, at sel-sched.c:6124 with -fselective-scheduling2

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45472



[Bug c++/45473] [4.6 Regression] ICE: in dfs_walk_once, at cp/search.c:1659

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45473



[Bug lto/45480] [4.6 Regression] New LTO failures

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #3 from rguenth at gcc dot gnu dot org  2010-09-02 11:31 ---
Seems this is fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45480



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #3 from alexey at feldgendler dot ru  2010-09-02 11:31 ---
Output of gcc-4.5 -v 1.cpp 2.cpp:

$ g++-4.5 -v -flto 1.cpp 2.cpp
Using built-in specs.
COLLECT_GCC=g++-4.5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.5.1-2'
--with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.5 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --with-plugin-ld=ld.gold --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.1 (Debian 4.5.1-2) 
COLLECT_GCC_OPTIONS='-v' '-flto' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/cc1plus -quiet -v -D_GNU_SOURCE 1.cpp
-quiet -dumpbase 1.cpp -mtune=generic -march=x86-64 -auxbase 1 -version -flto
-o /tmp/ccTWKMfh.s
GNU C++ (Debian 4.5.1-2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
warning: GMP header version 4.3.2 differs from library version 4.2.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory /usr/local/include/x86_64-linux-gnu
ignoring nonexistent directory
/usr/lib/gcc/x86_64-linux-gnu/4.5.1/../../../../x86_64-linux-gnu/include
ignoring nonexistent directory /usr/include/x86_64-linux-gnu
#include ... search starts here:
#include ... search starts here:
 /usr/include/c++/4.5
 /usr/include/c++/4.5/x86_64-linux-gnu
 /usr/include/c++/4.5/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/include
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/include-fixed
 /usr/include
End of search list.
GNU C++ (Debian 4.5.1-2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
warning: GMP header version 4.3.2 differs from library version 4.2.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 088ccc0edd14ed2073ed25e2d6963850
COLLECT_GCC_OPTIONS='-v' '-flto' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 as -V -Qy --64 -o /tmp/cctwxZZ0.o /tmp/ccTWKMfh.s
GNU assembler version 2.20.51 (x86_64-linux-gnu) using BFD version (GNU
Binutils for Debian) 2.20.51-system.20100813
COLLECT_GCC_OPTIONS='-v' '-flto' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/cc1plus -quiet -v -D_GNU_SOURCE 2.cpp
-quiet -dumpbase 2.cpp -mtune=generic -march=x86-64 -auxbase 2 -version -flto
-o /tmp/ccTWKMfh.s
GNU C++ (Debian 4.5.1-2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
warning: GMP header version 4.3.2 differs from library version 4.2.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory /usr/local/include/x86_64-linux-gnu
ignoring nonexistent directory
/usr/lib/gcc/x86_64-linux-gnu/4.5.1/../../../../x86_64-linux-gnu/include
ignoring nonexistent directory /usr/include/x86_64-linux-gnu
#include ... search starts here:
#include ... search starts here:
 /usr/include/c++/4.5
 /usr/include/c++/4.5/x86_64-linux-gnu
 /usr/include/c++/4.5/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/include
 /usr/lib/gcc/x86_64-linux-gnu/4.5.1/include-fixed
 /usr/include
End of search list.
GNU C++ (Debian 4.5.1-2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
warning: GMP header version 4.3.2 differs from library version 4.2.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 088ccc0edd14ed2073ed25e2d6963850
COLLECT_GCC_OPTIONS='-v' '-flto' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 as -V -Qy --64 -o /tmp/ccBnOlNK.o /tmp/ccTWKMfh.s
GNU assembler version 2.20.51 (x86_64-linux-gnu) using BFD version (GNU
Binutils for Debian) 2.20.51-system.20100813
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.5.1/:/usr/lib/gcc/x86_64-linux-gnu/4.5.1/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.5.1/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.5.1/:/usr/lib/gcc/x86_64-linux-gnu/4.5.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-linux-gnu/4.5.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-flto' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 

[Bug fortran/45495] ICE: For character function with length specifier dependent on non-present arg

2010-09-02 Thread burnus at gcc dot gnu dot org


--- Comment #2 from burnus at gcc dot gnu dot org  2010-09-02 11:32 ---
Confirm: It compiles with g95 and NAG f95, but ICEs with gfortran (4.1 to 4.6)
and a couple of other compilers.

My feeling is that the program is invalid - at least in case the actual
argument is not present.

The program compiles (and runs) if one passes an actual argument - thus the
problem only occurs very late during folding.

The best probably would be to add a warning (default on?) and some conditions
around the expression such that it remains valid for folding even if the
argument is not present.

Due to the complexity of fixing it for invalid programs - without having a
chance to print an error message at compile time, I have reduced the priority
to minor.

Valgrind shows:

==5725== Invalid read of size 8
==5725==at 0x896636: get_frame_type (tree-nested.c:223)
==5725==by 0x896BFF: get_chain_decl (tree-nested.c:330)
==5725==by 0x899ED5: get_nonlocal_debug_decl (tree-nested.c:842)
==5725==by 0x89A7C1: convert_nonlocal_reference_op (tree-nested.c:920)
==5725==by 0x9D0B66: walk_tree_1 (tree.c:10174)
==5725==by 0x70F96B: walk_gimple_op (gimple.c:1356)


-- 

burnus at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|critical|minor
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||ice-on-invalid-code
  Known to fail||4.2.1 4.1.2 4.3.4 4.4.0
   ||4.5.1 4.6.0
   Last reconfirmed|-00-00 00:00:00 |2010-09-02 11:32:28
   date||
Summary|ICE: For character function |ICE: For character function
   |with length specifier   |with length specifier
   |dependent on non-present|dependent on non-present arg
   |arg.|


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45495



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #4 from alexey at feldgendler dot ru  2010-09-02 11:35 ---
Created an attachment (id=21657)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21657action=view)
Assembly for 1.cpp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #5 from alexey at feldgendler dot ru  2010-09-02 11:35 ---
Created an attachment (id=21658)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21658action=view)
Assembly for 2.cpp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug other/45497] New: bogus warning at -O0 (control reaches end of non-void function).

2010-09-02 Thread pluto at agmk dot net
% LANG=C g++ 0.ii -Wall -Werror -c
cc1plus: warnings being treated as errors
0.ii: In member function 'int excp::AgentWrap::send(const std::string, const
std::string, int, bool, int)':
0.ii:71622:3: error: control reaches end of non-void function


-- 
   Summary: bogus warning at -O0 (control reaches end of non-void
function).
   Product: gcc
   Version: 4.5.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
 GCC build triplet: x86_64-gnu-linux
  GCC host triplet: x86_64-gnu-linux
GCC target triplet: x86_64-gnu-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45497



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2010-09-02 11:38 ---
It works for me with 4.5.0, 4.5.1 and current trunk.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug other/45497] bogus warning at -O0 (control reaches end of non-void function).

2010-09-02 Thread pluto at agmk dot net


--- Comment #1 from pluto at agmk dot net  2010-09-02 11:38 ---
Created an attachment (id=21659)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21659action=view)
testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45497



[Bug rtl-optimization/45498] New: Optimisations fail above arbitrary level of complexity

2010-09-02 Thread jonathan dot morton at movial dot com
Slightly increasing the complexity of a function can disproportionately
increase the size and runtime of the generated code.  This appears to be due to
the optimisers giving up on code blocks above a certain abstract size, and is
particularly severe on PPC and ARM, but is observable on ia32 and amd64 as
well.

This is a general problem which affects any large function, and has done since
at least gcc3 days - I first encountered it when trying to use Altivec
intrinsics.  In some cases manually moving a function call *out* of a loop
results in 4x the runtime, which is the opposite of normal expectations.

Attached is an example which demonstrates poor code generated after a long
series of inlining and dead code elimination stages.  Demonstration is on
PPC32, but the same example suffices for ARMv7-A as well.  An amd64 target
produces reasonable code for this example, but a fairly small complexity
increase causes a similar collapse.

The output is two functions, one generated from the tower of inlining, and the
other (with a manual_ prefix) after the same optimisations were performed
manually.  The quality of the latter is clearly better than the former, which
contains the following sequence in the inner loop:

fmuls 0,12,0
stw 4,32(1)
stw 3,16(1)
stw 3,20(1)
stfs 0,8(1)
lwz 4,8(1)
stw 4,24(1)
li 4,0
stw 4,36(1)
lfs 0,24(1)
fmadds 0,9,0,10

All of the stw's in the above fragment are dead, except the stw 4,24(1) which
merely shuffles the value from f0 through two memory locations and back to f0. 
The li 4,0 also demonstrates very poor register allocation, since r4 already
contains zero before this fragment.  In the manual variant, the fmuls is
immediately followed by the fmadds.

The same source file run through Clang on amd64 produces virtually identical
output for the two versions.


-- 
   Summary: Optimisations fail above arbitrary level of complexity
   Product: gcc
   Version: 4.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jonathan dot morton at movial dot com
 GCC build triplet: powerpc-linux-gnu
  GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45498



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #7 from alexey at feldgendler dot ru  2010-09-02 11:38 ---
Created an attachment (id=21660)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21660action=view)
Assembly after LTO for entire program


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #8 from alexey at feldgendler dot ru  2010-09-02 11:40 ---
Attached assembler files generated for 1.cpp and 2.cpp, as well as the
assembler file generated by the LTO pass. As can be seen from the latter,
_Z6callmev is referenced but not defined.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug rtl-optimization/45498] Optimisations fail above arbitrary level of complexity

2010-09-02 Thread jonathan dot morton at movial dot com


--- Comment #1 from jonathan dot morton at movial dot com  2010-09-02 11:40 
---
Created an attachment (id=21661)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21661action=view)
Preprocessed source of test case.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45498



[Bug rtl-optimization/45498] Optimisations fail above arbitrary level of complexity

2010-09-02 Thread jonathan dot morton at movial dot com


--- Comment #2 from jonathan dot morton at movial dot com  2010-09-02 11:41 
---
Compiler output:

$ gcc -v -save-temps -mcpu=G3 -Wall -O3 -ffast-math -c isolated-src-a8-u.c
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/gcc-4.4.3/configure --prefix=/usr
--bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.3
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.3
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.3/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.3/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include/g++-v4
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--enable-altivec --disable-fixed-point --without-ppl --without-cloog
--enable-nls --without-included-gettext --with-system-zlib --disable-werror
--enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp
--enable-libgomp
--with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.4.3/python
--enable-checking=release --disable-libgcj --enable-objc-gc
--enable-languages=c,c++,objc,obj-c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.3-r2 p1.2'
Thread model: posix
gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mcpu=G3' '-Wall' '-O3' '-ffast-math'
'-c'
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/cc1 -E -quiet -v -D__unix__
-D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux
-Asystem=unix -Asystem=posix isolated-src-a8-u.c -D_FORTIFY_SOURCE=2
-msecure-plt -mcpu=G3 -Wall -ffast-math -O3 -fpch-preprocess -o
isolated-src-a8-u.i
ignoring nonexistent directory /usr/local/include
ignoring nonexistent directory
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/../../../../powerpc-unknown-linux-gnu/include
#include ... search starts here:
#include ... search starts here:
 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include
 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mcpu=G3' '-Wall' '-O3' '-ffast-math'
'-c'
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/cc1 -fpreprocessed
isolated-src-a8-u.i -msecure-plt -quiet -dumpbase isolated-src-a8-u.c -mcpu=G3
-auxbase isolated-src-a8-u -O3 -Wall -version -ffast-math -o
isolated-src-a8-u.s
GNU C (Gentoo 4.4.3-r2 p1.2) version 4.4.3 (powerpc-unknown-linux-gnu)
compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version
2.4.2-p3.
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=63683
Compiler executable checksum: a8f353e88d0b3fd0803d2b037b563de0
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mcpu=G3' '-Wall' '-O3' '-ffast-math'
'-c'

/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/../../../../powerpc-unknown-linux-gnu/bin/as
-mppc -many -V -Qy -o isolated-src-a8-u.o isolated-src-a8-u.s
GNU assembler version 2.20.1 (powerpc-unknown-linux-gnu) using BFD version (GNU
Binutils) 2.20.1.20100303
COMPILER_PATH=/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/../../../../powerpc-unknown-linux-gnu/bin/
LIBRARY_PATH=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/../../../../powerpc-unknown-linux-gnu/lib/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mcpu=G3' '-Wall' '-O3' '-ffast-math'
'-c'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45498



[Bug driver/44076] -MT target behaves different as -MTtarget (w/o space)

2010-09-02 Thread jsm28 at gcc dot gnu dot org


--- Comment #3 from jsm28 at gcc dot gnu dot org  2010-09-02 11:42 ---
Subject: Bug 44076

Author: jsm28
Date: Thu Sep  2 11:41:22 2010
New Revision: 163770

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163770
Log:
PR driver/44076
* opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
alias_target fields.
* opt-functions.awk (opt_sanitized_name): Don't handle
finline-limit=, Wlarger-than= and ftemplate-depth= specially.
* optc-gen.awk: Generate alias fields.
* opth-gen.awk: Explicitly give values for OPT_* enum constants.
Don't generate such constants for aliases.
* opts-common.c (generate_canonical_option): New.
(decode_cmdline_option): Handle aliases.  Use
generate_canonical_option for known options instead of copying the
input option text.
* doc/options.texi (Alias): Document.
* common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
fstack-check, specs): Mark as aliases.
* gcc.c (driver_handle_option): Canonicalize -L options to joined
arguments.
(driver_handle_option): Don't handle OPT_specs.
* opts.c (common_handle_option): Don't handle options marked as
aliases.
(enable_warning_as_error): Handle aliases.
* stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
OPT_Wlarger_than_eq.
* tree-optimize.c (tree_rest_of_compilation): Use
OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.

c-family:
* c.opt (Wcomments, Werror-implicit-function-declaration,
ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
aliases.
* c-common.c (option_codes): Use OPT_Wcomment instead of
OPT_Wcomments.
* c-opts.c (warning_as_error_callback, c_common_handle_option):
Don't handle options marked as aliases.

java:
* lang.opt (CLASSPATH, bootclasspath, classpath, encoding,
fCLASSPATH=): Mark as Java options and as aliases.
* jvspec.c (jvgenmain_spec): Don't handle -fCLASSPATH*.
(lang_specific_driver): Don't handle options marked as aliases.
* lang.c (java_handle_option): Don't handle OPT_fCLASSPATH_.

testsuite:
* gcc.dg/cpp/warn-comments-3.c: New.  Based on warn-comments-2.c
but using -Werror=comment.
* gcc.dg/cpp/warn-comments.c, gcc.dg/cpp/warn-comments-2.c: Adjust
expected error messages.

Added:
trunk/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/common.opt
trunk/gcc/doc/options.texi
trunk/gcc/gcc.c
trunk/gcc/java/ChangeLog
trunk/gcc/java/jvspec.c
trunk/gcc/java/lang.c
trunk/gcc/java/lang.opt
trunk/gcc/opt-functions.awk
trunk/gcc/optc-gen.awk
trunk/gcc/opth-gen.awk
trunk/gcc/opts-common.c
trunk/gcc/opts.c
trunk/gcc/opts.h
trunk/gcc/stor-layout.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-comments.c
trunk/gcc/tree-optimize.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076



[Bug driver/44076] -MT target behaves different as -MTtarget (w/o space)

2010-09-02 Thread jsm28 at gcc dot gnu dot org


--- Comment #4 from jsm28 at gcc dot gnu dot org  2010-09-02 11:46 ---
Fixed for 4.6.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
  Known to work||4.6.0
 Resolution||FIXED
   Target Milestone|--- |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076



[Bug driver/12448] -MT / -MQ don't behave as documented.

2010-09-02 Thread jsm28 at gcc dot gnu dot org


--- Comment #13 from jsm28 at gcc dot gnu dot org  2010-09-02 11:48 ---
This was fixed by the commit shown in the logs for this bug.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||4.3.0
 Resolution||FIXED
   Target Milestone|--- |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12448



[Bug testsuite/44989] [4.6 regression] g++.dg/guality/redeclaration1.C

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #5 from jakub at gcc dot gnu dot org  2010-09-02 11:51 ---
This isn't a testsuite bug, but lto/whopr bug, and IMHO quite severe, it
affects debugging even at -O0.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44989



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #9 from alexey at feldgendler dot ru  2010-09-02 11:57 ---
Output of lto1 without -quiet:

$ /usr/lib/gcc/x86_64-linux-gnu/4.5.1/lto1 1.o 2.o 
Performing interprocedural optimizations
 whole-program inlineAssembling functions:
 main
Execution times (seconds)
 TOTAL :   0.00 0.00 0.01  
1138 kB


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #10 from alexey at feldgendler dot ru  2010-09-02 11:59 ---
Created an attachment (id=21662)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21662action=view)
-fdump-ipa-cgraph from LTO pass


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug bootstrap/45444] [4.6 regression] ARM bootstrap failure: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat]

2010-09-02 Thread mikpe at it dot uu dot se


--- Comment #5 from mikpe at it dot uu dot se  2010-09-02 12:00 ---
Patch has been posted:
http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00048.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45444



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #11 from alexey at feldgendler dot ru  2010-09-02 12:04 ---
Attached cgraph dump from /usr/lib/gcc/x86_64-linux-gnu/4.5.1/lto1
-fdump-ipa-cgraph 1.o 2.o. For some reason, though, lto1 creates only one dump
file, and that only covers its first input infile.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread alexey at feldgendler dot ru


--- Comment #12 from alexey at feldgendler dot ru  2010-09-02 12:13 ---
Could it be specific to x86_64-linux-gnu?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug debug/45419] -fcompare-debug failure at -O3

2010-09-02 Thread aoliva at gcc dot gnu dot org


--- Comment #12 from aoliva at gcc dot gnu dot org  2010-09-02 12:21 ---
'been looking into this as well.  cp/pt.c -fcompare-debug fails for me on
x86_64-linux-gnu.

I'm not sure yet why we get different different types for the integer_csts in
operand 0 of MEM_REFs, but it occurred to me that we could add a flag to
operand_equal_p to check that all types are the same.  Ideally, we'd have
corresponding flags for hashing as well, but not necessarly for correctness.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45419



[Bug tree-optimization/45412] [4.6 Regression] ICE: SIGSEGV in update_ssa (tree-flow-inline.h:479) with -O2 -fipa-cp-clone -ftracer

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2010-09-02 12:31 ---
This fixes the 2nd testcase for me:

Index: ipa-split.c
===
--- ipa-split.c (revision 163772)
+++ ipa-split.c (working copy)
@@ -993,8 +993,8 @@ split_function (struct split_point *spli
{
  gimple stmt = gsi_stmt (gsi);
  gcc_assert (!is_gimple_reg (gimple_phi_result (stmt)));
- mark_sym_for_renaming (SSA_NAME_VAR (PHI_RESULT (stmt)));
- gsi_remove (gsi, false);
+ mark_virtual_phi_result_for_renaming (stmt);
+ remove_phi_node (gsi, true);
}
 }
   /* When we pass aorund the value, use existing return block.  */


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45412



[Bug fortran/44541] [OOP] wrong code for polymorphic variable with INTENT(OUT)/Alloc w/ MOLD

2010-09-02 Thread janus at gcc dot gnu dot org


--- Comment #8 from janus at gcc dot gnu dot org  2010-09-02 12:34 ---
Subject: Bug 44541

Author: janus
Date: Thu Sep  2 12:34:26 2010
New Revision: 163773

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163773
Log:
2010-09-02  Janus Weil  ja...@gcc.gnu.org

PR fortran/44541
* resolve.c (resolve_symbol): Correct check for attributes of CLASS
variable.

Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44541



[Bug tree-optimization/45412] [4.6 Regression] ICE: SIGSEGV in update_ssa (tree-flow-inline.h:479) with -O2 -fipa-cp-clone -ftracer

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #7 from rguenth at gcc dot gnu dot org  2010-09-02 12:34 ---
And the first one.  Mine.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-08-26 09:42:55 |2010-09-02 12:34:55
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45412



[Bug lto/44989] [4.6 regression] g++.dg/guality/redeclaration1.C

2010-09-02 Thread jakub at gcc dot gnu dot org


--- Comment #6 from jakub at gcc dot gnu dot org  2010-09-02 12:37 ---
Seems to be a bug in free_lang_data_in_block, which throws away the
DECL_EXTERNAL decl from BLOCK_VARS, eventhough it is obviously very much
needed. In fact, is there ever a case where what free_lang_data_in_block does
is desirable?


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|testsuite   |lto


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44989



[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread bonzini at gnu dot org


--- Comment #46 from bonzini at gnu dot org  2010-09-02 12:44 ---
Subject: Re:  [4.3/4.4/4.5/4.6 Regression] cannot build
 gcc-4.4.1: fenv_t has not been declared

 Paolo (Bonzini), Ralf, I'm going to add -nostdinc++ to PCHFLAGS in
 include/Makefile.am. Are there any risks of regressions?

I don't think there is risk of regressions, but I'm not very familiar
with where PCH is used.

However, I'm told it is not very much used.  Alternatively we could
time how much time the stdc++ PCH actually saves (if anything?) during
make check, and kill it altogether for 4.6.

Paolo


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974



[Bug fortran/45494] [OOP] Wrong dummy argument not rejected

2010-09-02 Thread janus at gcc dot gnu dot org


--- Comment #2 from janus at gcc dot gnu dot org  2010-09-02 12:55 ---
Confirmed.


-- 

janus at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||accepts-invalid
   Last reconfirmed|-00-00 00:00:00 |2010-09-02 12:55:02
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45494



[Bug lto/45496] Static members of templates cause LTO to omit required code

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #13 from rguenth at gcc dot gnu dot org  2010-09-02 12:56 
---
It works for me on x86_64-linux-gnu.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496



[Bug middle-end/45415] [4.6 Regression] ICE in partition_view_bitmap, at tree-ssa-live.c:334

2010-09-02 Thread matz at gcc dot gnu dot org


--- Comment #3 from matz at gcc dot gnu dot org  2010-09-02 12:58 ---
Mine.  I'm adding some checking code too.


-- 

matz at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |matz at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-08-26 14:19:59 |2010-09-02 12:58:29
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45415



[Bug target/45070] Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2)

2010-09-02 Thread ibolton at gcc dot gnu dot org


--- Comment #15 from ibolton at gcc dot gnu dot org  2010-09-02 13:05 
---
Subject: Bug 45070

Author: ibolton
Date: Thu Sep  2 13:05:30 2010
New Revision: 163774

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163774
Log:
2010-09-02  Ian Bolton  ian.bol...@arm.com

Backport from mainline
2010-09-01  Ian Bolton  ian.bol...@arm.com

* Makefile.in (tree-switch-conversion.o): Update dependencies.

2010-08-19  Ian Bolton  ian.bol...@arm.com

PR target/45070
* config/arm/arm.c (arm_output_epilogue): Ensure that return
value of size 1-3 is handled correctly.

* gcc.c-torture/execute/pr45070.c: New.

2010-08-19  Ian Bolton  ian.bol...@arm.com

* tree-switch-conversion.c (gen_inbound_check): Ensure that the
type for the conditional has wide enough range.

* g++.dg/pr44328.C: New test.

2010-08-07  Marcus Shawcroft  marcus.shawcr...@arm.com

* config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
(SUBWORD_BOOL_CAS): Likewise.
(SUBWORD_SYNC_OP): Likewise.
(SUBWORD_TEST_AND_SET): Likewise.
(FETCH_AND_OP_WORD): Parenthesise INF_OP
(SUBWORD_SYNC_OP): Likewise.
(OP_AND_FETCH_WORD): Likewise.

* lib/target-supports.exp: (check_effective_target_sync_int_long):
Add arm*-*-linux-gnueabi.
(check_effective_target_sync_char_short): Likewise.

Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/pr44328.C
  - copied unchanged from r163367, trunk/gcc/testsuite/g++.dg/pr44328.C
branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/execute/pr45070.c
  - copied unchanged from r163367,
trunk/gcc/testsuite/gcc.c-torture/execute/pr45070.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/Makefile.in
branches/gcc-4_5-branch/gcc/config/arm/arm.c
branches/gcc-4_5-branch/gcc/config/arm/linux-atomic.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/lib/target-supports.exp
branches/gcc-4_5-branch/gcc/tree-switch-conversion.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070



[Bug middle-end/45497] [4.5/4.6 Regression] bogus warning at -O0 (control reaches end of non-void function).

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-02 13:08 ---
Confirmed.  This is EH lowering.

bb 49:
  finally_tmp.226 = 0;
  std::auto_ptrYAMI::Message::~auto_ptr (msg);
  switch (finally_tmp.226) default: L60, case 1: L61

...

L61:
  return;

L60:
  return D.122655;

but the first return w/o value is introduced during GIMPLE lowering.

  std::auto_ptrYAMI::Message::auto_ptr (msg, 0B);
  try
{
...
}
  finally
{
  std::auto_ptrYAMI::Message::~auto_ptr (msg);
}
  goto D.122659;
...
  goto D.122673;
  D.122659:
  return;
  D.122673:
  return D.122655;


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
  Component|other   |middle-end
 Ever Confirmed|0   |1
   Keywords||diagnostic
   Last reconfirmed|-00-00 00:00:00 |2010-09-02 13:08:56
   date||
Summary|bogus warning at -O0|[4.5/4.6 Regression] bogus
   |(control reaches end of non-|warning at -O0 (control
   |void function). |reaches end of non-void
   ||function).
   Target Milestone|--- |4.5.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45497



[Bug tree-optimization/44328] switch/case optimization produces an invalid lookup table index

2010-09-02 Thread ibolton at gcc dot gnu dot org


--- Comment #34 from ibolton at gcc dot gnu dot org  2010-09-02 13:10 
---
(In reply to comment #33)
 Yes, 4.4.5 and maybe 4.4.6 is planned.
 

(In reply to comment #31)
 (In reply to comment #30)
  (In reply to comment #28)
   Hm, no, I was too quick pruning my inbox.  The patch apparently has
   not been applied to the 4.5 branch.
   
  
  It's on its way.  I've been testing in conjunction with a couple of other
  backports and ran into some issues unrelated to this patch.  I'm hoping to 
  be
  ready to apply to 4.5 tomorrow.
  
 
 OK, reassigning to you then.  Please do not forget to add a hunk
 adding the new dependence of tree-switch-conversion.o in Makefile.in.
 
 Thanks.
 

I have just committed the backport to 4.5 branch.

I will start on the 4.4 backport now, but I will need to do the usual testing
before it is ready ...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44328



[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #7 from rguenth at gcc dot gnu dot org  2010-09-02 13:42 ---
Subject: Bug 44937

Author: rguenth
Date: Thu Sep  2 13:42:25 2010
New Revision: 163775

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163775
Log:
2010-09-02  Richard Guenther  rguent...@suse.de

PR tree-optimization/44937
PR tree-optimization/45412
* ipa-split.c (split_function): Properly remove PHI nodes.

* g++.dg/opt/pr45412.C: New testcase.
* gcc.c-torture/compile/pr45412.c: Likewise.
* gcc.c-torture/compile/pr44937.c: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/opt/pr45412.C
trunk/gcc/testsuite/gcc.c-torture/compile/pr44937.c
trunk/gcc/testsuite/gcc.c-torture/compile/pr45412.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-split.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44937



[Bug tree-optimization/45412] [4.6 Regression] ICE: SIGSEGV in update_ssa (tree-flow-inline.h:479) with -O2 -fipa-cp-clone -ftracer

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #8 from rguenth at gcc dot gnu dot org  2010-09-02 13:42 ---
Subject: Bug 45412

Author: rguenth
Date: Thu Sep  2 13:42:25 2010
New Revision: 163775

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163775
Log:
2010-09-02  Richard Guenther  rguent...@suse.de

PR tree-optimization/44937
PR tree-optimization/45412
* ipa-split.c (split_function): Properly remove PHI nodes.

* g++.dg/opt/pr45412.C: New testcase.
* gcc.c-torture/compile/pr45412.c: Likewise.
* gcc.c-torture/compile/pr44937.c: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/opt/pr45412.C
trunk/gcc/testsuite/gcc.c-torture/compile/pr44937.c
trunk/gcc/testsuite/gcc.c-torture/compile/pr45412.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-split.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45412



[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #8 from rguenth at gcc dot gnu dot org  2010-09-02 13:43 ---
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44937



[Bug tree-optimization/45412] [4.6 Regression] ICE: SIGSEGV in update_ssa (tree-flow-inline.h:479) with -O2 -fipa-cp-clone -ftracer

2010-09-02 Thread rguenth at gcc dot gnu dot org


--- Comment #9 from rguenth at gcc dot gnu dot org  2010-09-02 13:43 ---
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45412



[Bug c++/45479] Exceptions not delivered properly after thread cancellation

2010-09-02 Thread mikedalpee at enginsol dot com


--- Comment #11 from mikedalpee at enginsol dot com  2010-09-02 13:43 
---
Created an attachment (id=21663)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21663action=view)
Workaround for the problem.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45479



  1   2   3   >