[Bug bootstrap/49986] Compilation of cross GCC (Linux -> AIX) fails

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49986

--- Comment #2 from Andrew Pinski  2012-01-01 
08:41:43 UTC ---
>reference to `.__emutls_get_address'

This means libgcc's emultls.o is not being linked in for some reason.


[Bug rtl-optimization/50588] gcc produce incorrect inlined code with -march=athlon -O2

2012-01-01 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588

Eric Botcazou  changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot
   ||gnu.org
Summary|gcc produce bad inlined |gcc produce incorrect
   |code with -march=athlon -O2 |inlined code with
   ||-march=athlon -O2

--- Comment #17 from Eric Botcazou  2012-01-01 
09:24:56 UTC ---
Let's avoid bad, it's ambiguous, and use incorrect/wrong or inefficient/poor.


[Bug tree-optimization/51704] [4.7 Regression] ICE: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:620 with -O3 -fno-tree-copy-prop -fno-tree-fre

2012-01-01 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51704

Ira Rosen  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |irar at il dot ibm.com
   |gnu.org |

--- Comment #2 from Ira Rosen  2012-01-01 09:43:12 UTC 
---
Created attachment 26210
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26210
patch


[Bug c++/51722] Options "-g3" or "-ggdb3" or "-g3 -gdwarf-2" and other "-g..level3" - internal compiler error

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51722

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2012-01-01
 Ever Confirmed|0   |1

--- Comment #1 from Paolo Carlini  2012-01-01 
11:10:45 UTC ---
Please provide all the required information, in particular the preprocessed
.ii: http://gcc.gnu.org/bugs/#need


[Bug middle-end/50643] Suppress cc1: warnings being treated as errors

2012-01-01 Thread jg at jguk dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50643

--- Comment #2 from Jon Grant  2012-01-01 11:58:05 UTC ---
differentiation between:

* error
* promoted-to-error

No visibility for the user as they appear the same in the output. Is the
differentiation needed?


[Bug rtl-optimization/51069] [4.7 Regression] ICE in verify_loop_structure, at cfgloop.c:1559

2012-01-01 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51069

--- Comment #7 from Jan Hubicka  2012-01-01 
12:07:42 UTC ---
Author: hubicka
Date: Sun Jan  1 12:07:34 2012
New Revision: 182767

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182767
Log:
PR rtl-optimization/51069
* cfgloopmanip.c (remove_path): Removing path making irreducible
region unconditional makes BB part of the region.
* gcc.c-torture/compile/pr51069.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr51069.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgloopmanip.c
trunk/gcc/testsuite/ChangeLog


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread andyg1001 at hotmail dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

--- Comment #2 from andyg1001 at hotmail dot co.uk 2012-01-01 13:05:50 UTC ---
I have double-checked and, yes, it does work in the latest revision from trunk
- sorry, I ought to have checked that first.


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

Paolo Carlini  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #3 from Paolo Carlini  2012-01-01 
13:10:33 UTC ---
No problem, thanks.


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

--- Comment #4 from paolo at gcc dot gnu.org  
2012-01-01 13:31:51 UTC ---
Author: paolo
Date: Sun Jan  1 13:31:48 2012
New Revision: 182768

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182768
Log:
2012-01-01  Paolo Carlini  

PR c++/51723
* g++.dg/cpp0x/constexpr-delegating2.C: New.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #5 from Paolo Carlini  2012-01-01 
13:34:18 UTC ---
By the way, this is most likely a duplicate of PR51526, but an additional
testcase for this recent feature cannot hurt. Thanks again.


[Bug c++/51556] Bizarre member template access control errors

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51556

--- Comment #6 from Paolo Carlini  2012-01-01 
13:40:08 UTC ---
If we can figure out a small testcase we can add it and close the issue as
fixed for 4.7.0.


[Bug c++/51543] terrible diagnostic for wrong type when expected class or namespace

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51543

--- Comment #1 from Paolo Carlini  2012-01-01 
13:43:08 UTC ---
cpp0x/parse1.C seems related


[Bug c++/51543] terrible diagnostic for wrong type when expected class or namespace

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51543

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-01-01
Version|unknown |4.7.0
 Ever Confirmed|0   |1


[Bug tree-optimization/51704] [4.7 Regression] ICE: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:620 with -O3 -fno-tree-copy-prop -fno-tree-fre

2012-01-01 Thread irar at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51704

--- Comment #3 from irar at gcc dot gnu.org 2012-01-01 13:52:21 UTC ---
Author: irar
Date: Sun Jan  1 13:52:13 2012
New Revision: 182769

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182769
Log:

PR tree-optimization/51704
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
a use is inside the basic block or loop before accessing its
vect info.


Added:
trunk/gcc/testsuite/gfortran.dg/vect/no-fre-no-copy-prop-O3-pr51704.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/vect/vect.exp
trunk/gcc/tree-vect-slp.c


[Bug c++/51633] [c++0x] [4.6/4.7 Regression] ICE with invalid constexpr constructor

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51633

--- Comment #3 from Paolo Carlini  2012-01-01 
13:54:44 UTC ---
Bah...


[Bug rtl-optimization/51069] [4.7 Regression] ICE in verify_loop_structure, at cfgloop.c:1559

2012-01-01 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51069

Jan Hubicka  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #8 from Jan Hubicka  2012-01-01 
15:01:57 UTC ---
Fixed.


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread andyg1001 at hotmail dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

--- Comment #6 from andyg1001 at hotmail dot co.uk 2012-01-01 15:25:50 UTC ---
As a suggestion, the test case added in commit
http://gcc.gnu.org/viewcvs?view=revision&revision=182768 should have the
additional two lines:

constexpr B b1 = A<10, 20, 30>::a;
constexpr B b2 = A<10, 20, 30>();

since these actually *cause* the ICE in the initial post.  (These two lines
were part of the initial post.)


[Bug target/49826] [4.7 Regression] Symbols are not decorated with attribute stdcall and -mrtd

2012-01-01 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49826

--- Comment #4 from Dmitry Gorbachev  
2012-01-01 15:33:59 UTC ---
(In reply to comment #3)

The linker does not work very well with undecorated stdcall-s. For example:
. But if that bug will be fixed, then this one
can be closed.


[Bug c++/51724] New: no matching function for call; confused by earlier errors, bailing out

2012-01-01 Thread vegard.nossum at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51724

 Bug #: 51724
   Summary: no matching function for call; confused by earlier
errors, bailing out
Classification: Unclassified
   Product: gcc
   Version: 4.6.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: vegard.nos...@gmail.com


Created attachment 26211
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26211
Test-case

When trying to compile the attached test-case, I get the following strange
message:

$ g++ -std=c++0x -c bugreport.cc 
bugreport.cc: In member function ‘void solver::foo(solver::type) [with T = int, Plugin = plugin<>, solver::type =
int]’:
bugreport.cc:39:32:   instantiated from here
bugreport.cc:33:3: error: no matching function for call to
‘plugin<>::foo(solver >&, solver >::type&)’
bugreport.cc:33:3: note: candidates are:

bugreport.cc:33: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/cctuTFs6.out file, please attach this to
your bugreport.


[Bug fortran/51502] [4.6/4.7 Regression] Potentially wrong code generation due to wrong implict_pure check

2012-01-01 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51502

--- Comment #4 from Thomas Koenig  2012-01-01 
16:12:50 UTC ---
Author: tkoenig
Date: Sun Jan  1 16:12:39 2012
New Revision: 182770

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182770
Log:
2012-01-01  Thomas König  

Backport from trunk
PR fortran/51502
* expr.c (gfc_check_vardef_context):  When determining
implicit pure status, also check for variable definition
context.  Walk up namespaces until a procedure is
found to reset the implict pure attribute.
* resolve.c (gfc_implicit_pure):  Walk up namespaces
until a procedure is found.

2012-01-01  Thomas König  

Backport from trunk
PR fortran/51502
* lib/gcc-dg.exp (scan-module-absence):  New function.
* gfortran.dg/implicit_pure_2.f90:  New test.


Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/implicit_pure_2.f90
Modified:
branches/gcc-4_6-branch/gcc/fortran/ChangeLog
branches/gcc-4_6-branch/gcc/fortran/expr.c
branches/gcc-4_6-branch/gcc/fortran/resolve.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/lib/gcc-dg.exp


[Bug fortran/51502] [4.6/4.7 Regression] Potentially wrong code generation due to wrong implict_pure check

2012-01-01 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51502

Thomas Koenig  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #5 from Thomas Koenig  2012-01-01 
16:13:27 UTC ---
Fixed on trunk and 4.6, closing.


[Bug fortran/51502] [4.6/4.7 Regression] Potentially wrong code generation due to wrong implict_pure check

2012-01-01 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51502

--- Comment #6 from Thomas Koenig  2012-01-01 
16:27:53 UTC ---
Author: tkoenig
Date: Sun Jan  1 16:27:45 2012
New Revision: 182771

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182771
Log:
2012-01-01  Thomas König  

Backport from trunk
PR fortran/51502
* lib/gcc-dg.exp (scan-module-absence):  New function.
* gfortran.dg/implicit_pure_2.f90:  New test.



Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/lib/gcc-dg.exp


[Bug fortran/49693] Spurious "unused-variable" warnings for COMMON block module variables.

2012-01-01 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49693

Thomas Koenig  changed:

   What|Removed |Added

 CC||tkoenig at gcc dot gnu.org

--- Comment #3 from Thomas Koenig  2012-01-01 
16:37:27 UTC ---
Testing this patch:

Index: toplev.c
===
--- toplev.c(Revision 182754)
+++ toplev.c(Arbeitskopie)
@@ -501,6 +501,9 @@
 to handle multiple external decls in different scopes.  */
   && ! (DECL_NAME (decl) && TREE_USED (DECL_NAME (decl)))
   && ! DECL_EXTERNAL (decl)
+  /* Don't warn about variables in Fortran common blocks because
+they may be used elsewhere.  */
+  && ! DECL_COMMON(decl)
   && ! TREE_PUBLIC (decl)
   /* A volatile variable might be used in some non-obvious way.  */
   && ! TREE_THIS_VOLATILE (decl)


[Bug bootstrap/51725] New: [4.7 regression] segfault in stage 3 when compiling gcc/opts.c for sparc64-linux

2012-01-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51725

 Bug #: 51725
   Summary: [4.7 regression] segfault in stage 3 when compiling
gcc/opts.c for sparc64-linux
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: mi...@it.uu.se


Created attachment 26212
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26212
preprocessed source

Bootstrapping gcc-4.7-20111231 on sparc64-linux fails with:

/mnt/scratch/objdir/./prev-gcc/xgcc -B/mnt/scratch/objdir/./prev-gcc/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/lib/ -isystem
/mnt/scratch/install47/sparc64-unknown-linux-gnu/include -isystem
/mnt/scratch/install47/sparc64-unknown-linux-gnu/sys-include-c   -g -O2
-DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I/mnt/scratch/gcc-4.7-20111231/gcc -I/mnt/scratch/gcc-4.7-20111231/gcc/.
-I/mnt/scratch/gcc-4.7-20111231/gcc/../include
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-sparc64/gmp-5.0.2/include
-I/home/mikpe/pkgs/linux-sparc64/mpfr-3.1.0/include
-I/home/mikpe/pkgs/linux-sparc64/mpc-0.9/include 
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libdecnumber/dpd -I../libdecnumber   
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c -o opts.o
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c: In function 'common_handle_option':
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c:1751:1: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
make[3]: *** [opts.o] Error 1
make[3]: *** Waiting for unfinished jobs
rm cpp.pod gfdl.pod gcov.pod fsf-funding.pod gcc.pod
make[3]: Leaving directory `/mnt/scratch/objdir/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/mnt/scratch/objdir'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir'
make: *** [bootstrap] Error 2

