Deletion of trivial insn during IRA

2011-10-03 Thread Paulo J. Matos
Hi, I am trying to find where IRA, is deleting trivial insn like: (set r1 r1) The problem I am facing is that I have managed to convince GCC to handle moves that clobber RCC like: (parallel [(set reg1 reg2) (clobber rcc)]) However, I am getting loads of insn like: (parallel [(set r1 r2)

proposal: warning for incomplete multichars

2011-10-03 Thread Steve White
Hi! This concerns multiple character integer constants, e.g. 'abcd' as discussed in the C99 standard in subsection 6.4.4.4. We'll call them multichars. First: everybody agrees multichars are non-portable and therefore to be avoided. That said, there are real-life situations where they

New bootstrap failure on sparc-sun-solaris2.10

2011-10-03 Thread Art Haas
The latest set of patches to update the Sparc platform has resulted in a build failure in stage 1 of this mornings builds: gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic

Announce: GNU MPFR 3.1.0 is released

2011-10-03 Thread Vincent Lefevre
GNU MPFR 3.1.0 (canard à l'orange) is now available for download from the MPFR web site: http://www.mpfr.org/mpfr-3.1.0/ and from INRIAGForge: https://gforge.inria.fr/projects/mpfr/ It will be available on the GNU FTP site in a few hours. Thanks very much to those who sent us bug reports

Re: C++11 atomic library notes

2011-10-03 Thread Richard Henderson
On 09/30/2011 01:36 PM, Andrew MacLeod wrote: http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) I don't like this. I really cannot imagine any situation for which the compiler can't resolve SIZE to a compile-time constant.

Re: C++11 atomic library notes

2011-10-03 Thread Andrew MacLeod
On 10/03/2011 01:31 PM, Richard Henderson wrote: On 09/30/2011 01:36 PM, Andrew MacLeod wrote: http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) I don't like this. I really cannot imagine any situation for which the

Re: missing conditional propagation in cprop.c pass

2011-10-03 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/29/11 22:43, Amker.Cheng wrote: I believe, the optimization you may be referring to is value range propagation which does predication of values based on predicates of conditions. GCC definitely applies VRP at the tree stage, I am not sure

Re: C++11 atomic library notes

2011-10-03 Thread Richard Henderson
On 10/03/2011 10:54 AM, Andrew MacLeod wrote: its a library call for arbitrary sized objects... C++ can have any class declared atomic, so it doesn't have to map to one of those optimized lock-free routines. Ah, I get it now. Ew. r~

Re: C++11 atomic library notes

2011-10-03 Thread Joseph S. Myers
On Mon, 3 Oct 2011, Andrew MacLeod wrote: On 10/03/2011 01:31 PM, Richard Henderson wrote: On 09/30/2011 01:36 PM, Andrew MacLeod wrote: http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) I don't like this. I

Re: Suboptimal __restrict optimization?

2011-10-03 Thread Ian Lance Taylor
Ulf Magnusson ulfali...@gmail.com writes: Is there some reason why GCC couldn't generate this code for the first version of C::f()? Is this a failure of optimization, or am I missing something in how __restricted works? It's a failure of optimization. Ian

Re: Deletion of trivial insn during IRA

2011-10-03 Thread Ian Lance Taylor
pa...@matos-sorge.com (Paulo J. Matos) writes: I am trying to find where IRA, is deleting trivial insn like: (set r1 r1) Search for Discard obvious no-ops in the function reload in the file gcc/reload1.c. Ian

GCC Wiki Write Access

