RE: [PATCH] Wire-up missing ARM iwmmxt intrinsics (bugs 35294, 36798, 36966)

2011-08-19 Thread Xinyu Qi
At 2011-08-19 12:18:10,Matt Turner matts...@gmail.com wrote: Subject: Re: On Fri, Aug 19, 2011 at 12:13 AM, Matt Turner matts...@gmail.com wrote: Hi, Attached is a patch based on gcc-4.6.1 that wires-up missing ARM iwmmxt intrinsics. Without it, gcc is completely useless when it comes

Re: [PATCH Atom][PR middle-end/44382] Tree reassociation improvement

2011-08-19 Thread Ilya Enkovich
Ping. 2011/8/10 Ilya Enkovich enkovich@gmail.com: Hello, Here is a new version of the patch. Changes from the previous version (http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02240.html):  - updated to trunk  - TODO_remove_unused_locals flag was removed from todo_flags_finish of reassoc

Re: C1X _Noreturn

2011-08-19 Thread Richard Sandiford
Joseph S. Myers jos...@codesourcery.com writes: As far as I know MIPS is no longer using the old SDE library and it is considered superseded by newlib, Hadn't realised that. so perhaps that configuration (mips*-sde-elf* without newlib) should actually be deprecated/removed (and mipssde

Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections

2011-08-19 Thread Jakub Jelinek
Sorry for the delay. --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -186,6 +186,9 @@ # configure_default_options #Set to an initializer for configure_default_options #in configargs.h, based on --with-cpu et cetera. +# +# use_initfini_array

Re: [cxx-mem-model] Atomic C++ header file changes

2011-08-19 Thread Torvald Riegel
On Wed, 2011-08-17 at 11:39 -0400, Andrew MacLeod wrote: Turns out, C++ will allow you to specify the memory model as a variable of type enum memory_order... WTF? I would expect that to be pretty uncommon, and in order to get that right, we'd need a switch statement and call the

Re: [PATCH, testsuite, i386] AVX2 support for GCC

2011-08-19 Thread Kirill Yukhin
It was checked in by HJ http://gcc.gnu.org/viewcvs?view=revisionrevision=177876 I am testing next patch. Thanks, K On Thu, Aug 11, 2011 at 1:16 PM, Kirill Yukhin kirill.yuk...@gmail.com wrote: Hi Uros, Thanks for patience reviewing my English :) and for finding a bug in souces. Updated

Re: [4.7][google]Support for getting CPU type and feature information at run-time. (issue4893046)

2011-08-19 Thread Richard Guenther
On Fri, Aug 19, 2011 at 12:08 AM, Richard Henderson r...@redhat.com wrote: On 08/18/2011 02:51 PM, Sriraman Tallam wrote: Oh!, right, sorry. So, the only available option now is to mark it as a constructor in libgcc. Or call it explicitly from the out-of-line tests. The thing is, if you

Re: [4.7][google]Support for getting CPU type and feature information at run-time. (issue4893046)

2011-08-19 Thread Jakub Jelinek
On Fri, Aug 19, 2011 at 11:04:11AM +0200, Richard Guenther wrote: On Fri, Aug 19, 2011 at 12:08 AM, Richard Henderson r...@redhat.com wrote: On 08/18/2011 02:51 PM, Sriraman Tallam wrote: Oh!, right, sorry. So, the only available option now is to mark it as a constructor in libgcc. Or