This is a regression since gcc-4.7-20111224 which bootstrapped fine.

The ICE is reproducible with a cross to sparc-linux hosted on i686-linux.


[Bug bootstrap/51725] [4.7 regression] segfault in stage 3 when compiling gcc/opts.c for sparc64-linux

2012-01-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51725

--- Comment #1 from Mikael Pettersson  2012-01-01 
17:06:36 UTC ---
Apparently only occurs with options '-g -O2'.  I don't get the ICE if I drop -g
or select any other -O level.


[Bug bootstrap/51725] [4.7 regression] segfault in stage 3 when compiling gcc/opts.c for sparc64-linux

2012-01-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51725

Mikael Pettersson  changed:

   What|Removed |Added

 CC||aoliva at gcc dot gnu.org

--- Comment #2 from Mikael Pettersson  2012-01-01 
18:04:02 UTC ---
It's caused by Alexandre Oliva's recent VTA/cselib change in r182760:
http://gcc.gnu.org/ml/gcc-cvs/2011-12/msg00900.html
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01872.html


[Bug c++/51723] [C++0x] delegating constructor ICE

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51723

--- Comment #7 from Paolo Carlini  2012-01-01 
18:30:08 UTC ---
Oops, you are right, will do.


[Bug c++/51724] no matching function for call; confused by earlier errors, bailing out

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51724

