RE: a nifty feature for c preprocessor

2012-01-01 Thread R A
i don't know if you're trying to be funny... but what's between the definition of N1 and the undef of A may be a very complex. it's just simplified for demonstration. Date: Sun, 1 Jan 2012 00:42:16 -0500 From: de...@adacore.com To:

RE: a nifty feature for c preprocessor

2012-01-01 Thread Richard Kenner
i don't know if you're trying to be funny... but what's between the definition of N1 and the undef of A may be a very complex. it's just simplified for demonstration. It's not good programming practice to have a macro (in this case A) have two different values, with an #undef between then.

Re: a nifty feature for c preprocessor

2012-01-01 Thread David Brown
On 31/12/11 10:44, R A wrote: alright, here's another example why eval is a good idea: #define A 17 #define B 153 #define N1 ((A + B)/2) /* intended was (17 + 153)/2 */ #undef A #define A 230 #define N2 ((A + B)/2) /* intended was (230 + 153)/2 */

Re: a nifty feature for c preprocessor

2012-01-01 Thread Ruben Safir
On 01/01/2012 12:42 AM, Robert Dewar wrote: On 12/31/2011 4:44 AM, R A wrote: alright, here's another example why eval is a good idea: #define A 17 #define B 153 #define N1 ((A + B)/2) /* intended was (17 + 153)/2 */ #undef A #define A 230 #define N2

Re: LTO multiple definition failures

2012-01-01 Thread Andi Kleen
Sandra Loosemore san...@codesourcery.com writes: I'm still finding my way around LTO; can anyone who's more familiar with this help narrow down where to look for the cause of this? I don't even know if this is a compiler or ld bug at this point. I'm I would look into the interaction between

