Re: [PATCH] Preserve loops from tree to RTL loop optimizers

2012-04-02 Thread Ramana Radhakrishnan
On 1 April 2012 23:55, David Edelsohn dje@gmail.com wrote: If there are no further comments I am inclined to commit this patch early next week (possibly causing quite some fallout ...). I am glad there was not more fallout.  Unfortunately powerpc-aix was not so lucky:

Re: [Patch V2] libgfortran: do not assume libm

2012-04-02 Thread Tristan Gingold
On Mar 30, 2012, at 2:39 PM, Paolo Bonzini wrote: Il 30/03/2012 12:22, Tristan Gingold ha scritto: On Mar 27, 2012, at 10:38 AM, Janne Blomqvist wrote: On Tue, Mar 27, 2012 at 11:01, Tristan Gingold ging...@adacore.com wrote: Hi, this patch fixes this issue. Is it OK ? Ok.

Re: [libiberty] Avoid compiler warnings in stack-limit.c

2012-04-02 Thread Tristan Gingold
On Mar 30, 2012, at 5:46 PM, Ian Lance Taylor wrote: Tristan Gingold ging...@adacore.com writes: 2012-03-30 Tristan Gingold ging...@adacore.com * stack-limit.c: Includes ansidecl.h. (stack_limit_increase): Add ATTRIBUTE_UNUSED This is OK. Thanks, committed. Tristan.

Re: [Patch]: ggc-page.c: use uintptr_t instead of size_t

2012-04-02 Thread Tristan Gingold
On Mar 30, 2012, at 7:44 PM, Richard Henderson wrote: On 03/20/2012 05:41 AM, Tristan Gingold wrote: 2012-03-20 Tristan Gingold ging...@adacore.com * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)

Re: [PATCH]: Restore alpha boostrap by partial revert

2012-04-02 Thread Richard Guenther
On Sat, 31 Mar 2012, Uros Bizjak wrote: Hello! Attached patch restores alpha bootstrap. 2012-03-31 Uros Bizjak ubiz...@gmail.com Partially revert: 2012-03-29 Richard Guenther rguent...@suse.de * rtl.h (extended_count): Remove. * combine.c

Re: [PATCH]: Restore alpha boostrap by partial revert

2012-04-02 Thread Uros Bizjak
On Mon, Apr 2, 2012 at 10:21 AM, Richard Guenther rguent...@suse.de wrote: 2012-03-31  Uros Bizjak  ubiz...@gmail.com       Partially revert:       2012-03-29  Richard Guenther  rguent...@suse.de       * rtl.h (extended_count): Remove.       * combine.c (extended_count): Remove.

Re: [PATCH]: Restore alpha boostrap by partial revert

2012-04-02 Thread Richard Guenther
On Mon, 2 Apr 2012, Uros Bizjak wrote: On Mon, Apr 2, 2012 at 10:21 AM, Richard Guenther rguent...@suse.de wrote: 2012-03-31  Uros Bizjak  ubiz...@gmail.com       Partially revert:       2012-03-29  Richard Guenther  rguent...@suse.de       * rtl.h (extended_count): Remove.      

[Ada] Implement Valid_Scalars attribute (except for variant records)