--- Comment #1 from Paolo Carlini  2012-01-01 
18:32:37 UTC ---
Mainline seems fine, just rejects it.


[Bug target/51726] New: LTO and attribute 'selectany'

2012-01-01 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726

 Bug #: 51726
   Summary: LTO and attribute 'selectany'
Classification: Unclassified
   Product: gcc
   Version: 4.6.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d.g.gorbac...@gmail.com
Target: *-*-mingw32


Created attachment 26213
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26213
Testcase

foobar.c: In function 'main':
foobar.c:1:32: error: 'bar':'selectany' attribute applies only to initialized
objects


[Bug c++/16603] Incorrect enumerator type before enumeration's closing brace

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16603

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|gcc-bugs at gcc dot gnu.org |
 AssignedTo|unassigned at gcc dot   |paolo.carlini at oracle dot
   |gnu.org |com

--- Comment #4 from Paolo Carlini  2012-01-01 
20:03:11 UTC ---
On it.


[Bug c++/51379] [C++0x] [DR 799] reinterpret_cast is not particularly useful

2012-01-01 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51379

--- Comment #6 from paolo at gcc dot gnu.org  
2012-01-01 20:21:39 UTC ---
Author: paolo
Date: Sun Jan  1 20:21:36 2012
New Revision: 182775

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182775
Log:
/cp
2012-01-01  Paolo Carlini  