2011-10-03 Thread Iyer, Balaji V
Hello Everyone, I contributed the Cilk Plus branch of GCC and I would like to create a page in GCC Wiki (link: http://gcc.gnu.org/wiki/HomePage) with the information about this branch and maybe some future work. Can someone please tell me how I can get write access to the GCC wiki?

Re: GCC Wiki Write Access

2011-10-03 Thread Jonathan Wakely
On 3 October 2011 21:55, Iyer, Balaji V wrote: Hello Everyone,        I contributed the Cilk Plus branch of GCC and I would like to create a page in GCC Wiki (link: http://gcc.gnu.org/wiki/HomePage) with the information about this branch and maybe some future work. Can someone please tell

Re: new triplet for x32 psABI?

2011-10-03 Thread Eric Blake
On 10/03/2011 04:25 PM, Michael LIAO wrote: Sorry, resend with plain text format. Hi, Everyone As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do we need a new triplet for system relies on triplet to figure out it's targeted on x32 environment. The new triplet would look like

Re: missing conditional propagation in cprop.c pass

2011-10-03 Thread Steven Bosscher
Hi, Though conditional const information r684 - 0 is collected by find_implicit_sets, the conditional information is recorded as local information of bb 97, and it is not recorded in avout of bb 96, so not in avin of bb 97 either. To have the set in avout of bb 96 would be wrong because the

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 18:25:46 Michael LIAO wrote: As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do we need a new triplet for system relies on triplet to figure out it's targeted on x32 environment. The new triplet would look like 'x86_64-unknown-linux-gnux32' for x32

new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
Sorry, resend with plain text format. Hi, Everyone As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do we need a new triplet for system relies on triplet to figure out it's targeted on x32 environment. The new triplet would look like 'x86_64-unknown-linux-gnux32' for x32 vs

The AST tree modification.

2011-10-03 Thread niXman
Hi everybody! It is necessary to implement a plug-in for GCC designed to collect the information on types of translation unit, and generate static const array of types rtti_ex _ on its base;  // enum class type_ {    char_, uchar_, short_, ushort_, int_, uint_, 

The AST tree modification. Edited.

2011-10-03 Thread niXman
Hi everybody! It is necessary to implement a plug-in for GCC designed to collect the information on types of translation unit, and generate static const array of types rtti_ex _ on its base; // enum class type_ { char_, uchar_, short_, ushort_, int_, uint_,

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
Most examples would be related to tools generating code. Suppose you have a software package with several hard-coded fully optimized assembly file for different targets. Your build system need to know the current target as well as target ABI to select the correct assembly file to build it. It

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: please don't top post Most examples would be related to tools generating code. Suppose you have a software package with several hard-coded fully optimized assembly file for different targets. Your build system need to know the

Re: new triplet for x32 psABI?

2011-10-03 Thread H.J. Lu
On Mon, Oct 3, 2011 at 3:57 PM, Michael LIAO michael.hl...@gmail.com wrote: Most examples would be related to tools generating code. Suppose you have a software package with several hard-coded fully optimized assembly file for different targets. Your build system need to know the current

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: please don't top post sorry, it's my first post on mailing. Most examples would be related to tools generating code. Suppose you have a software package with

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 19:47:57 Michael LIAO wrote: On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: Most examples would be related to tools generating code. Suppose you have a software package with several hard-coded

Re: new triplet for x32 psABI?

2011-10-03 Thread H.J. Lu
On Mon, Oct 3, 2011 at 4:47 PM, Michael LIAO michael.hl...@gmail.com wrote: On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: please don't top post sorry, it's my first post on mailing. Most examples would be

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 5:46 PM, Mike Frysinger vap...@gentoo.org wrote: On Monday, October 03, 2011 19:47:57 Michael LIAO wrote: On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: Most examples would be related to tools generating

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 5:53 PM, H.J. Lu hjl.to...@gmail.com wrote: On Mon, Oct 3, 2011 at 4:47 PM, Michael LIAO michael.hl...@gmail.com wrote: On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: please don't top post

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 23:26:25 Michael LIAO wrote: On Mon, Oct 3, 2011 at 5:46 PM, Mike Frysinger wrote: in terms of asm code, it's still possible to use ifdef's to handle cases where you truly need different code paths. Yeah, we could have '#ifdef X32ABI in assembly file to select

[Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change

2011-10-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[Bug tree-optimization/50596] New: Problems in vectorization of condition expression

2011-10-03 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50596 Bug #: 50596 Summary: Problems in vectorization of condition expression Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug target/50588] gcc produce bad inlined code with -march=athlon -O2

2011-10-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588 --- Comment #10 from Mikael Pettersson mikpe at it dot uu.se 2011-10-03 08:35:31 UTC --- (In reply to comment #8) (In reply to comment #6) So which libc was this originally compiled against? Some things in traceroute.i make me think it's

[Bug tree-optimization/50596] Problems in vectorization of condition expression

2011-10-03 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50596 --- Comment #1 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-10-03 08:40:53 UTC --- manage to vectorize this int j[1024]; void foo5() { for (int i=0; i!=N; ++i) j[i] = (a[i]b[i] ? -1 : 0) (c[i]d[i] ? -1 : 0); } which is

[Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change

2011-10-03 Thread markus at trippelsdorf dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587 --- Comment #3 from Markus Trippelsdorf markus at trippelsdorf dot de 2011-10-03 08:44:09 UTC --- (In reply to comment #2) Created attachment 25402 [details] gcc47-pr50587.patch Does this patch fix it? Yes it fixes both the LTO kernel and

[Bug c++/50593] improve __attribute__((format(printf)))

2011-10-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50593 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change

2011-10-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587 --- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2011-10-03 09:06:43 UTC --- Author: jakub Date: Mon Oct 3 09:06:38 2011 New Revision: 179447 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=179447 Log: PR

[Bug target/50038] redundant zero extensions

2011-10-03 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50038 --- Comment #4 from Uros Bizjak ubizjak at gmail dot com 2011-10-03 09:19:16 UTC --- (In reply to comment #3) So assuming this approach (modify implicit-zee pass) is right, we'll have to enable this pass at least on x86 (32 bit). Is it ok ?

[Bug other/50597] New: printf_fp.o: relocation R_X86_64_PC32 against `hack_digit.6607' can not be used when making a shared object; recompile with -fPIC

2011-10-03 Thread mustarddream at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50597 Bug #: 50597 Summary: printf_fp.o: relocation R_X86_64_PC32 against `hack_digit.6607' can not be used when making a shared object; recompile with -fPIC Classification:

[Bug c++/50595] template overload resolution insufficiently sensitive to name dependency?

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50595 --- Comment #1 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 10:04:17 UTC --- Without having looked at the code, ICC behaves exactly like GCC.

[Bug c++/39681] Compile error is not descriptive

2011-10-03 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681 --- Comment #3 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-10-03 10:07:49 UTC --- (In reply to comment #2) Manuel, can I have your opinion about this one? Since you ask, my opinion is that first there should be only 1 error and not

[Bug fortran/50570] [4.6/4.7 Regression] Incorrect error for assignment to intent(in) pointer

2011-10-03 Thread msteghofer at cistib dot upf.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50570 --- Comment #2 from msteghofer at cistib dot upf.edu 2011-10-03 10:15:09 UTC --- Created attachment 25403 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25403 Code to reproduce the behaviour Subroutine POINTER_INTENT_IN_BUG_FAILING contains

[Bug fortran/50570] [4.6/4.7 Regression] Incorrect error for assignment to intent(in) pointer

2011-10-03 Thread msteghofer at cistib dot upf.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50570 msteghofer at cistib dot upf.edu changed: What|Removed |Added CC||msteghofer at cistib

[Bug c/44854] Improve diagnostic for missing member name or ';' in a struct

2011-10-03 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44854 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||manu at gcc

[Bug c++/39681] Compile error is not descriptive

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681 --- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 11:08:39 UTC --- Ok, thanks. Frankly I hadn't noticed the *second* error. The first one seemed good enough to me, and quite similar to what I saw elsewhere modulo type

[Bug c++/39681] Compile error is not descriptive

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681 --- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 11:13:52 UTC --- Like, sorry about my naivete, by adding a cp_parser_skip_to_end_of_statement or something right after the error message?!?

[Bug target/50588] gcc produce bad inlined code with -march=athlon -O2

2011-10-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588 --- Comment #11 from Mikael Pettersson mikpe at it dot uu.se 2011-10-03 11:46:28 UTC --- The failure seems to have disappeared on trunk starting with r179284: http://gcc.gnu.org/ml/gcc-cvs/2011-09/msg00903.html

[Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change

2011-10-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug target/50588] gcc produce bad inlined code with -march=athlon -O2

2011-10-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588 --- Comment #12 from Mikael Pettersson mikpe at it dot uu.se 2011-10-03 12:56:10 UTC --- Backporting r179284 to 4.6.1 (trivial except for the third ifcvt.c hunk which required manual application due to a context diff) fixed the test case there

[Bug preprocessor/36819] memleak in split_quote_chain

2011-10-03 Thread nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36819 nightstrike nightstrike at gmail dot com changed: What|Removed |Added CC||nightstrike at

[Bug boehm-gc/43682] libgcj don't support Win x64?

2011-10-03 Thread nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43682 --- Comment #3 from nightstrike nightstrike at gmail dot com 2011-10-03 13:06:38 UTC --- Who can update the in-tree boehm-gc?

[Bug boehm-gc/42304] found a resource leak

2011-10-03 Thread nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42304 nightstrike nightstrike at gmail dot com changed: What|Removed |Added CC||nightstrike at

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 Daniel Krügler daniel.kruegler at googlemail dot com changed: What|Removed |Added CC|

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #6 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 13:22:23 UTC --- I have no idea how this can be made to work with -fwhole-program, but other people know better.

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org 2011-10-03 13:41:50 UTC --- (In reply to comment #3) Thank you for the replies. Is this behaviour standard-conforming? The documentation for -fwhole-program says that all functions

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #8 from Jonathan Wakely redi at gcc dot gnu.org 2011-10-03 13:43:21 UTC --- [basic.stc.dynamic.allocation] p1 a program is ill-formed if an allocation function is declared in a namespace scope other than global scope or declared

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #9 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 13:45:03 UTC --- Oh, thanks Jon for testing that. Indeed, as far as I'm concerned, the issue is resolved.

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #10 from Daniel Krügler daniel.kruegler at googlemail dot com 2011-10-03 13:49:01 UTC --- (In reply to comment #8) I agree that given the make static contract of -fwhole-program (which I was not aware about) the compiler behaves

[Bug middle-end/50598] New: [4.7 Regression] Undefined symbols: ___emutls_v.*, ... on *-apple-darwin*

2011-10-03 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50598 Bug #: 50598 Summary: [4.7 Regression] Undefined symbols: ___emutls_v.*, ... on *-apple-darwin* Classification: Unclassified Product: gcc Version: 4.7.0 Status:

[Bug tree-optimization/50599] New: -ftree-vectorize generating incorrect code

2011-10-03 Thread a5970694 at nepwk dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50599 Bug #: 50599 Summary: -ftree-vectorize generating incorrect code Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #11 from Jonathan Wakely redi at gcc dot gnu.org 2011-10-03 15:02:37 UTC --- we could add __attribute__((externally_visible)) on the declarations in new I don't know what other side effects that would have

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #12 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03 15:12:53 UTC --- Yes, yesterday, a bit sleepy, I also wondered that, but I'm not knowledgeable enough of these mechanisms to say whether it would be otherwise safe.

[Bug fortran/33814] Failure of gfortran n Mac Mini

2011-10-03 Thread mercergeoinfo at yahoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33814 mercergeoinfo at yahoo dot co.uk changed: What|Removed |Added CC||mercergeoinfo at yahoo

[Bug ada/50600] New: Illegal instruction when using pragma Profile (Restricted)

2011-10-03 Thread bauhaus at futureapps dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50600 Bug #: 50600 Summary: Illegal instruction when using pragma Profile (Restricted) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/39164] [C++0x] defaulted dtor redefinition not caught

2011-10-03 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39164 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string

2011-10-03 Thread z0sh at sogetthis dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594 --- Comment #13 from Kerrek SB z0sh at sogetthis dot com 2011-10-03 16:12:28 UTC --- Very interesting. I understand that making the function static makes the program ill-formed, but it's still somewhat surprising that a compiler flag should turn

[Bug lto/50601] New: [4.7 Regression] New LTO failures

2011-10-03 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50601 Bug #: 50601 Summary: [4.7 Regression] New LTO failures Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/50602] New: ICE in tree_nrv, at tree-nrv.c:155 during large LTO build

2011-10-03 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602 Bug #: 50602 Summary: ICE in tree_nrv, at tree-nrv.c:155 during large LTO build Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/50602] ICE in tree_nrv, at tree-nrv.c:155 during large LTO build

2011-10-03 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Version|unknown |4.7.0 ---

[Bug lto/50601] [4.7 Regression] New LTO failures

2011-10-03 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50601 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added CC||hubicka at gcc dot

[Bug target/50603] New: [x32] Unnecessary lea

2011-10-03 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50603 Bug #: 50603 Summary: [x32] Unnecessary lea Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/49967] The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)

2011-10-03 Thread sje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967 --- Comment #2 from Steve Ellcey sje at gcc dot gnu.org 2011-10-03 17:57:44 UTC --- Author: sje Date: Mon Oct 3 17:57:40 2011 New Revision: 179472 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=179472 Log: 2011-10-03 Steve Ellcey

[Bug target/50603] [x32] Unnecessary lea

2011-10-03 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50603 Uros Bizjak ubizjak at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug c/50604] New: verify_gimple failed: type mismatch in binary expression

2011-10-03 Thread dimhen at gmail dot com
++,lto --enable-plugin --with-tune=generic --enable-version-specific-runtime-libs Thread model: posix gcc version 4.7.0 20111003 (experimental) [trunk revision 179472] (GCC)

[Bug middle-end/50604] [4.7 Regression] verify_gimple failed: type mismatch in binary expression

2011-10-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50604 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.7.0

[Bug target/50588] gcc produce bad inlined code with -march=athlon -O2

2011-10-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50588 --- Comment #13 from Mikael Pettersson mikpe at it dot uu.se 2011-10-03 19:27:21 UTC --- Created attachment 25404 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25404 reduced preprocessed test case With this reduced test case I'm seeing

[Bug other/50283] [4.7 Regression] FAIL: g++.dg/eh/simd-1.C execution test

2011-10-03 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50283 --- Comment #3 from John David Anglin danglin at gcc dot gnu.org 2011-10-03 19:43:40 UTC --- Created attachment 25405 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25405 .final dump

[Bug fortran/35831] [F95] Shape mismatch check missing for dummy procedure argument

2011-10-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35831 janus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/50357] verify_cgraph_node failed with -O2

2011-10-03 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50357 --- Comment #1 from dcb dcb314 at hotmail dot com 2011-10-03 20:23:46 UTC --- Seems fixed in gcc snapshot 20111001

[Bug c++/50357] verify_cgraph_node failed with -O2

2011-10-03 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50357 dcb dcb314 at hotmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/50605] New: ice in ipa_get_jf_pass_through_result with -O3

2011-10-03 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50605 Bug #: 50605 Summary: ice in ipa_get_jf_pass_through_result with -O3 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c/50606] New: gcc fails to detect obvious use of NULL pointer

2011-10-03 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50606 Bug #: 50606 Summary: gcc fails to detect obvious use of NULL pointer Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement

[Bug target/50603] [x32] Unnecessary lea

2011-10-03 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50603 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|NEW |UNCONFIRMED Ever

[Bug middle-end/50607] [4.7 Regression] FAIL: gcc.dg/bconstp-3.c

2011-10-03 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50607 --- Comment #1 from Hans-Peter Nilsson hp at gcc dot gnu.org 2011-10-03 23:09:44 UTC --- For cris-elf too (unsurprisingly as the error seems universal), plus I'm seeing a: FAIL: gcc.c-torture/execute/pr23135.c compilation, -O2 -flto (internal

[Bug middle-end/50607] New: [4.7 Regression] FAIL: gcc.dg/bconstp-3.c

2011-10-03 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50607 Bug #: 50607 Summary: [4.7 Regression] FAIL: gcc.dg/bconstp-3.c Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/50607] [4.7 Regression] FAIL: gcc.dg/bconstp-3.c

2011-10-03 Thread artyom.shinkaroff at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50607 --- Comment #2 from Artem Shinkarov artyom.shinkaroff at gmail dot com 2011-10-03 23:17:22 UTC --- That seems to be the changes caused by the patch I have committed. However, may be this is a test-case that needs adjustment. I'll have to

[Bug middle-end/50607] [4.7 Regression] FAIL: gcc.dg/bconstp-3.c

2011-10-03 Thread artyom.shinkaroff at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50607 --- Comment #3 from Artem Shinkarov artyom.shinkaroff at gmail dot com 2011-10-03 23:32:47 UTC --- (In reply to comment #1) For cris-elf too (unsurprisingly as the error seems universal), plus I'm seeing a: FAIL:

[Bug c++/50608] New: cannot apply 'offsetof' to a non constant address

2011-10-03 Thread dberger at oubliette dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50608 Bug #: 50608 Summary: cannot apply 'offsetof' to a non constant address Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal

[Bug c++/50608] cannot apply 'offsetof' to a non constant address

2011-10-03 Thread dberger at oubliette dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50608 Dan Berger dberger at oubliette dot org changed: What|Removed |Added See Also|

[Bug middle-end/50609] New: [4.7 Regression] FAIL: gcc.c-torture/execute/pr23135.c compilation, -O2 -flto (ICE)

2011-10-03 Thread hp at gcc dot gnu.org
(GCC) version 4.7.0 20111003 (experimental) [trunk revision 179480] (cris-elf) compiled by GNU C version 4.4.3 20100127 (Red Hat 4.4.3-4), GMP version 4.3.0, MPFR version 2.4.1, MPC version 0.8 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU GIMPLE (GCC) version

[Bug middle-end/50607] [4.7 Regression] FAIL: gcc.dg/bconstp-3.c

2011-10-03 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50607 --- Comment #4 from Hans-Peter Nilsson hp at gcc dot gnu.org 2011-10-04 00:04:54 UTC --- (In reply to comment #3) On x86 linux the testcase does not cause segfaults, so may be you could investigate via gdb which function cause segfault on

[Bug middle-end/50609] [4.7 Regression] FAIL: gcc.c-torture/execute/pr23135.c compilation, -O2 -flto (ICE)

2011-10-03 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50609 --- Comment #1 from Hans-Peter Nilsson hp at gcc dot gnu.org 2011-10-04 00:22:11 UTC --- Last known working revision:first known failing 179447:179464, and 179462 is the only related change in that range, so it's confirmed that's the revision

[Bug middle-end/50609] [4.7 Regression] FAIL: gcc.c-torture/execute/pr23135.c compilation, -O2 -flto (ICE)

2011-10-03 Thread hp at gcc dot gnu.org
/testsuite/gcc/ -dumpbase pr23135.x6 -auxbase-strip /tmp/ccJhtPAy.lto.o -O2 -w -version -flto-partition=none -fresolution=pr23135.res pr23135.o -o pr23135.s GNU GIMPLE (GCC) version 4.7.0 20111003 (experimental) [trunk revision 179480] (cris-elf) compiled by GNU C version 4.4.3 20100127 (Red Hat

[Bug middle-end/50609] [4.7 Regression] FAIL: gcc.c-torture/execute/pr23135.c compilation, -O2 -flto (ICE)

2011-10-03 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50609 Hans-Peter Nilsson hp at gcc dot gnu.org changed: What|Removed |Added Target||cris-axis-elf

[Bug other/50610] New: G++ 4.4.3: Incorrect code at -O2 (-fwrapv, SafeInt, c++ templates, template class files)

2011-10-03 Thread noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50610 Bug #: 50610 Summary: G++ 4.4.3: Incorrect code at -O2 (-fwrapv, SafeInt, c++ templates, template class files) Classification: Unclassified Product: gcc Version: 4.4.3

[Bug other/50610] G++ 4.4.3: Incorrect code at -O2 (-fwrapv, SafeInt, c++ templates, template class files)

2011-10-03 Thread noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50610 --- Comment #1 from Jeffrey Walton noloader at gmail dot com 2011-10-04 04:07:17 UTC --- My bad: jeffrey@studio:~/Desktop/safeint-opt-test$ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is

[Bug other/50610] G++ 4.4.3: Incorrect code at -O2 (-fwrapv, SafeInt, c++ templates, template class files)

2011-10-03 Thread noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50610 --- Comment #2 from Jeffrey Walton noloader at gmail dot com 2011-10-04 05:24:20 UTC --- For this problem, the work around was: try { const T* base = ptr; base += SafeIntsize_t(cnt); } catch(const SafeIntException) {

[PATCH] Maintain order of LTO sections

2011-10-03 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Currently when reading in LTO sections from ld -r files they can get randomly reordered based on hash tables and random IDs. This causes reordering later when the final code is generated and also makes crashes harder to reproduce. This patch maintains

Re: [PATCH] [mingw] fix typo: s/_REENTRANCE/_REENTRANT/

2011-10-03 Thread Ozkan Sezer
PING? On Thu, Sep 22, 2011 at 2:28 PM, Ozkan Sezer seze...@gmail.com wrote: Hi: Unless I'm missing something, the mingw CPP_SPEC changes introduced in r171833 have a typo: -D_REENTRANCE should read -D_REENTRANT . Patchlet below.  Please review, and apply if it's OK.

Re: [RFC] Context sensitive inline analysis

2011-10-03 Thread Richard Sandiford
Richard Sandiford richard.sandif...@linaro.org writes: Jan Hubicka hubi...@ucw.cz writes: the problem is sign overflow in time computation. Time should be capped by MAX_TIME and we compute MAX_TIME * INLINE_SIZE_SCALE * 2. This happens to be 2^31 2^32 so we overflow here because of use of

Re: [0/4] Modulo scheduling with haifa-sched for C6X

2011-10-03 Thread Richard Sandiford
Bernd Schmidt ber...@codesourcery.com writes: On 09/14/11 11:03, Richard Sandiford wrote: ...I didn't see from an admittedly quick read of the patch how you handle memory disambiguation between iterations. If a loop includes: lb $3,($4) sb $5,1($4) then the two instructions

Re: Initial shrink-wrapping patch

2011-10-03 Thread Richard Sandiford
Just a suggestion, but... Bernd Schmidt ber...@codesourcery.com writes: Index: gcc/cfgcleanup.c === --- gcc/cfgcleanup.c (revision 178734) +++ gcc/cfgcleanup.c (working copy) @@ -1488,6 +1488,16 @@ outgoing_edges_match (int

  1   2   >