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 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 writes: > >> 2012-03-30 Tristan Gingold >> >> * stack-limit.c: Includes ansidecl.h. >> (stack_limit_increase): Add ATTRIBUTE_UNUSED > > This is OK. Thanks, committed. Tristan. > > Thanks. > > Ian

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 >> >> * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) >> (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry) >> (all

Re: [Patch]: Support VMS in libstdc++ crossconfig.m4

2012-04-02 Thread Tristan Gingold
On Mar 31, 2012, at 2:46 AM, Paolo Carlini wrote: > Hi, >> Hi, >> >> currently all VMS compilers are built on Unix. So, to build the libstdc++ >> library, this looks like the minimum required. >> >> Tested by build libstdc++ for ia64-hp-openvms. >> >> Ok for trunk ? > I understand that witho

Re: [PATCH][3/n] Cleanup internal interfaces

2012-04-02 Thread Richard Guenther
On Sat, 31 Mar 2012, Uros Bizjak wrote: > Hello! > > > 2012-03-29 Richard Guenther > > > > * cgraph.h (cgraph_materialize_all_clones): Remove. > > (reset_inline_failed): Likewise. > > * cgraphunit.c (cgraph_materialize_all_clones): Make static. > > * cgraphbuild.c (reset_inline

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 > > Partially revert: > 2012-03-29 Richard Guenther > > * rtl.h (extended_count): Remove. > * combine.c (extended_count): Remove. > > Bootstra

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 wrote: >> 2012-03-31  Uros Bizjak   >> >>       Partially revert: >>       2012-03-29  Richard Guenther   >> >>       * rtl.h (extended_count): Remove. >>       * combine.c (extended_count): Remove. >> >> Bootstrapped on alphaev68-pc-linux-gnu. >>

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 wrote: > > >> 2012-03-31  Uros Bizjak   > >> > >>       Partially revert: > >>       2012-03-29  Richard Guenther   > >> > >>       * rtl.h (extended_count): Remove. > >>       * combine.c (extended_count)

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

[Ada] Passing an object path file to the compiler

2012-04-02 Thread Arnaud Charlet
A new attribute Object_Path_Switches is added to packag Compiler of project files. A new switch -gnateO= is added to the compiler; its goal is to pass an object path file name to the compiler. Tested on x86_64-pc-linux-gnu, committed on trunk 2012-04-02 Vincent Celier * opt.ads (Objec

[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 (fd

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

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

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

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 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 use type_for_

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 stru

[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 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 writes: > Therefore, an RFA for the attached patch. Bootstrapped&tested 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: Program received sign

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 wrote: > Steven Bosscher writes: > >> Therefore, an RFA for the attached patch. Bootstrapped&tested on >> powerpc64-unknown-linux-gnu. OK? > > Unfortunately, this patch completely broke libjava testing on > i386-pc-solaris2* and x86_64-unknown-linux-gn

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

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 wrote: > On Fri, Mar 30, 2012 at 5:47 AM, Michael Matz wrote: >> Hi, >> >> On Thu, 29 Mar 2012, Sriraman Tallam wrote: >> >>> +struct __processor_model >>> +{ >>> +  /* Vendor. */ >>> +  unsigned int __cpu_is_amd : 1; >>> +  unsigned int __cpu_is_i

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

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

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 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 compi

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 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 e

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 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 thr

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 Belevantsev PR target/51106 * function.c (instantiate_virtual_regs_in_insn): Use delete_insn_and_edges when removing a wrong asm insn. This

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

2012-04-02 Thread Ian Lance Taylor
"H.J. Lu" 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

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 wrote: > On Sat, Mar 31, 2012 at 1:03 AM, Sriraman Tallam wrote: >> On Fri, Mar 30, 2012 at 5:47 AM, Michael Matz wrote: >>> Hi, >>> >>> On Thu, 29 Mar 2012, Sriraman Tallam wrote: >>> +struct __processor_model +{ +  /* Vendor. */ >

[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][SCORE] Hookize PREFERRED_RELOAD_CLASS

2012-04-02 Thread Anatoly Sokolov
Hi. Ping patch: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00261.html This patch removes obsolete PREFERRED_RELOAD_CLASS macro from the SCORE back end in the GCC and introduces equivalent TARGET_PREFERRED_RELOAD_CLASS target hook. Untested. OK to install? * config/score/score.h (

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

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 varia

Re: [PATCH] Fix PR52756

2012-04-02 Thread Jeff Law
On 04/02/2012 08:42 AM, Richard Guenther wrote: 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 l

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 wh

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

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-el

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

2012-04-02 Thread Jeffrey Yasskin
My original test case passes with this change. On Mon, Apr 2, 2012 at 3:25 PM, Jeffrey Yasskin wrote: > 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

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 wrote: > On Sat, Mar 31, 2012 at 1:03 AM, Sriraman Tallam wrote: >> On Fri, Mar 30, 2012 at 5:47 AM, Michael Matz wrote: >>> Hi, >>> >>> On Thu, 29 Mar 2012, Sriraman Tallam wrote: >>> +struct __processor_model +{ +  /* Vendor. */ >

Re: [PING][SCORE] Hookize PREFERRED_RELOAD_CLASS

2012-04-02 Thread Liqin Chen
I missed this mail, I will check it soon. Thanks --liqin 在 2012年4月3日 上午2:51,Anatoly Sokolov 写道: > Hi. > > Ping patch: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00261.html > > >> >>  This patch removes obsolete PREFERRED_RELOAD_CLASS macro from the SCORE >> back end in the GCC and introduces e

Re: PATCH: Add --with-abi= support to x86_64-*-*

2012-04-02 Thread Nathanael Nerode (GCC)
On 03/28/2012 09:06 PM, H.J. Lu wrote: > On Sun, Mar 25, 2012 at 2:27 PM, Nathanael Nerode (GCC) > wrote: >> >>> Hi, >>> >>> Can any build maintainers review this patch? >> >> I don't feel comfortable reviewing this, because I don't fully >> comprehend the intricacy of the interactions in this are

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

2012-04-02 Thread Michael Hope
On 3 April 2012 09:06, dann frazier 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 binaries. The differenc