[Bug fortran/24526] renamed variables from modules not visible in gdb

2011-06-25 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24526

--- Comment #8 from Tobias Burnus  2011-06-25 
08:13:38 UTC ---
GDB patch by Jan:
  http://sourceware.org/ml/gdb-patches/2011-06/msg00378.html


[Bug c++/49528] [4.6/4.7 regression] g++ fails to destroy temporary object when subobject is used to initialize a reference

2011-06-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49528

Richard Guenther  changed:

   What|Removed |Added

   Target Milestone|--- |4.6.1


[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*

2011-06-25 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49371

Iain Sandoe  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #33 from Iain Sandoe  2011-06-25 11:18:56 
UTC ---
fixed, any darwin-11-specific issues would perhaps be better dealt with in a
separate PR.


[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*

2011-06-25 Thread iains at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49371

--- Comment #32 from Iain Sandoe  2011-06-25 11:17:39 
UTC ---
Author: iains
Date: Sat Jun 25 11:17:35 2011
New Revision: 175397

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

PR driver/49371
* config/darwin.c (darwin_override_options): Improve warning when
mdynamic-no-pic is given together with fPIC/fpic, also warn when it
is given with fpie/fPIE.
* config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
* config/darwin9.h (PIE_SPEC): New.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin.c
trunk/gcc/config/darwin.h
trunk/gcc/config/darwin9.h


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

--- Comment #5 from Mikael Pettersson  2011-06-25 
12:23:48 UTC ---
I can't reproduce the runtime failure with gcc-4.6-20110621 on x86_64-linux.

I see you're using Gentoo's modified gcc-4.4.5.  Can you please try again with
a g++ built from vanilla unmodified gcc-4.4.5 (or later 4.4.x) sources?


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

Mikael Pettersson  changed:

   What|Removed |Added

 CC||mikpe at it dot uu.se

--- Comment #6 from Mikael Pettersson  2011-06-25 
12:54:28 UTC ---
(In reply to comment #5)
> I can't reproduce the runtime failure with gcc-4.6-20110621 on x86_64-linux.

Of course I meant to write gcc-4.4-20110621 not 4.6...


[Bug rtl-optimization/49429] [4.7 Regression] dse.c change (r175063) causes execution failures

2011-06-25 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49429

--- Comment #17 from Hans-Peter Nilsson  2011-06-25 
13:04:38 UTC ---
Seems fixed as per the commit.  Easwaran or Steve, please confirm and close.


[Bug middle-end/49463] [4.7 Regression] LTO doesn't work symbol renamed via asm statement

2011-06-25 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49463

John David Anglin  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.06.25 14:21:26
 CC||danglin at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #6 from John David Anglin  2011-06-25 
14:21:26 UTC ---
Also seen on hppa-unknown-linux-gnu.


[Bug testsuite/49529] New: FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors)

2011-06-25 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49529

   Summary: FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors)
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: testsuite
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dang...@gcc.gnu.org
  Host: hppa2.0w-hp-hpux11.11
Target: hppa2.0w-hp-hpux11.11
 Build: hppa2.0w-hp-hpux11.11


Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c   -O -fipa-pta -S  -o
ipa-p
ta-17.s(timeout = 300)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c:5:12: error: alias
defin
itions not supported in this configuration
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c:5:12: error: alias
defin
itions not supported in this configuration


[Bug tree-optimization/46621] gimple.h includes tm.h

2011-06-25 Thread amylaar at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46621

Jorn Wolfgang Rennecke  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #3 from Jorn Wolfgang Rennecke  
2011-06-25 14:40:15 UTC ---
Fixed in r167230


[Bug middle-end/46500] target.h includes tm.h

2011-06-25 Thread amylaar at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46500

Jorn Wolfgang Rennecke  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #11 from Jorn Wolfgang Rennecke  
2011-06-25 14:43:08 UTC ---
Fixed in r175103.


[Bug middle-end/49463] [4.7 Regression] LTO doesn't work symbol renamed via asm statement

2011-06-25 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49463

--- Comment #7 from Jan Hubicka  2011-06-25 
15:02:07 UTC ---
Hi,
this is not really expected.  TLS was apparently binutils bug, while the
stringop-asm is linker plugin only problem (I sent 3 different fixes for that,
each of them wrong since we can't really immitate here the non-LTO behaviour
without tracking for every statement the originating LTO object file).

What problem you get on hppa?  Are you using plugin there?


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread bryancain3+gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

Bryan Cain  changed:

   What|Removed |Added

 CC||bryancain3+gcc at gmail dot
   ||com

--- Comment #7 from Bryan Cain  2011-06-25 
15:46:32 UTC ---
I have this problem using the gcc 4.4.5 build in Ubuntu 10.10, which reports
itself as "gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5".  So it's not
Gentoo-specific.


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

--- Comment #8 from Mikael Pettersson  2011-06-25 
16:40:42 UTC ---
(In reply to comment #7)
> I have this problem using the gcc 4.4.5 build in Ubuntu 10.10, which reports
> itself as "gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5".  So it's not
> Gentoo-specific.

That's also a heavily modified vendor compiler.

Please try with an unmodified 4.4.5 or 4.4.6.


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread marcin.slusarz at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

--- Comment #9 from Marcin Ĺšlusarz  2011-06-25 
18:46:53 UTC ---
Gentoo does not patch gcc severely.

See:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/gcc-4.4.5.ebuild?revision=1.10&view=markup

which adds only 2 patches:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/files/gcc-spec-env.patch?revision=1.6&view=markup
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/files/4.4.0/gcc-4.4.0-softfloat.patch?revision=1.1&view=markup
(arm specific)

If that does not convince you, I can compile gcc without these patches. Just
say so.

Please note that runtime failure occurs in ~30-40% runs.


[Bug c++/49525] [4.4] wrong code and wrong warning for bitfield related operations

2011-06-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49525

Mikael Pettersson  changed:

   What|Removed |Added

 CC|mikpe at it dot uu.se   |

--- Comment #10 from Mikael Pettersson  2011-06-25 
20:23:26 UTC ---
I don't think that .ebuild file describes everything in detail, specifically I
strongly suspect they also apply 27 patches from gcc-4.4.5-patches-1.2.tar.bz2.

I just recompiled the test case with a freshly built gcc-4.4.5 on x86_64-linux,
and ran it 100 times.  It failed zero times.


[Bug target/49530] New: Segmentation fault with -mint8

2011-06-25 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49530

   Summary: Segmentation fault with -mint8
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: g...@gcc.gnu.org
Target: avr


Turning on -mint8 for avr-gcc runs into segmentation fault. I see it in
4.6.1-RC1 and 4.5.2.

==

Source (empty file will do also):

char x;

==

Command line:

avr-gcc -S -v -mint8 foo.c

==

Output:

e:/WinAVR/4.6.1/bin/avr-gcc -Os -v -mint8 -S foo.c
Using built-in specs.
COLLECT_GCC=e:\WinAVR\4.6.1\bin\avr-gcc.exe
COLLECT_LTO_WRAPPER=e:/winavr/4.6.1/bin/../libexec/gcc/avr/4.6.1/lto-wrapper.exe
Target: avr
Configured with: ../../gcc.gnu.org/gcc-4_6-branch/configure --target=avr
--prefix=/local/gnu/install/gcc-4.6-mingw32 --host=i586-mingw32
--build=i686-linux-gnu --enable-languages=c,c++ --disable-nls --disable-shared
--with-dwarf2
Thread model: single
gcc version 4.6.1 20110620 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-Os' '-v' '-mint8' '-S'
 e:/winavr/4.6.1/bin/../libexec/gcc/avr/4.6.1/cc1.exe -quiet -v -iprefix
e:\winavr\4.6.1\bin\../lib/gcc/avr/4.6.1/ foo.c -quiet -dumpbase foo.c -mint8
-auxbase foo -Os -version -o foo.s
GNU C (GCC) version 4.6.1 20110620 (prerelease) (avr)
compiled by GNU C version 3.3.1 (mingw special 20030804-1), GMP version
4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32702
ignoring nonexistent directory
"e:\winavr\4.6.1\bin\../lib/gcc/avr/4.6.1/../../../../avr/sys-include"
ignoring duplicate directory
"e:/winavr/4.6.1/lib/gcc/../../lib/gcc/avr/4.6.1/include"
ignoring duplicate directory
"e:/winavr/4.6.1/lib/gcc/../../lib/gcc/avr/4.6.1/include-fixed"
ignoring nonexistent directory
"e:/winavr/4.6.1/lib/gcc/../../lib/gcc/avr/4.6.1/../../../../avr/sys-include"
ignoring duplicate directory
"e:/winavr/4.6.1/lib/gcc/../../lib/gcc/avr/4.6.1/../../../../avr/include"
#include "..." search starts here:
#include <...> search starts here:
 e:\winavr\4.6.1\bin\../lib/gcc/avr/4.6.1/include
 e:\winavr\4.6.1\bin\../lib/gcc/avr/4.6.1/include-fixed
 e:\winavr\4.6.1\bin\../lib/gcc/avr/4.6.1/../../../../avr/include
End of search list.
GNU C (GCC) version 4.6.1 20110620 (prerelease) (avr)
compiled by GNU C version 3.3.1 (mingw special 20030804-1), GMP version
4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32702
:0:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.


[Bug target/49454] [4.7 Regression] /usr/include/libio.h:336:3: internal compiler error: Segmentation fault

2011-06-25 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49454

--- Comment #6 from John David Anglin  2011-06-25 
21:53:27 UTC ---
Fixed.


[Bug target/49454] [4.7 Regression] /usr/include/libio.h:336:3: internal compiler error: Segmentation fault

2011-06-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49454

Eric Botcazou  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||ebotcazou at gcc dot
   ||gnu.org
 Resolution||FIXED

--- Comment #7 from Eric Botcazou  2011-06-25 
22:07:05 UTC ---
As Dave said.


[Bug c++/49216] [C++0x][Regression] ICE on compiling new-expression with braced-init-list for arrays

2011-06-25 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216

Eric Botcazou  changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot
   ||gnu.org

--- Comment #3 from Eric Botcazou  2011-06-25 
22:17:04 UTC ---
The test doesn't pass on SPARC/Solaris:

Running target unix
FAIL: g++.dg/cpp0x/initlist53.C execution test

Program received signal SIGABRT, Aborted.
0xff1a01cc in _libc_kill () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff1a01cc in _libc_kill () from /usr/lib/libc.so.1
#1  0xff13598c in abort () from /usr/lib/libc.so.1
#2  0x000107d4 in main ()
at
/nile.build/botcazou/gcc-head/src/gcc/testsuite/g++.dg/cpp0x/initlist53.C:19
(gdb) frame 2
#2  0x000107d4 in main ()
at
/nile.build/botcazou/gcc-head/src/gcc/testsuite/g++.dg/cpp0x/initlist53.C:19
19  abort();
(gdb) p p
$2 = (int *) 0x20ac8
(gdb) p p[0]
$3 = 133840


[Bug testsuite/49529] FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors)

2011-06-25 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49529

Dominique d'Humieres  changed:

   What|Removed |Added

 Target|hppa2.0w-hp-hpux11.11   |hppa2.0w-hp-hpux11.11
   ||*-apple-darwin*
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.06.25 23:07:48
   Host|hppa2.0w-hp-hpux11.11   |hppa2.0w-hp-hpux11.11
   ||*-apple-darwin*
 Ever Confirmed|0   |1
  Build|hppa2.0w-hp-hpux11.11   |hppa2.0w-hp-hpux11.11
   ||*-apple-darwin*

--- Comment #1 from Dominique d'Humieres  2011-06-25 
23:07:48 UTC ---
On *-apple-darwin* the failure is due to

/opt/gcc/_clean/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c:5:12: error: only weak
aliases are supported in this configuration
/opt/gcc/_clean/gcc/testsuite/gcc.dg/ipa/ipa-pta-17.c:5:12: error: only weak
aliases are supported in this configuration


[Bug c++/49531] New: Doesn't resolve to conversion function template specialization in expressions

2011-06-25 Thread schaub.johannes at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49531

   Summary: Doesn't resolve to conversion function template
specialization in expressions
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: schaub.johan...@googlemail.com


GCC rejects this code, which I think is valid in both C++03 and C++0x

// snip
struct A {
  template operator T();
};

void f() { &A::operator int; }

main1.cpp:5:28: error: statement cannot resolve address of overloaded function

// snap

There is no overloaded function. The provisions of 13.4 apply when we are faced
with a function template name. We are not, in this case. 

"A specialization of a conversion function template is not found by name
lookup. Instead, any conversion function templates visible in the context of
the use are considered. For each such operator, if argument deduction succeeds
(14.8.2.3), the resulting specialization is used as if found by name lookup."

Before we even enter 13.4, we will do argument deduction and resolve to a
single function template specialization. After we resolved to that function *as
if by name lookup*, we will just skip 13.4 because we have a single function
name, rather than an overload set.


[Bug c++/49528] [4.6/4.7 regression] g++ fails to destroy temporary object when subobject is used to initialize a reference

2011-06-25 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49528

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org
   |gnu.org |