Re: [Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.

2011-08-19 Thread Janus Weil
Ping! (Maybe I should have posted the follow-up patch in a separate thread to make it more visible.) 2011/8/13 Janus Weil ja...@gcc.gnu.org: Hi Thomas, hi all, 2011/8/7 Thomas Koenig tkoe...@netcologne.de: When extending the values of gfc_dep_compare_expr, we will need to go through all

Re: [PATCH, ARM] Generate conditional compares in Thumb2 state

2011-08-19 Thread Ramana Radhakrishnan
Regression test against cortex-M0/M3/M4 profile with -mthumb option doesn't show any new failures. Please test on ARM state as well and make sure there are no regressions before committing. Ok if no regressions. Ramana Thanks, -Jiangning

Re: PATCH: Change ix86_isa_flags to HOST_WIDE_INT

2011-08-19 Thread Joseph S. Myers
One of these patches appears to have broken bootstrap on x86_64-unknown-linux-gnu with Ada enabled: In file included from ../../tm.h:19:0, from targext.c:48: ../../options.h:3533:3: error: unknown type name 'HOST_WIDE_INT' ../../options.h:3534:3: error: unknown type name

Re: [c6x] Fix libgcc/soft-fp move fallout

2011-08-19 Thread Rainer Orth
Richard, Rainer, I know you're in the middle of libgcc2_extras, so I don't want to commit something that conflicts and may well be out-of-date any minute. But these c6x bits got missed after the soft-fp move. yep, c6x support got in while the soft-fp patch was almost ready. I've

Re: [Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.

2011-08-19 Thread Mikael Morin
On Friday 19 August 2011 12:05:02 Janus Weil wrote: Ping! (Maybe I should have posted the follow-up patch in a separate thread to make it more visible.) I saw it, had a quick glance, thought that Thomas would jump on it, and forgot. Sorry. 2011/8/13 Janus Weil ja...@gcc.gnu.org: Hi

Re: [Patch, fortran] PR fortran/50050 out of bounds whilst freeing an allocate-object.

2011-08-19 Thread Dominique Dhumieres
I have regstrapped several time with the patch without regression or failure on my own tests. Could someone review the patch? Dominique

Re: [commit, spu] Improve address generation for large stack frames

2011-08-19 Thread Ulrich Weigand
Richard Henderson wrote: On 08/16/2011 11:35 AM, Ulrich Weigand wrote: + /* Reload the displacement. */ + push_reload (XEXP (ad, 1), NULL_RTX, XEXP (ad, 1), NULL, + BASE_REG_CLASS, GET_MODE (ad), VOIDmode, 0, 0, + opnum, (enum reload_type) type);

[PATCH] Some data-dep testcases

2011-08-19 Thread Richard Guenther
While working on PR50067, with some local changes I made them fail. Tested on x86_64-unknown-linux-gnu, applied. Richard. 2011-08-19 Richard Guenther rguent...@suse.de * gcc.dg/torture/pr50067-1.c: New testcase. * gcc.dg/torture/pr50067-2.c: Likewise. Index:

[PATCH][1/2] Fixup dr_analyze_indices, fix PR50067

2011-08-19 Thread Richard Guenther
This is a first piece of dr_analyze_indices TLC, simplifying it (no INDIRECT_REFs anymore) and fixing one appearant bug (but not 50067 yet), that we strip the MEM_REF offset even if we didn't account for it (if !nest). Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. Richard.

Re: [cxx-mem-model] Atomic C++ header file changes

2011-08-19 Thread Andrew MacLeod
On 08/19/2011 04:57 AM, Torvald Riegel wrote: On Wed, 2011-08-17 at 11:39 -0400, Andrew MacLeod wrote: That would be quite ugly, and you get what you deserve if you do that. I changed the builtins so that if you dont specify a compile time constant in the memory model parameter, it will simply

Re: [PATCH, testsuite, i386] BMI2 support for GCC

2011-08-19 Thread H.J. Lu
On Fri, Aug 19, 2011 at 2:23 AM, Kirill Yukhin kirill.yuk...@gmail.com wrote: Hi guys, I've prepared a patch which enables BMI2 extensions in GCC It conforms (hopefully) to Spec which can be found at [1] I am attaching following files:  - bmi2.gcc.patch. Bunch of changes to GCC  -

[PATCH][2/2] Fixup dr_analyze_indices, fix PR50067

2011-08-19 Thread Richard Guenther
This is the fix for the testcase in PR50067. We strip outermost (yes, outermost only, which makes it very inefficient) MEM_REFs which causes the DR base objects in the PR to agree for two conflicting DRs, but with the issues we have with how we compose access functions they still get

Re: [pph] Add support for line table streaming with includes (issue 4908051)

2011-08-19 Thread dnovillo
Very nice. One potential application of this in the future would be to not only sequence the included files, but also the symbols and types. To support the cases where a child include depends on symbols exported by the parent before its inclusion (though I'm not sure we want to really support

Re: [Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.

2011-08-19 Thread Tobias Burnus
On 08/19/2011 01:55 PM, Mikael Morin wrote: OK from my side for the code proper. I have one comment though about this: +/* Compare two expressions. Return values: + * +1 if e1 e2 + * 0 if e1 == e2 + * -1 if e1 e2 + * -2 if the relationship could not be determined + * -3 if e1 /=

[testsuite] Require C99 runtime in gcc.dg/builtins-67.c, gcc.target/i386/conversion.c

2011-08-19 Thread Rainer Orth
Uros' two new testcases were failing on Solaris (both SPARC and x86) like this: FAIL: gcc.dg/builtins-67.c (test for excess errors) Excess errors: In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/builtins-67.c:6:0:

Re: [PATCH, testsuite, i386] BMI2 support for GCC

2011-08-19 Thread Jakub Jelinek
On Fri, Aug 19, 2011 at 05:18:19PM +0400, Kirill Yukhin wrote: Thanks, it is fixed. Update patch is attached. + /* We generatin RORX instruction, freedom of register + +flags not affected */

Re: C1X _Noreturn

2011-08-19 Thread Joseph S. Myers
On Thu, 18 Aug 2011, Gabriel Dos Reis wrote: On Thu, Aug 18, 2011 at 4:37 PM, Joseph S. Myers jos...@codesourcery.com wrote: The new keyword is C-only (C++0x has a different way of declaring non-returning functions) and I did not try to make the header do anything useful if included in

[PATCH] Fix !$omp workshare (PR fortran/49792)

2011-08-19 Thread Jakub Jelinek
Hi! As the first testcase shows, if we need a temporary for array assignment, we can't easily parallelize it (we'd have to emit the temporary allocation into a OMP_SINGLE, then copyprivate the result to all the other threads, then do the OMP_FOR and afterwards OMP_SINGLE again to free it).

Re: C1X _Noreturn

2011-08-19 Thread Rainer Orth
Richard Sandiford rdsandif...@googlemail.com writes: so perhaps that configuration (mips*-sde-elf* without newlib) should actually be deprecated/removed (and mipssde threads along with it). Yeah, sounds like a good plan. Good to know :-) Could have saved me a little bit of work with the

Re: [rtl, delay-slot] Fix overload of unchanging bit

2011-08-19 Thread Hans-Peter Nilsson
Date: Thu, 18 Aug 2011 15:48:41 -0700 From: Richard Henderson r...@redhat.com The following has passed stage2-gcc on sparc64-linux host (full build still in progress), with --enable-checking=yes,rtl. It surely needs more than that, and I'm asking for help from the relevant maintainers to

Re: [PATCH, testsuite, i386] BMI2 support for GCC

2011-08-19 Thread H.J. Lu
No need for () in (mode == SImode): + !optimize_function_for_size_p (cfun) + ((mode == SImode) || (mode == DImode TARGET_64BIT)) Wrong placement of '{': + if (can_create_pseudo_p () MODEmode != SImode) { +rtx tmp = gen_rtx_REG (MODEmode, 0); +emit_insn

Re: [PATCH (1/7)] New optab framework for widening multiplies

2011-08-19 Thread Andrew Stubbs
On 22/07/11 16:34, Andrew Stubbs wrote: On 22/07/11 14:28, Bernd Schmidt wrote: Oh well, let's shelve it and do it later. Here's an updated patch with the formatting problem you found fixed. I've just committed an updated version of this patch (attached). I found a number of subtle bugs

Re: [PATCH 1/7] Linemap infrastructure for virtual locations

2011-08-19 Thread Tom Tromey
Jason == Jason Merrill ja...@redhat.com writes: + LC_ENTER_MACRO + /* stringize */ + /* paste */ Jason What is the purpose of these comments? That is left over from my initial hack. The new scheme doesn't (yet?) properly handle locations arising from stringizing or token pasting. Tom

Re: [PATCH (2/7)] Widening multiplies by more than one mode

2011-08-19 Thread Andrew Stubbs
On 14/07/11 15:15, Richard Guenther wrote: Is this version OK? Ok. I've just committed this slightly updated patch. I found some bugs while testing, now fixed. Most of the changes in this patch are context changes, and using widened_mode to handle VOIDmode constants. Andrew 2011-08-19

Re: [PATCH, testsuite, i386] BMI2 support for GCC

2011-08-19 Thread H.J. Lu
It is hard to tell. Can you double check indentation on + if (can_create_pseudo_p () MODEmode != SImode) + { +rtx tmp = gen_rtx_REG (MODEmode, 0); +emit_insn (gen_extendsidi2 (tmp, operands[2])); +operands[2] = tmp; + } On Fri, Aug 19, 2011 at 7:13 AM, Kirill Yukhin

Re: [PATCH (3/7)] Widening multiply-and-accumulate pattern matching

2011-08-19 Thread Andrew Stubbs
On 12/07/11 11:52, Richard Guenther wrote: Is this one ok? Ok. I've just committed this slightly modified patch. The changes are mainly in the context and the testcase. Andrew 2011-08-19 Andrew Stubbs a...@codesourcery.com gcc/ * tree-ssa-math-opts.c (convert_plusminus_to_widen):

Re: [PATCH (4/7)] Unsigned multiplies using wider signed multiplies

2011-08-19 Thread Andrew Stubbs
On 14/07/11 15:25, Richard Guenther wrote: Ok. Committed, with no real changes. I just updated the testcase a little. Andrew 2011-08-19 Andrew Stubbs a...@codesourcery.com gcc/ * tree-ssa-math-opts.c (convert_mult_to_widen): Convert unsupported unsigned multiplies to signed.

Re: [PATCH][2/2] Fixup dr_analyze_indices, fix PR50067

2011-08-19 Thread Richard Guenther
On Fri, 19 Aug 2011, Richard Guenther wrote: This is the fix for the testcase in PR50067. We strip outermost (yes, outermost only, which makes it very inefficient) MEM_REFs which causes the DR base objects in the PR to agree for two conflicting DRs, but with the issues we have with how we

Re: [PATCH][2/2] Fixup dr_analyze_indices, fix PR50067

2011-08-19 Thread Richard Guenther
On Fri, 19 Aug 2011, Richard Guenther wrote: On Fri, 19 Aug 2011, Richard Guenther wrote: This is the fix for the testcase in PR50067. We strip outermost (yes, outermost only, which makes it very inefficient) MEM_REFs which causes the DR base objects in the PR to agree for two

Re: [PATCH (5/7)] Widening multiplies for mis-matched mode inputs

2011-08-19 Thread Andrew Stubbs
On 14/07/11 15:31, Richard Guenther wrote: Ok. I've just committed this patch with no real changes. I've just updated the testcase. Andrew 2011-08-19 Andrew Stubbs a...@codesourcery.com gcc/ * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME. Ensure the the larger type is the

Re: [PATCH (1/7)] New optab framework for widening multiplies

2011-08-19 Thread Richard Guenther
On Fri, Aug 19, 2011 at 4:18 PM, Andrew Stubbs a...@codesourcery.com wrote: On 22/07/11 16:34, Andrew Stubbs wrote: On 22/07/11 14:28, Bernd Schmidt wrote: Oh well, let's shelve it and do it later. Here's an updated patch with the formatting problem you found fixed. I've just committed an

Re: [PATCH (6/7)] More widening multiply-and-accumulate pattern matching

2011-08-19 Thread Andrew Stubbs
On 14/07/11 15:35, Richard Guenther wrote: Ok. I've just committed this updated patch. I found bugs with VOIDmode constants that have caused me to recast my patches to is_widening_mult_rhs_p. They should be logically the same for non VOIDmode cases, but work correctly for constants. I think

Re: [PATCH (1/7)] New optab framework for widening multiplies

2011-08-19 Thread Andrew Stubbs
On 19/08/11 15:45, Richard Guenther wrote: Seems one in the series has broken bootstrap on x86_64 when building the 32bit libgcc multilib in stage1. Oh? Hopefully that'll be fixed when I complete the patchset. Patches 8 and 9 (of 7) did fix issues with the earlier patches. Andrew

Re: [PATCH, testsuite, i386] BMI2 support for GCC

2011-08-19 Thread Kirill Yukhin
Done. Patch attached in previous mail K On Fri, Aug 19, 2011 at 6:51 PM, Kirill Yukhin kirill.yuk...@gmail.com wrote: On Fri, Aug 19, 2011 at 6:31 PM, H.J. Lu hjl.to...@gmail.com wrote: It is hard to tell.  Can you double check indentation on +  if (can_create_pseudo_p () MODEmode !=

Re: Vector Comparison patch

2011-08-19 Thread Richard Guenther
On Fri, Aug 19, 2011 at 2:29 AM, Artem Shinkarov artyom.shinkar...@gmail.com wrote: Hi, I had the problem with passing information about single variable from expand_vec_cond_expr optab into ix86_expand_*_vcond. I looked into it this problem for quite a while and found a solution. Now the

Re: [PATCH (7/7)] Mixed-sign multiplies using narrowest mode

2011-08-19 Thread Andrew Stubbs
On 14/07/11 15:41, Richard Guenther wrote: Ok. Committed, unchanged apart from the test case. Andrew 2011-08-19 Andrew Stubbs a...@codesourcery.com gcc/ * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle unsigned inputs of different modes. (convert_plusminus_to_widen):

Re: [PATCH (8/7)] Fix a bug in multiply-and-accumulate

2011-08-19 Thread Andrew Stubbs
On 21/07/11 14:14, Andrew Stubbs wrote: Here is the patch I plan to commit, when patch 1 is approved, and my testing is complete. Committed, unchanged. Andrew

Re: [PATCH (9/7)] Widening multiplies with constant inputs

2011-08-19 Thread Andrew Stubbs
On 22/07/11 16:38, Andrew Stubbs wrote: Fixed in the attached. I'll commit this version when the rest of my testing is complete. Now committed. Here's the patch with updated context. Andrew 2011-08-19 Andrew Stubbs a...@codesourcery.com gcc/ * tree-ssa-math-opts.c

Re: Vector Comparison patch

2011-08-19 Thread Artem Shinkarov
On Fri, Aug 19, 2011 at 3:54 PM, Richard Guenther richard.guent...@gmail.com wrote: On Fri, Aug 19, 2011 at 2:29 AM, Artem Shinkarov artyom.shinkar...@gmail.com wrote: Hi, I had the problem with passing information about single variable from expand_vec_cond_expr optab into ix86_expand_*_vcond.

Re: [PATCH (1/7)] New optab framework for widening multiplies

2011-08-19 Thread Andrew Stubbs
On 19/08/11 15:51, Andrew Stubbs wrote: On 19/08/11 15:45, Richard Guenther wrote: Seems one in the series has broken bootstrap on x86_64 when building the 32bit libgcc multilib in stage1. Oh? Hopefully that'll be fixed when I complete the patchset. Patches 8 and 9 (of 7) did fix issues with

Re: RFA: Avoiding unprofitable speculation

2011-08-19 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/18/11 15:59, Richard Henderson wrote: On 08/17/2011 12:21 AM, Richard Guenther wrote: The patch itself looks sensible, though I am surprised ifcvt doesn't run in cfglayout mode (so you have to use reg notes to find probabilities ...) It

Re: [PATCH (9/7)] Widening multiplies with constant inputs

2011-08-19 Thread H.J. Lu
On Fri, Aug 19, 2011 at 8:07 AM, Andrew Stubbs a...@codesourcery.com wrote: On 22/07/11 16:38, Andrew Stubbs wrote: Fixed in the attached. I'll commit this version when the rest of my testing is complete. Now committed. Here's the patch with updated context. I think one of your patches

Add __builtin_complex to construct complex values (C1X CMPLX* macros)

2011-08-19 Thread Joseph S. Myers
This patch adds __builtin_complex to support generating values with arbitrary real and imaginary parts, including in static initializers, despite the absence of imaginary types. (Recall that X + I * Y, in the absence of imaginary types, is really X + Y * (0.0 + 1.0I), resulting in a real part X +

Re: Linemap force location and remove LINEMAP_POSITION_FOR_COLUMN (issue4801090)

2011-08-19 Thread Tom Tromey
Gabriel == Gabriel Charette gch...@google.com writes: Gabriel It nows exposes two libcpp functions to force the Gabriel source_location for tokens when desired. I am not really a fan of this approach, but I see why you did it this way -- anything else would be very invasive. I can only approve

Re: [PATCH, PR43864] Gimple level duplicate block cleanup - test cases.

2011-08-19 Thread Tom de Vries
On 07/17/2011 08:33 PM, Tom de Vries wrote: Updated version. On 06/08/2011 11:45 AM, Tom de Vries wrote: On 06/08/2011 11:42 AM, Tom de Vries wrote: I'll send the patch with the testcases in a separate email. 2 extra testcases added. OK for trunk? Thanks, - Tom 2011-08-19 Tom de

Re: Dump stats about hottest hash tables when -fmem-report

2011-08-19 Thread Tom Tromey
Dimitrios == Dimitrios Apostolou ji...@gmx.net writes: Richard Note that sparsely populated hashes come at the cost of increased Richard cache footprint. Not sure what is more important here though, memory Richard access or hash computation. Tom I was only approving the change to the dumping.

Re: [cxx-mem-model] Atomic C++ header file changes

2011-08-19 Thread Torvald Riegel
On Fri, 2011-08-19 at 08:44 -0400, Andrew MacLeod wrote: On 08/19/2011 04:57 AM, Torvald Riegel wrote: On Wed, 2011-08-17 at 11:39 -0400, Andrew MacLeod wrote: That would be quite ugly, and you get what you deserve if you do that. I changed the builtins so that if you dont specify a compile

[PATCH, PR43864] Gimple level duplicate block cleanup - 2nd review

2011-08-19 Thread Tom de Vries
Hi Ian, In the following 2 messages I have posted a gimple level duplicate block cleanup pass. Implementation: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01602.html Test cases: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01603.html The pass reduces x864_64-stage3-cc1 text size with 1.7%,

Re: Dump stats about hottest hash tables when -fmem-report

2011-08-19 Thread Dimitrios Apostolou
On Fri, 19 Aug 2011, Tom Tromey wrote: I think you are the most likely person to do this sort of testing. You can use machines on the GCC compile farm for this. Your patch to change the symbol table's load factor is fine technically. I think the argument for putting it in is lacking; what I

Re: [PATCH] Wire-up missing ARM iwmmxt intrinsics (bugs 35294, 36798, 36966)

2011-08-19 Thread Matt Turner
On Fri, Aug 19, 2011 at 2:09 AM, Xinyu Qi x...@marvell.com wrote: At 2011-08-19 12:18:10,Matt Turner matts...@gmail.com wrote: Subject: Re: On Fri, Aug 19, 2011 at 12:13 AM, Matt Turner matts...@gmail.com wrote: Hi, Attached is a patch based on gcc-4.6.1 that wires-up missing ARM iwmmxt

Re: Add __builtin_complex to construct complex values (C1X CMPLX* macros)

2011-08-19 Thread Jakub Jelinek
On Fri, Aug 19, 2011 at 03:55:12PM +, Joseph S. Myers wrote: Bootstrapped with no regressions on x86_64-unknown-linux-gnu. Applied to mainline. The new tests ICE on i686-linux: FAIL: gcc.dg/builtin-complex-err-1.c (internal compiler error) FAIL: gcc.dg/builtin-complex-err-2.c (internal

Re: [cxx-mem-model] Atomic C++ header file changes

2011-08-19 Thread Andrew MacLeod
On 08/19/2011 12:48 PM, Torvald Riegel wrote: The problem with issuing a warning is that anytime the compiler creates a C++ atomic class and you use a method with a memory order, it usually leaves an externally call-able method which has to take a runtime value... so you'd see the warning on

[PATCH] Fix execute_update_addresses_taken for loop closed SSA form (PR tree-optimization/48739)

2011-08-19 Thread Jakub Jelinek
Hi! If some variable is optimized from TREE_ADDRESSABLE into a gimple var during execute_update_addresses_taken while in loop closed SSA form, it might not be rewritten into loop closed SSA form, thus either fail verification, or following loop passes might miscompile something. Fixed thusly,

Re: RFC: [build, ada] Centralize PICFLAG configuration

2011-08-19 Thread Rainer Orth
-20110819/2.6.18-gcc-gas-gld-no-libada/gcc/../ld -c a-assert.adb -o a-assert.o a-assert.adb:32:01: user-defined descendents of package Ada are not allowed make[2]: *** [a-assert.o] Error 1 make[2]: Leaving directory `/var/gcc/gcc-4.7.0-20110819/2.6.18-gcc-gas-gld-no-libada/gcc/ada/rts' make[1

[Patch, fortran, obvious] PR fortran/50129 gfc_enforce_clean_symbol_state ICE after rejecting an ELSEWHERE statement

2011-08-19 Thread Mikael Morin
Hello, I'm going to commit the following (to trunk and 4.6) once the regression test finishes. Mikael 2011-08-19 Mikael Morin mikael.mo...@sfr.fr PR fortran/50129 * parse.c (parse_where): Undo changes after emitting an error. 2011-08-19 Mikael Morin mikael.mo...@sfr.fr

Re: [PATCH, testsuite, i386] AVX2 support for GCC

2011-08-19 Thread Uros Bizjak
On Fri, Aug 19, 2011 at 2:30 PM, Kirill Yukhin kirill.yuk...@gmail.com wrote: Here is next patch, which adds support of code generation and intrinsics. Patch and ChangeLog are attached. Bootstrap and make check are passed Is it ok for trunk? The patch looks good to me. If there are any

Re: [PATCH, i386]: Expand round(a) = sgn(a) * floor(fabs(a) + 0.5) using SSE4 ROUND insn

2011-08-19 Thread Uros Bizjak
On Mon, Aug 15, 2011 at 5:25 PM, Michael Matz m...@suse.de wrote: On Mon, 15 Aug 2011, Michael Matz wrote: .LFB0:        .cfi_startproc        movsd   .LC0(%rip), %xmm2        movapd  %xmm0, %xmm1        andpd   %xmm2, %xmm1        andnpd  %xmm0, %xmm2        addsd  

Re: Add __builtin_complex to construct complex values (C1X CMPLX* macros)

2011-08-19 Thread Gabriel Dos Reis
On Fri, Aug 19, 2011 at 10:55 AM, Joseph S. Myers jos...@codesourcery.com wrote:  Note that if you did allow such initializers for C, it wouldn't provide *expressions* usable in static initializers, since to make a braced initializer into an expression you need a compound literal and compound

Re: PATCH: PR middle-end/49721: convert_memory_address_addr_space may generate invalid new insns

2011-08-19 Thread H.J. Lu
On Sun, Aug 14, 2011 at 9:22 AM, H.J. Lu hjl.to...@gmail.com wrote: Hi, This patch is needed for x32 and only affects x32.  Any comments/objections to apply this to finish x32 support? Thanks. H.J. On Thu, Aug 11, 2011 at 6:25 AM, H.J. Lu hjl.to...@gmail.com wrote: Hi, This is

Re: [rtl, delay-slot] Fix overload of unchanging bit

2011-08-19 Thread Kaz Kojima
Richard Henderson r...@redhat.com wrote: The following has passed stage2-gcc on sparc64-linux host (full build still in progress), with --enable-checking=yes,rtl. It surely needs more than that, and I'm asking for help from the relevant maintainers to give this a try. There are no regressions

Re: [Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.

2011-08-19 Thread Janus Weil
2011/8/7 Thomas Koenig tkoe...@netcologne.de: When extending the values of gfc_dep_compare_expr, we will need to go through all its uses (making sure we change == -2 to = -2). attached is a patch which makes a start with this. For now, it changes the return value to -3 for two cases:

Re: Add __builtin_complex to construct complex values (C1X CMPLX* macros)

2011-08-19 Thread Joseph S. Myers
On Fri, 19 Aug 2011, Jakub Jelinek wrote: On Fri, Aug 19, 2011 at 03:55:12PM +, Joseph S. Myers wrote: Bootstrapped with no regressions on x86_64-unknown-linux-gnu. Applied to mainline. The new tests ICE on i686-linux: FAIL: gcc.dg/builtin-complex-err-1.c (internal compiler error)

Re: Add __builtin_complex to construct complex values (C1X CMPLX* macros)

2011-08-19 Thread Joseph S. Myers
On Fri, 19 Aug 2011, Gabriel Dos Reis wrote: On Fri, Aug 19, 2011 at 10:55 AM, Joseph S. Myers jos...@codesourcery.com wrote:  Note that if you did allow such initializers for C, it wouldn't provide *expressions* usable in static initializers, since to make a braced initializer into an

Re: [Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.

2011-08-19 Thread Mikael Morin
On Friday 19 August 2011 23:54:45 Janus Weil wrote: I have one comment though about this: +/* Compare two expressions. Return values: + * +1 if e1 e2 + * 0 if e1 == e2 + * -1 if e1 e2 + * -2 if the relationship could not be determined + * -3 if e1 /= e2, but we cannot

[pph] Add support for line table streaming with includes (issue4908051)

2011-08-19 Thread Gabriel Charette
Applied requested changes. Tested on x64 with bootstrap and pph regression testing. Committing to pph branch, if any other changes are needed to this patch, I'm writting a clean up patch for the line_table implementation now and will add whatever else is needed to it. One thing I wasn't sure

Re: [libiberty patch] Add demangler support for cloned function symbols (PR 40831)

2011-08-19 Thread Cary Coutant
OK, thanks. Dmitry G. also commented that the patch does not work for `_Z3fooi.1988' or `_Z3fooi.part.9.165493.constprop.775.31805'. Apparently, there can be multiple numeric suffixes, and a cloned function can be cloned again. Is it worth trying to identify the kinds of cloning in the