[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 pinskia at gcc dot gnu.org 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 ebotcazou at gcc dot gnu.org changed: What|Removed |Added CC||ebotcazou at

[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 irar at il dot ibm.com changed: What|Removed |Added Status|NEW |ASSIGNED

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |WAITING

[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 jg at jguk dot org 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 hubicka at gcc dot gnu.org 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=gccview=revrev=182767 Log: PR

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|WAITING |NEW ---

[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 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=gccview=revrev=182768 Log: 2012-01-01 Paolo

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

[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 paolo.carlini at oracle dot com 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 paolo.carlini at oracle dot com 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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW

[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=gccview=revrev=182769 Log: PR tree-optimization/51704 *

[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 paolo.carlini at oracle dot com 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 hubicka at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[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=revisionrevision=182768 should have the additional two lines: constexpr B b1 = A10, 20,

[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 d.g.gorbachev at gmail dot com 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: http://sourceware.org/PR13495. But if that bug

[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:

[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 tkoenig at gcc dot gnu.org 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=gccview=revrev=182770 Log: 2012-01-01 Thomas König

[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 tkoenig at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 tkoenig at gcc dot gnu.org 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=gccview=revrev=182771 Log: 2012-01-01 Thomas König

[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 tkoenig at gcc dot gnu.org changed: What|Removed |Added CC||tkoenig at gcc

[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

[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 mikpe at it dot uu.se 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 mikpe at it dot uu.se changed: What|Removed |Added CC||aoliva at gcc

[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 paolo.carlini at oracle dot com 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 paolo.carlini at oracle dot com 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

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[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 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=gccview=revrev=182775 Log: /cp 2012-01-01

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 sch...@linux-m68k.org changed: What|Removed |Added Target|sparc64-linux |sparc64-linux,

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[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 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=gccview=revrev=182776 Log: /cp 2012-01-01

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

[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 marc.glisse at normalesup dot org changed: What|Removed |Added Attachment #25181|0 |1

[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

[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 paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[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 redi at gcc dot gnu.org 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 pinskia at gcc dot gnu.org 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

[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 pinskia at gcc dot gnu.org 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 pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||meta-bug

[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 pinskia at gcc dot gnu.org 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 pinskia at gcc dot gnu.org 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

[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 pinskia at gcc dot gnu.org 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

[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 jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[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

[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 jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[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 irar at il dot ibm.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 irar at il dot ibm.com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

Re: [PATCH, SMS] Prevent the creation of reg-moves for definitions with MODE_CC

2012-01-01 Thread Ayal Zaks
The attached patch prevents the creation of reg-moves for definitions with MODE_CC and thus solves this ICE. Currently testing and bootstrap on ppc64-redhat-linux, enabling SMS on loops with SC 1. OK for 4.7 once testing completes? Yes, thanks for catching this. Shouldn't we prevent creating

[PATCH] OpenBSD/amd64 support and OpenBSD/i386 cleanup

2012-01-01 Thread Mark Kettenis
The diff below adds support for OpenBSD/amd64 and cleans up the OpenBSD/i386 configury bits such that they can be shared. The OpenBSD ports people have maintained their own set of patches for these targets, but this is a re-implementation from scratch to prevent copyright issues. I have a

[C++ testcase, committed] PR 51723

2012-01-01 Thread Paolo Carlini
Hi, I'm adding the testcase and closing the issue. Thanks, Paolo. // 2012-01-01 Paolo Carlini paolo.carl...@oracle.com PR c++/51723 * g++.dg/cpp0x/constexpr-delegating2.C: New. Index: g++.dg/cpp0x/constexpr-delegating2.C

Re: [PATCH, SMS] Prevent the creation of reg-moves for definitions with MODE_CC

2012-01-01 Thread Revital Eres
Hello, Yes, thanks for catching this. Shouldn't we prevent creating such regmoves for (the other case of) intra-loop anti-deps as well? Right! sorry for missing that. I added an additional check in create_ddg_dep_from_intra_loop_link. Also, thanks to Bernhard Rosenkraenzer for opening PR

[patch] Fix PR tree-optimization/51704

2012-01-01 Thread Ira Rosen
Hi, This patch adds a check that a statement is inside the loop/basic block that is being analyzed before accessing its vect info. Bootstrapped and tested on powerpc64-suse-linux. Committed. Ira ChangeLog: PR tree-optimization/51704 * tree-vect-slp.c

[PATCH] Update copyright years

2012-01-01 Thread Jakub Jelinek
Hi! Committed to trunk as every year... 2012-01-01 Jakub Jelinek ja...@redhat.com gcc/ * gcc.c (process_command): Update copyright notice dates. * gcov.c (print_version): Likewise. * gcov-dump.c (print_version): Likewise. * mips-tfile.c (main): Likewise.

Re: [PATCH SMS 2/2, RFC] Register pressure estimation for the partial schedule (re-submission)

2012-01-01 Thread Revital Eres
Hello, Thanks for the comments! I incorporated them in the attached patch. Currently testing and bootstrap with the other patch in the series on ppc64-redhat-linux, enabling SMS on loops with SC 1. Thanks again, Revital 2012-01-01 Richard Sandiford richard.sandif...@linaro.org

Re: [C++ Patch] PR 51379

2012-01-01 Thread Jason Merrill
OK. Jason

[C++ Patch] PR 16603

2012-01-01 Thread Paolo Carlini
Hi, in the audit trail of this *old* PR, which is about the miscompilation of: char const c = 'q'; enum { x = c, y = sizeof(x) }; int test[y == sizeof(char) ? 1 : -1]; Andrew noticed that the problem is in the perform_integral_promotions call at the beginning of

Re: [C++ Patch] PR 16603

2012-01-01 Thread Jason Merrill
On 01/01/2012 03:17 PM, Paolo Carlini wrote: Andrew noticed that the problem is in the perform_integral_promotions call at the beginning of build_enumerator. Now, the funny thing is, I don't see why we should be calling it at all! Indeed, 7.2 seems pretty clear that we shouldn't. OK. Jason

[PATCH] RFC: Interix resurrection

2012-01-01 Thread Douglas Rupp
This is for 32bit, C language only. Tested by cross and then cross-native from x86_64 Linux --Doug 2012-01-01 Douglas B Rupp r...@gnat.com toplevel/config/mh-interix: Remove as unneeded. toplevel/config/picflag.m4 (i[[34567]]86-*-interix3*): Change triplet to

[patch libstdc++]: Fix PR/51673

2012-01-01 Thread Kai Tietz
Hello, additionally to the suggested patch by Pawel Sikora, I added the adjustments for mt-allocator to it too. ChangeLog 2012-01-01 Kai Tietz kti...@redhat.com PR libstc++/51673 * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete operators signature for

Re: [Patch, Fortran] PR 51682 - Fix coarray issues with -fdefault-integer-8

2012-01-01 Thread Mikael Morin
On 31/12/2011 18:03, Tobias Burnus wrote: OK for the trunk? OK Thanks Mikael

Re: [patch libstdc++]: Fix PR/51673

2012-01-01 Thread Paolo Carlini
Hi, Hello, additionally to the suggested patch by Pawel Sikora, I added the adjustments for mt-allocator to it too. ChangeLog 2012-01-01 Kai Tietzkti...@redhat.com PR libstc++/51673 * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete operators signature

[RFH / Patch] PR 20140

2012-01-01 Thread Paolo Carlini
Hi, I'm trying to do something about this old PR, which I find rather disturbing: I see what's going wrong - and shouldn't be too hard to fix, but I'd like to have help on the appropriate way to actually do it. We have this kind of snippet: templatetypename T void foo() { unsigned char

Re: [RFH / Patch] PR 20140

2012-01-01 Thread Jason Merrill
On 01/01/2012 08:10 PM, Paolo Carlini wrote: The analysis is confirmed by the fact that the rather heavy handed patchlet which I'm attaching, which uses copy_node to avoid the corruption, works. How do we normally handle this kind of situation? In most cases, trees are unshared at

[SH] PR 31640 - cache block alignment is too aggressive on sh-elf

2012-01-01 Thread Oleg Endo
The attached patch addresses PR 31640. It reduces the the default function alignment when not optimizing for size from cache line size (32 bytes) to 4 bytes and sets the loop alignment to 4 bytes when not optimizing for size. Moreover, it brings back the -falign-loops option which was always

Re: [RFH / Patch] PR 20140

2012-01-01 Thread Paolo Carlini
On 01/02/2012 02:49 AM, Jason Merrill wrote: On 01/01/2012 08:10 PM, Paolo Carlini wrote: The analysis is confirmed by the fact that the rather heavy handed patchlet which I'm attaching, which uses copy_node to avoid the corruption, works. How do we normally handle this kind of situation? In

Re: Keep static VTA locs in cselib tables only

2012-01-01 Thread Hans-Peter Nilsson
From: Alexandre Oliva aol...@redhat.com Date: Sat, 31 Dec 2011 20:57:24 +0100 * cselib.h (cselib_add_permanent_equiv): Declare. (canonical_cselib_val): New. * cselib.c (new_elt_loc_list): Rework to support value equivalences. Adjust all callers.