[C++ Patch] deprecation of access declarations

2011-12-28 Thread Fabien Chêne
Hi, As previously announced, here is a patch that deprecate access declarations . I did a little tour in the GCC museum old-deja --and in g++.dg as well -- to disinter and adjust those dusty tests. To avoid false positive on invalid code, I have decided to only emit the warning if the access decla

RE: PING: [PATCH, ARM, iWMMXt][3/5]: built in define and expand

2011-12-28 Thread Xinyu Qi
> At 2011-11-24 09:27:04,"Xinyu Qi" wrote: > > At 2011-11-19 07:08:22,"Ramana Radhakrishnan" > > wrote: > > > On 20 October 2011 08:39, Xinyu Qi wrote: > > > > Ping > > > > > > > > http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01103.html > > > > > > > >        * config/arm/arm.c (enum arm_builtin

RE: PING: [PATCH, ARM, iWMMXt][2/5]: intrinsic head file change

2011-12-28 Thread Xinyu Qi
* config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics. Use __IWMMXT2__ to enable iWMMXt2 intrinsics. Use C name-mangling for intrinsics. (__v8qi): Redefine. (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise. (_mm_sad_pu16, _mm_ali

RE: [PATCH, ARM, iWMMXt][1/5]: ARM code generic change

2011-12-28 Thread Xinyu Qi
> At 2011-12-15 00:47:48,"Richard Earnshaw" wrote: > > On 14/07/11 08:35, Xinyu Qi wrote: > > >>> Hi, > > >>> > > >>> It is the first part of iWMMXt maintenance. > > >>> > > >>> *config/arm/arm.c (arm_option_override): > > >>> Enable iWMMXt with VFP. iWMMXt and NEON are incompatible. > > >> iWMM

RE: PING: [PATCH, ARM, iWMMXt][4/5]: WMMX machine description

2011-12-28 Thread Xinyu Qi
At 2011-12-22 17:53:45,"Richard Earnshaw" wrote: > On 22/12/11 06:38, Xinyu Qi wrote: > > At 2011-12-15 01:32:13,"Richard Earnshaw" wrote: > >> On 24/11/11 01:33, Xinyu Qi wrote: > >>> Hi Ramana, > >>> > >>> I solve the conflict, please try again. The new diff is attached. > >>> > >>> Thanks, >

Re: [wwwdocs] - changes to GUPC page

2011-12-28 Thread Mike Stump
On Dec 28, 2011, at 1:52 PM, Nenad Vukicevic wrote: > -systems (Leopard 10.5.7+ and Snow Leopard 10.6) > +systems (Leopard 10.5.7+, Snow Leopard 10.6, and Lion 1.7) 1.7? Should this be 10.7?

[libitm] Remove variadic argument of _ITM_beginTransaction from libitm.h

2011-12-28 Thread Patrick Marlier
With i386, the regparm(2) is not taken into account when there is a variadic function. All parameters are in the stack. Since this variable argument is never used removing it is not a problem. This solves libitm testcases memset-1.c/memcpy-1.c on i686 (part of PR51655/51124). Before: FAIL: li

Use DW_LANG_Go for Go

2011-12-28 Thread Ian Lance Taylor
This patch to gcc uses the new DW_LANG_Go DWARF language code for Go. Bootstrapped and ran testsuite on x86_64-unknown-linux-gnu. Committed on the basis of 1) I am a middle-end maintainer; 2) I am a Go maintainer; 3) the patch is obvious. Ian 2011-12-28 Ian Lance Taylor * dwarf2out.

[C++ Patch] PR 51316

2011-12-28 Thread Paolo Carlini
Hi, I think the resolution of core/930 and C++11 itself are pretty clear: alignof of an array of unknown bound is fine, provided the element type is complete of course. Tested x86_64-linux. Thanks, Paolo. // /c-family 2011-12-29 Paolo Carlini PR c++/51316

Re: [SH] Fix defunct -mbranch-cost option

2011-12-28 Thread Kaz Kojima
Oleg Endo wrote: > while working on another PR I've noticed that the -mbranch-cost option > in the SH target is not really working. The attached patch brings it > back to life, leaving the default behavior unchanged. > > Cheers, > Oleg > > > 2011-12-28 Oleg Endo > > * config/sh/sh.h

[wwwdocs] - changes to GUPC page

2011-12-28 Thread Nenad Vukicevic
Hello, I updated GUPC page with the Download section. Attached is a patch. Ok to commit? Feedback is appreciated. Nenad Index: htdocs/projects/gupc.html === RCS file: /cvs/gcc/wwwdocs/htdocs/projects/gupc.html,v retrieving revision

Re: PR rtl-optimization/51069 (verify_loop_info failed)