PR c++/51379
* typeck.c (build_reinterpret_cast_1): Implement resolution of
DR 799.

/testsuite
2012-01-01  Paolo Carlini  

PR c++/51379
* g++.dg/conversion/reinterpret4.C: New.
* g++.dg/conversion/reinterpret1.C: Adjust.

Added:
trunk/gcc/testsuite/g++.dg/conversion/reinterpret4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/conversion/reinterpret1.C


[Bug c++/51379] [C++0x] [DR 799] reinterpret_cast is not particularly useful

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51379

Paolo Carlini  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.7.0

--- Comment #7 from Paolo Carlini  2012-01-01 
20:23:50 UTC ---
Done.



[Bug bootstrap/51725] [4.7 regression] segfault in stage 3 when compiling gcc/opts.c for sparc64-linux

2012-01-01 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51725

Andreas Schwab  changed:

   What|Removed |Added

 Target|sparc64-linux   |sparc64-linux, ia64-*-linux
 CC||sch...@linux-m68k.org

--- Comment #3 from Andreas Schwab  2012-01-01 21:53:57 
UTC ---
Also breaks ia64.


[Bug c++/51370] [4.6/4.7 Regression] ICE with invalid template parameter

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51370

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-01-01
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski  2012-01-01 
22:12:30 UTC ---
Confirmed.


[Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-01-01
 CC||pinskia at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski  2012-01-01 
22:13:38 UTC ---
Confirmed.


[Bug c++/16603] Incorrect enumerator type before enumeration's closing brace

2012-01-01 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16603

--- Comment #5 from paolo at gcc dot gnu.org  
2012-01-01 22:33:35 UTC ---
Author: paolo
Date: Sun Jan  1 22:33:31 2012
New Revision: 182776

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182776
Log:
/cp
2012-01-01  Paolo Carlini  

PR c++/16603
* decl.c (build_enumerator): Don't call perform_integral_promotions
on the value.

/testsuite
2012-01-01  Paolo Carlini  

PR c++/16603
* g++.dg/parse/enum8.C: New.


Added:
trunk/gcc/testsuite/g++.dg/parse/enum8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog


[Bug c++/16603] Incorrect enumerator type before enumeration's closing brace

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16603

Paolo Carlini  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.7.0

--- Comment #6 from Paolo Carlini  2012-01-01 
22:34:20 UTC ---
Fixed for 4.7.0.


[Bug c++/18986] GCC Manual does not specify standard for C++

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18986

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC|gcc-bugs at gcc dot |
   |gnu.org, llewins at |
   |raytheon dot com|
 Resolution||FIXED

--- Comment #2 from Paolo Carlini  2012-01-01 
22:43:42 UTC ---
This has been fixed long time ago.


[Bug c++/2316] g++ fails to overload on language linkage

2012-01-01 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316

Marc Glisse  changed:

   What|Removed |Added

  Attachment #25181|0   |1
is obsolete||

--- Comment #35 from Marc Glisse  2012-01-02 
00:18:19 UTC ---
Created attachment 26214
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26214
remember linkage of a function type (4)

I updated the patch to work with alias templates. I also hacked the library
enough to complete a --disable-bootstrap --enable-languages=c,c++ build. It
works well enough to play with it and see how buggy every code out there is...
I didn't implement conversions, -fpermissive or C casts are good enough as long
as this is just a toy.


[Bug fortran/51727] New: Changing module files

2012-01-01 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51727

 Bug #: 51727
   Summary: Changing module files
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: mik...@gcc.gnu.org


Reported at http://gcc.gnu.org/ml/fortran/2011-12/msg00148.html

For a given fortran source file with module(s), repeated compilations may not
create always the same module file.  The URL above provides an example.

It seems that the symbols are not output in the same order.  In the example
provided, there are two module variants, the difference between them being that
one single symbol is at a different place in the file ( as reported at
http://gcc.gnu.org/ml/fortran/2011-12/msg00163.html ).

Possible causes:
 - unitialized memory, though valgrind reported nothing for me.
 - tree rebalancing.  Module I/O manages structures to be serialized using a
global tree ordered (when writing) by structures' addresses.  Could an
unrepeatable order just mean an unrepeatable address?.


[Bug c++/20140] template function complains about "char-array initialized from wide string"

2012-01-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20140

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC|gcc-bugs at gcc dot gnu.org |
 AssignedTo|unassigned at gcc dot   |paolo.carlini at oracle dot
   |gnu.org |com

--- Comment #3 from Paolo Carlini  2012-01-02 
00:42:34 UTC ---
On it. I see what's going wrong, fixing it should be relatively easy.


[Bug c++/2316] g++ fails to overload on language linkage

2012-01-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316

--- Comment #36 from Jonathan Wakely  2012-01-02 
01:04:14 UTC ---
The library should overload qsort, then the libitm/clone.cc change wouldn't be
needed


[Bug c++/2316] g++ fails to overload on language linkage

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316

--- Comment #37 from Andrew Pinski  2012-01-02 
02:30:17 UTC ---
I think the change to tree.c should not be done as it is middle-end code.  That
should be in the C++ front-end specific code instead.  That is the middle-end
should not care about the difference between extern "C" function types and
extern "C++" ones.


[Bug tree-optimization/38884] missed FRE with __real and __imag

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38884

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |4.7.0


[Bug lto/50679] [meta-bug] Linux kernel LTO tracking bug

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50679

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||meta-bug
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-01-02
Summary|Linux kernel LTO tracking   |[meta-bug] Linux kernel LTO
   |bug |tracking bug
 Ever Confirmed|0   |1


[Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50616

Andrew Pinski  changed:

   What|Removed |Added

   Severity|critical|normal


[Bug c/39375] asm with a "=X" output overwrites the output

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39375

--- Comment #6 from Andrew Pinski  2012-01-02 
04:16:52 UTC ---
__asm__ ("xxx" : "+X" (sum));

Is most likely what you want to use.  This says the sum might be clobbered but
it might not be as the same value is used if it was not.


[Bug middle-end/39456] Functions/variables of a file in different named sections

2012-01-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39456

--- Comment #3 from Andrew Pinski  2012-01-02 
04:25:03 UTC ---
What about doing something like:
#define function_def(base_section, funname, RET, ARGS)
__attribute__((__section__(base_section ##funname))) RET funname ARGS

#define basesect "sect1_"

function_def(basesect, fct1, void, (void));

So you won't have a copy and paste error at all and it works without any real
changes to the compiler.


[Bug c++/51666] NSDMI parse fails for template'd intializer

2012-01-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51666

Jason Merrill  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2012-01-02
 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1


[Bug regression/51728] New: [4.7 Regression]: libstdc++ 25_algorithms/count_if/1.cc, 25_algorithms/partition_point/1.cc, 25_algorithms/search/1.cc SEGV ICE

2012-01-01 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51728

 Bug #: 51728
   Summary: [4.7 Regression]: libstdc++
25_algorithms/count_if/1.cc,
25_algorithms/partition_point/1.cc,
25_algorithms/search/1.cc SEGV ICE
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code, wrong-code
  Severity: normal
  Priority: P3
 Component: regression
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: h...@gcc.gnu.org
CC: aol...@gcc.gnu.org
  Host: x86_64-unknown-linux-gnu
Target: cris-axis-elf


Created attachment 26215
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26215
25_algorithms/partition_point/1.cc: cc1plus -fpreprocessed 1.ii  -quiet -g -O2
-std=gnu++11 -o 1.s

These tests previously passed, now they fail.
Revision 182760 exposed or caused these regressions.  Since then they fail as
follows:

Running
/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
...
FAIL: 25_algorithms/count_if/1.cc (test for excess errors)
WARNING: 25_algorithms/count_if/1.cc compilation failed to produce executable
FAIL: 25_algorithms/partition_point/1.cc (test for excess errors)
WARNING: 25_algorithms/partition_point/1.cc compilation failed to produce
executable
FAIL: 25_algorithms/search/1.cc (test for excess errors)
WARNING: 25_algorithms/search/1.cc compilation failed to produce executable

The messages in libstdc++.log are similar:

/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/25_algorithms/partition_point/1.cc:
In function 'void test3()':
/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/25_algorithms/partition_point/1.cc:76:1:
internal compiler error: Segmentation fault
Please submit a full bug report,

A gdb backtrace of preprocessed 25_algorithms/partition_point/1.cc (attached)
shows:

(gdb) r  -fpreprocessed 1.ii  -quiet -g -O2 -std=gnu++11 -o 1.s
Starting program: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/cc1plus
-fpreprocessed 1.ii  -quiet -g -O2 -std=gnu++11 -o 1.s

Program received signal SIGSEGV, Segmentation fault.
0x0079c367 in cselib_invalidate_mem (mem_rtx=0x75aaba38) at
/tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2212
2212  if ((*mem_chain)->elt == v)
Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-1.x86_64
(gdb) p *mem_chain
$1 = (struct elt_list *) 0x0
(gdb) bt
#0  0x0079c367 in cselib_invalidate_mem (mem_rtx=0x75aaba38) at
/tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2212
#1  0x0079d313 in cselib_process_insn (insn=0x7575ad70) at
/tmp/hpautotest-gcc1/gcc/gcc/cselib.c:2557
#2  0x00f1498d in vt_initialize () at
/tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9398
#3  0x00f151ca in variable_tracking_main_1 () at
/tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9575
#4  0x00f152d3 in variable_tracking_main () at
/tmp/hpautotest-gcc1/gcc/gcc/var-tracking.c:9627
#5  0x00b0b265 in execute_one_pass (pass=0x15b23e0) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2080
#6  0x00b0b453 in execute_pass_list (pass=0x15b23e0) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2135
#7  0x00b0b474 in execute_pass_list (pass=0x15aeda0) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2136
#8  0x00b0b474 in execute_pass_list (pass=0x15aed40) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2136
#9  0x00c87390 in tree_rest_of_compilation (fndecl=0x75cdbc00)
at /tmp/hpautotest-gcc1/gcc/gcc/tree-optimize.c:421
#10 0x00785f9c in cgraph_expand_function (node=0x75cd6b40)
at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1818
#11 0x00786167 in cgraph_expand_all_functions () at
/tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1885
#12 0x00786ca8 in cgraph_optimize () at
/tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:2198
#13 0x00783c3b in cgraph_finalize_compilation_unit () at
/tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1327
#14 0x00555633 in cp_write_global_declarations () at
/tmp/hpautotest-gcc1/gcc/gcc/cp/decl2.c:4050
#15 0x00bd24aa in compile_file () at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:573
#16 0x00bd47f3 in do_compile () at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:1935
#17 0x00bd496a in toplev_main (argc=9, argv=0x7fffe108) at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:2011
#18 0x006b4460 in main (argc=9, argv=0x7fffe108) at
/tmp/hpautotest-gcc1/gcc/gcc/main.c:36

Author of suspect revision CC:ed.


[Bug c++/51675] [C++11][4.7 Regression] Cannot create constexpr unions

2012-01-01 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51675

Jason Merrill  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2012-01-02
 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1


[Bug tree-optimization/51704] [4.7 Regression] ICE: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:620 with -O3 -fno-tree-copy-prop -fno-tree-fre

2012-01-01 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51704

Ira Rosen  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #4 from Ira Rosen  2012-01-02 06:53:41 UTC 
---
Fixed.


[Bug target/50494] gcc.dg/vect/vect-reduc-2char.c fails spuriously on ppc with -flto

2012-01-01 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50494

Ira Rosen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-01-02
 CC||irar at il dot ibm.com
 Ever Confirmed|0   |1

--- Comment #4 from Ira Rosen  2012-01-02 07:01:10 UTC 
---
I see on powerpc64-suse-linux:

FAIL: gcc.dg/vect/pr44507.c -flto execution test
FAIL: gcc.dg/vect/pr45752.c -flto execution test
FAIL: gcc.dg/vect/vect-reduc-2short.c -flto execution test
FAIL: gcc.dg/vect/vect-reduc-6.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-1.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-2.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-3.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-4.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-5.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-6.c -flto execution test
FAIL: gcc.dg/vect/slp-perm-7.c -flto execution test

Removing static array initialization fixes the failures.