2012-04-02 Thread Arnaud Charlet
This patch implements the new Valid_Scalars attribute (that tests all scalar parts of an object including discriminabnts and subcomponents, to ensure they are valid. All cases are handled (including multi- dimensional arrays) except for variant records which will be implemented in a separate step.

[Ada] Style checks on subprogram instantiations

2012-04-02 Thread Arnaud Charlet
Style checks must apply to suprogram instantiations, even though they are rewritten by means of a wrapper package and appear not to come from source. Missing overriding indicators (for primitives of untagged types) and casing anomalies in the text of the instance are now diagnosed. the command

[Ada] Interaction between packed arrays and post conditions

2012-04-02 Thread Arnaud Charlet
This patch corrects the insertion of the compiler-generated routine which encapsulates the behavior of post conditions. When a formal parameter is of a packed array type, the compiler creates several helper subtypes and inserts them at the top of the related subprogram declaration list. Since the

[Ada] File descriptor leak in GNAT.Expect

2012-04-02 Thread Arnaud Charlet
When GNAT.Expect reaches the end of its input, it does not properly closes the input file descriptor, thus resulting in a memory leak. This was properly handles when calling Get_Process_Output, but not when writing the loop manually --- -- The following program had errors reported by valgrind

[PATCH] Fix PR52803

2012-04-02 Thread Richard Guenther
This fixes PR52803 - when we do not enter the pass_loop2 sub-pass queue nothing will execute pass_rtl_loop_done. But we still need to destroy loops, which are preserved until after pass_loop2. Doing so in the gate of pass_loop2 is ugly, but destroyed properties are ignored if the gate returns

[Ada] Navigation an user-defined operators

2012-04-02 Thread Arnaud Charlet
The definition of a User-defined operator carries quotes around the name, as do operators invoked in functional notation. The parser handles these as strings and their source position is that of the opening quote. This is awkward for GPS navigation, where we want the highlight of occurrences of

[Ada] New Z lines in ALI files for implicit withs from instantiation

2012-04-02 Thread Arnaud Charlet
Units that are only withed from generic instantiation are now put in the ALI file as Z lines instead of W lines. There is no impact on GNAT tools. This is for the benefit of gprbuild. The test for this is to have a unit A instantiating a generic unit B, the body of which import a package C. In tha

Re: [patch] Add support for FP bit fields in varasm.c

2012-04-02 Thread Eric Botcazou
You should be able to use fold_unary instead of fold_build1. make_signed_type should also not be used, but build_nonstandard_integer_type (or even better, get an integer mode of the same size of the float mode and then use type_for_mode). Using the mode size wouldn't work directly for XFmode

Re: [patch] Add support for FP bit fields in varasm.c

2012-04-02 Thread Richard Guenther
On Mon, Apr 2, 2012 at 12:57 PM, Eric Botcazou ebotca...@adacore.com wrote: You should be able to use fold_unary instead of fold_build1. make_signed_type should also not be used, but build_nonstandard_integer_type (or even better, get an integer mode of the same size of the float mode and then

Re: [PATCH] Dissociate store_expr's temp from exp so that it is not marked as addressable

2012-04-02 Thread Richard Guenther
On Sat, 31 Mar 2012, Martin Jambor wrote: Hi, On Fri, Mar 30, 2012 at 10:03:59AM +0200, Richard Guenther wrote: On Fri, 30 Mar 2012, Martin Jambor wrote: Hi, when testing a patch of mine on sparc64-linux, I came across an Ada bootstrap failure due to a structure DECL which

[PATCH] Fix PR52800

2012-04-02 Thread Richard Guenther
This fixes PR52800. Bootstrapped and tested on x86_64-unknown-linux-gnu. Richard. 2012-04-02 Richard Guenther rguent...@suse.de PR rtl-optimization/52800 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with CLEANUP_CFG_CHANGED. Index: gcc/cprop.c

Re: [patch][rfa] Do not call output_constant from the front end

2012-04-02 Thread Rainer Orth
Steven Bosscher stevenb@gmail.com writes: Therefore, an RFA for the attached patch. Bootstrappedtested on powerpc64-unknown-linux-gnu. OK? Unfortunately, this patch completely broke libjava testing on i386-pc-solaris2* and x86_64-unknown-linux-gnu: all execution tests fail with a SEGV:

Re: [patch][rfa] Do not call output_constant from the front end

2012-04-02 Thread Richard Guenther
On Mon, Apr 2, 2012 at 2:24 PM, Rainer Orth r...@cebitec.uni-bielefeld.de wrote: Steven Bosscher stevenb@gmail.com writes: Therefore, an RFA for the attached patch. Bootstrappedtested on powerpc64-unknown-linux-gnu. OK? Unfortunately, this patch completely broke libjava testing on

[PATCH] Fix PR52756

2012-04-02 Thread Richard Guenther
After going through a gazillion of candidate fixes for PR52756, a case where jump threading destroys loops in a non-recoverable way, I settled with the following. The issue is that we thread both the loop latch and the loop entry edge but the code is not prepared for that. Another possible fix

Re: Support for Runtime CPU type detection via builtins (issue5754058)

2012-04-02 Thread Richard Guenther
On Sat, Mar 31, 2012 at 1:03 AM, Sriraman Tallam tmsri...@google.com wrote: On Fri, Mar 30, 2012 at 5:47 AM, Michael Matz m...@suse.de wrote: Hi, On Thu, 29 Mar 2012, Sriraman Tallam wrote: +struct __processor_model +{ +  /* Vendor. */ +  unsigned int __cpu_is_amd : 1; +  unsigned int

Re: [PATCH] Fix PR52803

2012-04-02 Thread Jan Hubicka
This fixes PR52803 - when we do not enter the pass_loop2 sub-pass queue nothing will execute pass_rtl_loop_done. But we still need to destroy loops, which are preserved until after pass_loop2. Doing so in the gate of pass_loop2 is ugly, but destroyed properties are ignored if the gate

Re: [PATCH, i386, Android] -mandroid support for i386 target

2012-04-02 Thread Ilya Enkovich
On 2/04/2012, at 3:23 AM, Ilya Enkovich wrote: As is, it appears this patch did not see much testing, I'm pretty sure it breaks building shared libraries and PIE executable for Linux. I do not expect any changes in compiler behavior for non Android targets. I bootstrapped and checked

Re: [PATCH] Fix PRs 52080, 52097 and 48124, rewrite bitfield expansion, enable the C++ memory model wrt bitfields everywhere

2012-04-02 Thread Richard Guenther
On Fri, 30 Mar 2012, Eric Botcazou wrote: May I apply the patch I posted? It boostrapped/regtested fine on x86-64/Linux. Yes. Thanks. Unfortunately, while this was the last identified problem on x86, another issue is visible on x86-64 as a miscompilation of XML/Ada at -O0.

Re: [PATCH, i386, Android] -mandroid support for i386 target

2012-04-02 Thread H.J. Lu
On Mon, Apr 2, 2012 at 7:16 AM, Ilya Enkovich enkovich@gmail.com wrote: On 2/04/2012, at 3:23 AM, Ilya Enkovich wrote: As is, it appears this patch did not see much testing, I'm pretty sure it breaks building shared libraries and PIE executable for Linux. I do not expect any changes in

Re: [PATCH] Fix PR52756

2012-04-02 Thread Richard Guenther
On Mon, 2 Apr 2012, Richard Guenther wrote: After going through a gazillion of candidate fixes for PR52756, a case where jump threading destroys loops in a non-recoverable way, I settled with the following. The issue is that we thread both the loop latch and the loop entry edge but the

Re: [PATCH] Fix PR52756

2012-04-02 Thread H.J. Lu
On Mon, Apr 2, 2012 at 5:32 AM, Richard Guenther rguent...@suse.de wrote: After going through a gazillion of candidate fixes for PR52756, a case where jump threading destroys loops in a non-recoverable way, I settled with the following.  The issue is that we thread both the loop latch and the

Re: [PATCH] Fix PR52756

2012-04-02 Thread Richard Guenther
On Mon, 2 Apr 2012, H.J. Lu wrote: On Mon, Apr 2, 2012 at 5:32 AM, Richard Guenther rguent...@suse.de wrote: After going through a gazillion of candidate fixes for PR52756, a case where jump threading destroys loops in a non-recoverable way, I settled with the following.  The issue is

Re: [PATCH, RTL] Fix PR 51106

2012-04-02 Thread Andrey Belevantsev
Hello, On 19.01.2012 18:40, Jakub Jelinek wrote: On Thu, Jan 19, 2012 at 06:13:58PM +0400, Andrey Belevantsev wrote: 2012-01-19 Andrey Belevantseva...@ispras.ru PR target/51106 * function.c (instantiate_virtual_regs_in_insn): Use delete_insn_and_edges when removing a wrong

Re: PATCH: Update x32 rt_sigreturn syscall number to 0x40000201

2012-04-02 Thread Ian Lance Taylor
H.J. Lu hjl.to...@gmail.com writes: The final rt_sigreturn syscall number is changed to 0x4201 in Linux kernel v3.4-rc1. This patch updates x32 rt_sigreturn syscall number. OK for trunk and 4.7 branch? Sure. Ian

Re: [PATCH, i386, Android] -mandroid support for i386 target

2012-04-02 Thread Maxim Kuvyrkov
On 3/04/2012, at 2:16 AM, Ilya Enkovich wrote: The point is that one can build a toolchain for i686-linux-gnu that will support both 32-bit and 64-bit multilibs. The 32-bit multilib will be used by default, and compilation for 64-bit user-space can be requested with -m64 option. Even

Re: Support for Runtime CPU type detection via builtins (issue5754058)

2012-04-02 Thread Sriraman Tallam
On Mon, Apr 2, 2012 at 5:38 AM, Richard Guenther richard.guent...@gmail.com wrote: On Sat, Mar 31, 2012 at 1:03 AM, Sriraman Tallam tmsri...@google.com wrote: On Fri, Mar 30, 2012 at 5:47 AM, Michael Matz m...@suse.de wrote: Hi, On Thu, 29 Mar 2012, Sriraman Tallam wrote: +struct

[PATCH, committed] Fix PR2497, libffi build breakage on powerpc64-*

2012-04-02 Thread Peter Bergner
I have committed the following patch to fix the libffi build breakage I'm seeing on powerpc64-linux (when building java) which was caused by the recent merge of upstream libffi. Anthony Green ack'd this patch for upstream, but said to commit it here and he'd merge the gcc sources back to upstream

Re: [ping 6] [patch] attribute to reverse bitfield allocations (is anyone even reading these?)

2012-04-02 Thread DJ Delorie
Ping 6... It's now been over EIGHT MONTHS since I posted the patch, back in stage 1 for 4.7. Can someone please review and/or approve this before gcc 4.8's stage 1 is closed? This is needed as a first step for ABI compatibility for rx-elf. Ping 5... Ping 4... Ping 3? It's been

Re: [PATCH H8300] Added -mno-exr option in case of function with monitor attribute

2012-04-02 Thread Jeff Law
On 03/30/2012 08:13 AM, Sandeep Kumar Singh wrote: Hi, Please find the attached patch to avoid saving of EXR register for monitor functions. By default, in prologue code of a monitor function, EXR register is pushed onto the stack. This implementation is not required for H8S/224x and 21xx

Re: [PATCH] ARM: Use different linker path for hardfloat ABI

2012-04-02 Thread dann frazier
On Fri, Mar 30, 2012 at 06:52:34PM +0100, Richard Earnshaw wrote: On 29/03/12 20:34, dann frazier wrote: This is an updated version of a patch Debian and Ubuntu are using to use an alternate linker path for hardfloat binaries. The difference with this one is that it covers the case where no

[PATCH] Don't ignore failures from compute_data_dependences_for_loop in build_rdg (PR tree-optimization/52835)

2012-04-02 Thread Jakub Jelinek
Hi! On the following testcase compute_data_dependences_for_loop fails, but build_rdg ignores its return value and happily goes on as if it didn't fail, optimizing away a call. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.7? 2012-04-02 Jakub Jelinek

[google] Fix PR52822 in google's gcc-4.6 branch (issue5975063)

2012-04-02 Thread Jeffrey Yasskin
I'll send the patches for trunk, gcc-4_7-branch, and gcc-4_6-branch in a separate thread later today or tomorrow, but I need to get the google branch fixed before that. Paolo suggested this simple fix was the right approach for the gcc-4_6-branch, so I'm using it for google/gcc-4_6 too. I'll be

Re: [ping 6] [patch] attribute to reverse bitfield allocations (is anyone even reading these?)

2012-04-02 Thread Mike Stump
On Apr 2, 2012, at 12:41 PM, DJ Delorie wrote: Ping 6... It's now been over EIGHT MONTHS since I posted the patch, back in stage 1 for 4.7. Can someone please review and/or approve this before gcc 4.8's stage 1 is closed? This is needed as a first step for ABI compatibility for rx-elf.

Re: [PATCH] ARM: Use different linker path for hardfloat ABI

2012-04-02 Thread Michael Hope
On 3 April 2012 09:06, dann frazier dann.fraz...@canonical.com wrote: On Fri, Mar 30, 2012 at 06:52:34PM +0100, Richard Earnshaw wrote: On 29/03/12 20:34, dann frazier wrote: This is an updated version of a patch Debian and Ubuntu are using to use an alternate linker path for hardfloat