2011-12-28 Thread Zdenek Dvorak
Hi, > Just a nit, can't you break out of the loop when irred_invalidated is set to > true as well? There is no need to look through any further edges. I.e. > perhaps: > if (!irred_invalidated) > FOR_EACH_EDGE (ae, ei, e->src->succs) > if (ae != e > && ae->dest != EXIT_BLOCK_P

[PATCH] PR testsuite/51097 fix: a lot of "FAIL: gcc.dg/vect" on i686 avx build 181167 to 181177

2011-12-28 Thread Igor Zamyatin
Hi, Here is another patch about failures in gcc.dg/vect tests. These changes fix fails that could be seen on avx-built compilers. It also introduces no FAILs/XFAILs/XPASSes/ERRORs on regular i686, x86_64, avx2_32, avx2_64. Is it ok for the trunk? Thanks, Igor 2011-12-28  Igor Zamyatin          

MAINTAINERS: Add myself

2011-12-28 Thread Oleg Endo
Just commited: * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS === --- MAINTAINERS (revision 182712) +++ MAINTAINERS (working copy) @@ -352,6 +352,7 @@ Michael Eager ea..

Re: Ping**1.57 [Patch, fortran] Improve common function elimination

2011-12-28 Thread Steve Kargl
On Wed, Dec 28, 2011 at 04:21:55PM +0100, Thomas Koenig wrote: > http://gcc.gnu.org/ml/fortran/2011-12/msg00102.html > > >OK for trunk? > I did not test the patch, but it appears correct to me. OK. -- Steve

Re: [PATCH] PowerPC section type conflict (created PR 51623)

2011-12-28 Thread Michael Meissner
On Wed, Dec 28, 2011 at 12:34:25PM -0800, Richard Henderson wrote: > On 12/28/2011 09:39 AM, Michael Meissner wrote: > > && in_section != text_section > > - && !unlikely_text_section_p (in_section) > > + && (in_section && (in_section->common.flags & SECTION_CODE)) == 0 > > You should

Ping [ARM back-end and middle-end patch] stack check for threads

2011-12-28 Thread Thomas Klein
ping I would like to introduce two new -fstack-check options named direct and indirect. Targets that did not supporting the new stack checking options will work as before. At the ARM platform the old generic options is working as before. (Including that is now possible to have a checking code

Re: [PATCH] PowerPC section type conflict (created PR 51623)

2011-12-28 Thread Richard Henderson
On 12/28/2011 09:39 AM, Michael Meissner wrote: > && in_section != text_section > - && !unlikely_text_section_p (in_section) > + && (in_section && (in_section->common.flags & SECTION_CODE)) == 0 You should be able to delete the text_section test as well, and in_section should *

Re: [PATCH] Don't optimize away non-pure/const calls during ccp (PR tree-optimization/51683)

2011-12-28 Thread Jakub Jelinek
On Wed, Dec 28, 2011 at 11:53:41AM -0800, Nathan Froyd wrote: > - Original Message - > > else if (is_gimple_call (def_stmt)) > > { > > + int flags = gimple_call_flags (def_stmt); > > + > > + /* Don't optimize away calls that have side-effects. */ > > + if ((flags & (ECF_CONST|ECF_PURE)) ==

Re: [PATCH] Don't optimize away non-pure/const calls during ccp (PR tree-optimization/51683)

2011-12-28 Thread Nathan Froyd
- Original Message - > else if (is_gimple_call (def_stmt)) > { > + int flags = gimple_call_flags (def_stmt); > + > + /* Don't optimize away calls that have side-effects. */ > + if ((flags & (ECF_CONST|ECF_PURE)) == 0 > + || (flags & ECF_LOOPING_CONST_OR_PURE)) This patch does this computat

Re: [patch testsuite g++.old-deja]: Fix some testcases for mingw targets

2011-12-28 Thread Mike Stump
On Dec 27, 2011, at 10:55 PM, Kai Tietz wrote: > Ping It was previously approved in the email you quote. See the Ok buried in there. > 2011/12/15 Dave Korn : >> On 15/12/2011 17:44, Mike Stump wrote: >>> On Dec 15, 2011, at 1:43 AM, Kai Tietz wrote: This patch takes care that we are using

Re: [patch testsuite g++.dg]: Reflect ABI change for windows native targets about bitfield layout in structures

2011-12-28 Thread Mike Stump
On Dec 16, 2011, at 9:56 AM, Dave Korn wrote: > On 16/12/2011 09:01, Kai Tietz wrote: >> 2011/12/15 Dave Korn: > >>> { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } } >>> { dg-additional-options "-mno-ms-bitfields" { target i?86-*-mingw* } } >>> >>> ... so that MinGW ge

Re: PR rtl-optimization/51069 (verify_loop_info failed)

2011-12-28 Thread Jan Hubicka
> Just a nit, can't you break out of the loop when irred_invalidated is set to > true as well? There is no need to look through any further edges. I.e. Sure, though we do have horrible time complexity in case irreducible regions are including recomputing the whole CFG flags after every path remo

[SH] Fix defunct -mbranch-cost option

2011-12-28 Thread Oleg Endo
Hello, while working on another PR I've noticed that the -mbranch-cost option in the SH target is not really working. The attached patch brings it back to life, leaving the default behavior unchanged. Cheers, Oleg 2011-12-28 Oleg Endo * config/sh/sh.h (BRANCH_COST): Use sh_branch_c

[PATCH] Don't optimize away non-pure/const calls during ccp (PR tree-optimization/51683)

2011-12-28 Thread Jakub Jelinek
Hi! For some calls (like memcpy and other builtins that are known to pass through the first argument) we know the value of the lhs, but still we shouldn't be replacing the call with just a mere assignment of that known value to the LHS SSA_NAME, because the call has other side-effects. Fixed thusl

Re: PR rtl-optimization/51069 (verify_loop_info failed)

2011-12-28 Thread Jakub Jelinek
On Wed, Dec 28, 2011 at 07:31:57PM +0100, Jan Hubicka wrote: > *** cfgloopmanip.c(revision 182708) > --- cfgloopmanip.c(working copy) > *** remove_path (edge e) > *** 290,295 > --- 290,296 > int i, nrem, n_bord_bbs; > sbitmap seen; > bool irred_invalidated

PR rtl-optimization/51069 (verify_loop_info failed)

2011-12-28 Thread Jan Hubicka
Hi, in this testcase peeling of loop contaiing irreducible region leads to increasing size of the region (by removing the conditional path into it). remove_path is not quite ready for this scenario. Still it would be nice to avoid us creating irreducible region in cases where they are not. Bootst

Re: [PATCH] PowerPC section type conflict (created PR 51623)

2011-12-28 Thread Michael Meissner
On Mon, Dec 19, 2011 at 11:45:35PM +0800, Chung-Lin Tang wrote: > On 2011/12/19 上午 03:18, Richard Henderson wrote: > > On 12/17/2011 10:36 PM, Chung-Lin Tang wrote: > >> I don't think it's that kind of problem; the powerpc backend uses > >> unlikely_text_section_p(), which compares the passed in ar

Ping**1.57 [Patch, fortran] Improve common function elimination

2011-12-28 Thread Thomas Koenig
http://gcc.gnu.org/ml/fortran/2011-12/msg00102.html OK for trunk? Regards Thomas

Re: RFC: An alternative -fsched-pressure implementation

2011-12-28 Thread Richard Sandiford
Vladimir Makarov writes: >> In the end I tried an ad-hoc approach in an attempt to do something >> about (2), (3) and (4b). The idea was to construct a preliminary >> "model" schedule in which the only objective is to keep register >> pressure to a minimum. This schedule ignores pipeline charact

[C++ testcase, commited] PR 51547

2011-12-28 Thread Paolo Carlini
[resend: the first time the message didn't get through because miscategorized as spam] Hi, I'm adding the testcase to mainline and closing the PR. Thanks, Paolo. / 2011-12-27 Paolo Carlini PR c++/51547 * g++.dg/cpp0x/pr51547.C: New. Index: g++.dg/cpp

Ping: backport fix for PR 48660 (assigning to BLKmode return regs)

2011-12-28 Thread Richard Sandiford
Ping for backporting this expand patch, which fixes an ice-on-valid regression from 4.4 while compiling certain C++ packages on ARM: http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01550.html As I understand it, this bug is the only reason Ubuntu is keeping a GCC 4.4 package: there's no known wor

[PATCH, testsuite]: Use dg-add-options ieee in gcc.dg/torture/pr50396.c

2011-12-28 Thread Uros Bizjak
Hello! Some targets (i.e. alpha) need -mieee to handle NaNs. 2011-12-28 Uros Bizjak * gcc.dg/torture/pr50396.c: Use dg-add-options ieee. Tested on alphaev68-pc-linux-gnu, committed to mainline SVN and 4.6. Uros. Index: gcc.dg/torture/pr50396.c ==

[patch] Fix PR tree-optimization/51684

2011-12-28 Thread Ira Rosen
Hi, This patch fixes an attempt to access gsi of pattern statement. Bootstrapped and tested on ia64-unknown-linux-gnu by Uros and on powerpc64-suse-linux by me. Committed. Ira ChangeLog: PR tree-optimization/51684 * tree-vect-slp.c (vect_schedule_slp_instance): Get gsi of ori