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

2011-08-16 Thread Arnaud Charlet
> Wouldn't you use these targets with --disable-target-libada > --disable-gnattools? Yes (or rather --disable-libada. I believe also disable-libada implies --disable-gnattols), that's the primary use (manual debugging is a secondary use). Arno

Re: [google] Backport r177357 from trunk to google/gcc-4_6 (issue 4862042)

2011-08-16 Thread dougkwan
LGTM http://codereview.appspot.com/4862042/

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

2011-08-16 Thread Sriraman Tallam
On Tue, Aug 16, 2011 at 3:35 PM, Joseph S. Myers wrote: > On Tue, 16 Aug 2011, Sriraman Tallam wrote: > >> Index: libgcc/config/i386/t-cpuinfo >> === >> --- libgcc/config/i386/t-cpuinfo      (revision 0) >> +++ libgcc/config/i386/t-cp

C++ PATCH for c++/50086 (failure to handle template-id argument to variadic)

2011-08-16 Thread Jason Merrill
The standard says that if a template-id designates a single function, that is used when we don't have sufficient type information to guide deduction. But we were getting this wrong when passing to a variadic parameter due to a simple logic error. Tested x86_64-pc-linux-gnu, applying to trunk

C++ PATCH to make attribute ((used)) force instantiation of class template members

2011-08-16 Thread Jason Merrill
I recently got a request to make attribute((used)) cause the implicit instantiation of a member function of a class template whenever the class is instantiated. This seemed like an appropriate extension of the current semantics of that attribute, so this patch implements it. Tested x86_64-pc-

[pph] New test - highlights issue with loading of pph child references (issue4898054)

2011-08-16 Thread Gabriel Charette
I noticed an issue while reading the code the child referencing code more in depth and wrote the following tests which exposes that issue. We are loading every single header in the translation unit (not only the direct children) when doing pph_in_includes, but the children themselves correctly

C++ PATCH for c++/50054 (ICE after error with init-list)

2011-08-16 Thread Jason Merrill
It is possible to run into a situation where we don't know what to do with an initializer-list. Tested x86_64-pc-linux-gnu, applying to trunk and 4.6. commit 1a54ca9d63f7e6453b3327a5699a39696f856a79 Author: Jason Merrill Date: Mon Aug 15 06:15:17 2011 -0400 PR c++/50054 * typeck2.c

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

2011-08-16 Thread Joseph S. Myers
On Tue, 16 Aug 2011, Sriraman Tallam wrote: > Index: libgcc/config/i386/t-cpuinfo > === > --- libgcc/config/i386/t-cpuinfo (revision 0) > +++ libgcc/config/i386/t-cpuinfo (revision 0) > @@ -0,0 +1,2 @@ > +# This is an endfil

Re: [Patch, fortran] PR fortran/50071 Duplicate statement labels from different scoping units rejected.

2011-08-16 Thread Tobias Burnus
Mikael Morin wrote: On Sunday 14 August 2011 09:35:56 Tobias Burnus wrote: [Four examples which were still mishandled] Hem, OK; it is a can of Pandora. Sorry for opening it a bit more. I can propose the following ad-hoc fix for the two latter cases. The patch passes gfortran.dg/*goto* and

Re: GIMPLE and intent of variables

2011-08-16 Thread grabekm90
Jeff Law wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/16/11 15:35, grabekm90 wrote: > >> How to resolve a problem with pointers (especially arrays)? For >> example, we have a GIMPLE function: >> >> set_a (int * a) { int * D.2701; D.2701 = a + 40; *D.2701 = 7; } >> >>

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

2011-08-16 Thread Andi Kleen
tmsri...@google.com (Sriraman Tallam) writes: > Support for getting CPU type and feature information at run-time. > > The following patch provides support for finding the platform type at > run-time, like cpu type and features supported. The multi-versioning > framework will use the builtins add

Re: [Patch, Fortran] PR 50070: Segmentation fault at size_binop_loc in fold-const.c

2011-08-16 Thread Tobias Burnus
Janus Weil wrote: In any case, the patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk? OK. Thanks for the patch! Tobias 2011-08-16 Janus Weil PR fortran/50070 * resolve.c (resolve_fl_variable): Reject non-constant character lengths in COMMON variables.

Re: GIMPLE and intent of variables

2011-08-16 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/11 15:35, grabekm90 wrote: > How to resolve a problem with pointers (especially arrays)? For > example, we have a GIMPLE function: > > set_a (int * a) { int * D.2701; D.2701 = a + 40; *D.2701 = 7; } > > This is equivalent code in C: > > vo

GIMPLE and intent of variables

2011-08-16 Thread grabekm90
Hi, I work with a lot of code in C and Fortran. My main task is to select, which of the function parameters and global variables are input (they are only read out), output (they are only written down) or inout (both uses) in the function. I wish GCC internals helped me. Maybe you have better sol

Re: CFT: [build] Move libgcc2 to toplevel libgcc

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 10:16 AM, Rainer Orth wrote: Agreed. I'd prefer to first complete the build side of the migration from gcc (mostly target headers left now, which seems to be somewhat involved on first check), then deal with the libgcc-only macros, and only then look into cleaning up the end result

Re: [Patch, Fortran] Coarrays: Add/fix check for no coarrays as result value

2011-08-16 Thread Tobias Burnus
Thanks for the report, HJ. And thanks for finding the problem Dominique before I could even look at the PR. (I have no idea how the typo ended up in my local patch file - it was clearly not present when I regtested the patch.) I have committed the attached patch as obvious - after regtesting.

RFA: Avoiding unprofitable speculation

2011-08-16 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ifcvt.c is sometimes over-aggressive in speculating instructions from a not-predicted path. Given: if (test) goto E; // x not live x = big(); goto L; E: x = b; goto M; ifcvt wants to turn it into:

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

2011-08-16 Thread Sriraman Tallam
On Tue, Aug 16, 2011 at 2:06 PM, H.J. Lu wrote: > On Tue, Aug 16, 2011 at 1:50 PM, Sriraman Tallam wrote: >> Support for getting CPU type and feature information at run-time. >> >> The following patch provides support for finding the platform type at >> run-time, like cpu type and features suppo

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

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 01:08 PM, Arnaud Charlet wrote: Please post them. OK, here they are. FWIW, I have no idea how these changes will play with libada (in particular the stamp-tools handling), so I suspect these changes may require a bit of adjustment to be suitable. Wouldn't you use these targets wi

Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)

2011-08-16 Thread Jason Merrill
On 08/16/2011 11:31 AM, Marc Glisse wrote: It might be less invasive to have decl_mangling_context return global_namespace without actually modifying the expr? Please. Jason

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

2011-08-16 Thread H.J. Lu
On Tue, Aug 16, 2011 at 1:50 PM, Sriraman Tallam wrote: > Support for getting CPU type and feature information at run-time. > > The following patch provides support for finding the platform type at > run-time, like cpu type and features supported. The multi-versioning > framework will use the bu

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

2011-08-16 Thread Sriraman Tallam
Support for getting CPU type and feature information at run-time. The following patch provides support for finding the platform type at run-time, like cpu type and features supported. The multi-versioning framework will use the builtins added to dispatch the right function version. Please refer

Re: [pph] Force token location for replayed macro definitions (issue4905050)

2011-08-16 Thread Diego Novillo
On 08/16/2011 04:38 PM, Gabriel Charette wrote: 2011-08-16 Gabriel Charette gcc/cp/ChangeLog.pph * pph-streamer-in.c (pph_read_file_1): Set location of replayed tokens to column 0 of the line the pph file was included on. libcpp/ChangeLog.pph * include/

[pph] Force token location for replayed macro definitions (issue4905050)

2011-08-16 Thread Gabriel Charette
This patch follows issue4907044. Replayed definitions were given new source locations in the lexer. This would shift all of the locations assigned later and since this replay is absent in the non-pph, we get different source_locations for the tokens following the replay in pph. This improves t

Re: [pph] Forwarding force

2011-08-16 Thread Diego Novillo
On 08/16/2011 04:27 PM, Gabriel Charette wrote: 2011-08-16 Gabriel Charette gcc/c-family/ChangeLog.pph * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens defined in cpp_init_builtins and c_cpp_builtins. libcpp/ChangeLog.pph * init.c (cpp_

[pph] Forwarding force

2011-08-16 Thread Gabriel Charette
This patch has yet to be committed to trunk, but I need it in pph. This doesn't change anything (except that we now removed the built-in entry in the line_table, so there are now only 2 ignored line table entries). Tested with bootstrap and pph regression testing (full testing done with trunk p

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

2011-08-16 Thread Arnaud Charlet
> Please post them. OK, here they are. FWIW, I have no idea how these changes will play with libada (in particular the stamp-tools handling), so I suspect these changes may require a bit of adjustment to be suitable. Arno --- gcc-interface/Make-lang.in 2011-08-05 17:48:26.0 +0200 +++ gcc

RFA: patch to solve PR48455 and improve code size for -Os

2011-08-16 Thread Vladimir Makarov
After a lot of thinking and some experiments, I did not find a better solution to considerably (like on 0.2% - 0.3% on ARM SPEC2000) improve code size than use of non-regional RA for -Os. So the patch makes one region allocation is default for -Os. I don't use function optimize_function_for_s

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

2011-08-16 Thread Arnaud Charlet
> Sure, I was rather asking how make gnatlib (or whatever) is supposed to > be invoked? From gcc/ada, any special needs? >From /gcc typically. > It would be good to contribute them, perhaps for close scrutiny by a well, it's not a matter of contributing: it's more a matter of undoing what was r

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

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 09:53 AM, Rainer Orth wrote: > actually makes some sense---so the general approach in your patch is good. Indeed, but IMO it makes sense in general, not only for SPARC, but for all targets that distinguish between -fpic and -fPIC. > The patch is okay. You mean as is, with all

Re: [pph] Support for references to symbols in other PPH images (issue4873051)

2011-08-16 Thread Diego Novillo
On 08/16/2011 02:04 PM, Gabriel Charette wrote: Setting *cache_ix to (unsigned) -1 used to be a "hack" (with a comment explaining it which was removed just below), to avoid a warning about it being unset in a branch, but that branch was only PPH_RECORD_END, in which case it didn't matter. Yeah

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

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 09:44 AM, Rainer Orth wrote: > So passing PICFLAG down to the gcc/ada/gcc-interface Makefile and not > just via libada/Makefile is indeed important. This seems to be easy: unless I'm mistaken, it should suffice to just call GCC_PICFLAG in gcc/configure.ac and substitute the resul

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

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 09:52 AM, Arnaud Charlet wrote: > I've often had serious trouble when I tried to run make > gnatlib/gnatlib-shared in gcc/ada. Apparently "someone" in the past removed too many things from the Makefile which broke partly this support (probably thinking that with libada/Makefile

[commit, spu] Improve some comparison code sequences

2011-08-16 Thread Ulrich Weigand
Hello, this implements two minor enhancements to code generated by the spu_emit_branch_or_set routine. This reduces code size for the g++.dg/opt/longbranch1.C to the extent that it once again fits into local store, and thus fixes the failure. Tested on spu-elf. Committed to mainline. Bye, Ulric

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

2011-08-16 Thread Ulrich Weigand
Hello, since switching the frame growth direction on SPU to downward, the displacements on stack addresses using an eliminable base registers (e.g. frame_pointer_rtx) grow into the opposite direction from the displacements that will be used in the final addresses which use the real stack pointer r

Re: [pph] Support for references to symbols in other PPH images (issue4873051)

2011-08-16 Thread Gabriel Charette
I really like the way this is implemented! In particular having our own cache is so great! A few comments inline below. Cheers, Gab On Mon, Aug 15, 2011 at 8:05 PM, Diego Novillo wrote: > This patch finishes the support for external references to symbols in > other PPH files. > > This is used w

RE: [wwwdocs] Announce new ARM/embedded-4_6-branch branch

2011-08-16 Thread Gerald Pfeifer
On Thu, 11 Aug 2011, Terry Guo wrote: > Thanks for your review. Here I attached the updated one. Is it ok to > commit? Yes, this looks good, Terry. Sorry for making you wait, I've been off for a bit of an extended weekend. (In the future, "good modulo" can be seen as approval already. :-) Gera

[Patch, Fortran] PR 50070: Segmentation fault at size_binop_loc in fold-const.c

2011-08-16 Thread Janus Weil
Hi all, here is a small patch for an ICE-on-invalid problem with COMMON and character length. I was kinda surprised that we don't catch this already. The fix is rather simple, but after the amount of discussion (that I had with myself) in the PR, I probably cannot claim that it was 'obvious' to me

Re: CFT: [build] Move libgcc2 to toplevel libgcc

2011-08-16 Thread Rainer Orth
"Joseph S. Myers" writes: > On Mon, 15 Aug 2011, Rainer Orth wrote: > >> On top of the crtstuff and libgcc1 patches (and requiring the PICFLAG >> centralization still under discussion), here's the bulk of the remaining >> moves: it moves all LIBGCC2*, LIB2* macros and referenced files. >> >> Des

Re: CFT: [build] Move libgcc2 to toplevel libgcc

2011-08-16 Thread Rainer Orth
Hans-Peter Nilsson writes: >> * Again, I noticed an unused target file, >> config/cris/cris_abi_symbol.c. I assume it's a leftover from the >> cris-aout port and can go. > > As obvious from its contents, yes, put it to rest if you please. Ok, will do. >> * config/cris/arit.c, config/c

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

2011-08-16 Thread Rainer Orth
Arnaud Charlet writes: >> Ok, I see. Perhaps gcc/ada could be disentangled and those files >> exclusively or primarily used for libgnat/libgnarl moved over to libada, >> and referenced from there for the host build? > > That would require some delicate work on AdaCore's side, so wouldn't be > he

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

2011-08-16 Thread Rainer Orth
Paolo Bonzini writes: > On 08/15/2011 10:53 AM, Rainer Orth wrote: >> * The general approach between libtool and libiberty differs. Unless >>otherwise specified (PIC is the default or doesn't work for some >>reason), libtool defaults to -fPIC, while libiberty has a strange >>mixture

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

2011-08-16 Thread Arnaud Charlet
> Ok, I see. Perhaps gcc/ada could be disentangled and those files > exclusively or primarily used for libgnat/libgnarl moved over to libada, > and referenced from there for the host build? That would require some delicate work on AdaCore's side, so wouldn't be helpful in the short term (rather h

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

2011-08-16 Thread Rainer Orth
Steve, > On Mon, 2011-08-15 at 19:53 +0200, Rainer Orth wrote: > >> * For IA64 HP-UX, there's a claim that -fPIC is necessary despite PIC >> code being the default. I could find no hint in trunk that this is >> true any longer. > > Rainer, If I recall correctly the issue for -fPIC on IA64 HP

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

2011-08-16 Thread Rainer Orth
Arnaud Charlet writes: >> Yes, that needs to be done of course. I'm not sure if we still support >> gnatlib_and_tools to build libada/gnattools. If so, we would need the >> PICFLAG to be available somehow in the gcc Makefile (perhaps by providing >> GCC_TARGET_PICFLAG in addition to GCC_PICFLAG

Re: CFT: [build] Move libgcc_tm_file to toplevel libgcc

2011-08-16 Thread Rainer Orth
Paolo Bonzini writes: > On 08/16/2011 04:59 AM, Rainer Orth wrote: >> None of them uses any of those macros, so I think we're safe. > > Yes, I checked the same now. Looks like we're good. Fine we've reached the same conclusion :-) > I'll review the other patches soon, but they are _huge_! :)

Re: CFT: [build] Move crtstuff support to toplevel libgcc

2011-08-16 Thread Rainer Orth
Hans-Peter Nilsson writes: >> From: Rainer Orth >> Date: Mon, 15 Aug 2011 19:01:39 +0200 > >> * Unlike any other target, cris has crisv32-*-none and cris-*-none >> targets which seem to be aliases for their *-elf counterparts. Do we >> really need to keep those? While I can inherit e.g. ex

Re: Vector Comparison patch

2011-08-16 Thread Artem Shinkarov
On Tue, Aug 16, 2011 at 4:28 PM, Richard Guenther wrote: > On Mon, Aug 15, 2011 at 6:58 PM, Artem Shinkarov > wrote: >> On Mon, Aug 15, 2011 at 3:24 PM, Richard Guenther >> wrote: >>> On Fri, Aug 12, 2011 at 4:03 AM, Artem Shinkarov >>> wrote: Hi Here is a completed version of th

Re: [PATCH, testsuite, ARM] Divide by zero test no necessarily trap

2011-08-16 Thread Richard Earnshaw
On 15/08/11 10:28, Joey Ye wrote: > gcc.c/torture/execute/20101011-1.c always fails on ARM, because > it needs the target architecture trap in division by zero. It is > implementation defined on ARM to trap division by zero. So this > case should be skipped on ARM. > > There are two ways to ski

[patch mingw committed]: Add to GOMP_SELF_SPECS additionally the option -pthread

2011-08-16 Thread Kai Tietz
Hello, this patch fixes for options -fopenmp and/or -ftree-parallelize-loops= the binding to pthread-library. ChangeLog 2011-08-16 Kai Tietz * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option. Bootstrapped for x86_64-w64-mingw32 and i686-pc-mingw32. Applied at revision 7

Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)

2011-08-16 Thread Rainer Orth
Marc, >> * config/sol2-cxx.c > > You are missing a closing parenthesis in there, on the line with > DECL_NAMESPACE_STD_P. I hadn't dared modify DECL_CONTEXT(decl) because I drats, I had fixed that in my tree, but forgot to refresh the patch. > was afraid of side effects. > > For instance, i

Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)

2011-08-16 Thread Marc Glisse
On Tue, 16 Aug 2011, Rainer Orth wrote: thanks for the hint. This resulted in a far cleaner patch indeed. Cool, thanks. * config/sol2-cxx.c You are missing a closing parenthesis in there, on the line with DECL_NAMESPACE_STD_P. I hadn't dared modify DECL_CONTEXT(decl) because I w

Re: Vector Comparison patch

2011-08-16 Thread Richard Guenther
On Mon, Aug 15, 2011 at 6:58 PM, Artem Shinkarov wrote: > On Mon, Aug 15, 2011 at 3:24 PM, Richard Guenther > wrote: >> On Fri, Aug 12, 2011 at 4:03 AM, Artem Shinkarov >> wrote: >>> Hi >>> >>> Here is a completed version of the vector comparison patch we >>> discussed a long time ago here: >>>

Re: [PATCH] Fix PR50082

2011-08-16 Thread Ian Lance Taylor
Richard Guenther writes: > This fixes PR50082 by completely defering to fold what kind of > overflow warning to emit from tree-ssa-forwprop.c. It also moves > overflow handling to the single place that decides whether and > what we optimize. > > Bootstrapped and tested on x86_64-unknown-linux-gn

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Laurynas Biveinis
2011/8/16 Andreas Schwab : >        * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def >        instead of ggc_alloc_zone_vec_rtvec_def. Thanks again, -- Laurynas

Re: [Patch, fortran] PR fortran/50071 Duplicate statement labels from different scoping units rejected.

2011-08-16 Thread Mikael Morin
On Sunday 14 August 2011 09:35:56 Tobias Burnus wrote: > I think the following is valid and it is still rejected (it is accepted > by NAG 5.1 and ifort): > > 1 type t > integer :: i >end type t > >goto 1 > 1 print *, 'Hello' > end > > Related but separate issue: BLOCK also starts a

[Patch ARM] Fix vec_pack_trunc pattern for vectorize_with_neon_quad.

2011-08-16 Thread Ramana Radhakrishnan
Hi, While looking at a failure with regrename and mvectorize-with-neon-quad I noticed that the early-clobber in this vec_pack_trunc pattern is superfluous given that we can use reg_overlap_mentioned_p to decide in which order we want to emit these 2 instructions. While it works around the problem

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Andreas Schwab
Laurynas Biveinis writes: > The patch to adjust the definition is obvious/pre-approved if anyone's > inclined, or I'll just note in my TODO to fix this the next time I > commit something. Since I had it already readily tested on x86_64-linux, I've checked this in. Andreas. 2011-08-16 Andreas

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Laurynas Biveinis
2011/8/16 Richard Guenther : >> ggc_alloc_zone_vec_rtvec_def is for allocating an array of rtvec_def, >> but you want a single (variable sized) rtvec_def, so >> ggc_alloc_zone_rtvec_def is the correct function to call. > > I'm not so sure about that given the more strongly typing of our allocators.

Re: CFT: [build] Move libgcc_tm_file to toplevel libgcc

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 04:59 AM, Rainer Orth wrote: None of them uses any of those macros, so I think we're safe. Yes, I checked the same now. Looks like we're good. I'll review the other patches soon, but they are _huge_! :) Paolo

Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)

2011-08-16 Thread Rainer Orth
Jason, > On 08/11/2011 10:49 AM, Rainer Orth wrote: >> There might be an alternative implementation that is less invasive to >> the C++ frontend, though: add >> >> && TARGET_DECL_NAMESPACE_STD_P (decl) >> >> in write_unscoped_name, defaulting to true, override it in sol2.h (which >> gets inc

[PATCH][2/n] Do not force sizetype for POINTER_PLUS_EXPR

2011-08-16 Thread Richard Guenther
This introduces a ptrofftype_p function to replace sizetype compatibility checks throughout the compiler (of there are not too many). Bootstrapped and tested on x86_64-unknonw-linux-gnu some time ago, currently re-testing. Patch 3/n will (finally) introduce "real" ptrofftype and uptrofftype. Ri

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

2011-08-16 Thread Arnaud Charlet
> That's the simplest alternative. It would need however a pass through the > config/ directory for targets that are never used as hosts for GCC (and > thus libiberty). > > Alternatively, the libtool code could be extracted to config/picflag.m4. > >>Alternatively, one could think about using

Re: CFT: [build] Move libgcc_tm_file to toplevel libgcc

2011-08-16 Thread Rainer Orth
Paolo, > On 08/15/2011 02:05 PM, Joseph S. Myers wrote: >>> > This patch almost completes the build side of the libgcc moves. It >>> > moves the libgcc_tm_file support to libgcc/config.host (tm_file), where >>> > it belongs. It builds on a patch Paolo posted some time ago, with some >>> > mi

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Richard Guenther
On Tue, Aug 16, 2011 at 1:17 PM, Andreas Schwab wrote: > Liang Wang writes: > >>  #define ggc_alloc_rtvec_sized(NELT)                                     \ >> -    (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),                        \ >> -                                   sizeof (struct rtvec_def

[PATCH] Fix PR50082

2011-08-16 Thread Richard Guenther
This fixes PR50082 by completely defering to fold what kind of overflow warning to emit from tree-ssa-forwprop.c. It also moves overflow handling to the single place that decides whether and what we optimize. Bootstrapped and tested on x86_64-unknown-linux-gnu. Ian, does this look ok? Thanks,

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Andreas Schwab
Liang Wang writes: > #define ggc_alloc_rtvec_sized(NELT) \ > -(ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),\ > - sizeof (struct rtvec_def) + ((NELT) - 1), > \ > +(ggc_alloc_zone_vec_rtvec_def (1

RE: [wwwdocs] Announce new ARM/embedded-4_6-branch branch

2011-08-16 Thread Terry Guo
Ping. BR, Terry > -Original Message- > From: Terry Guo [mailto:terry@arm.com] > Sent: Monday, August 15, 2011 4:07 PM > To: 'Gerald Pfeifer' > Cc: 'gcc-patches@gcc.gnu.org'; Richard Earnshaw; Matthew Gretton-Dann > Subject: RE: [wwwdocs] Announce new ARM/embedded-4_6-branch branch >

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Richard Guenther
On Tue, Aug 16, 2011 at 11:35 AM, Liang Wang wrote: > Current implementation of ggc_alloc_rtvec_resized allocates more > spaces for rtvec.  This patch uses original formula to compute size > for rtvec.  Bootstrap on x86_64 successfully. > > OK for trunk? > > By the way, I don't have write access t

Re: [wwwdocs][patch] Document the change of default vector size for ARM NEON

2011-08-16 Thread Gerald Pfeifer
On Tue, 16 Aug 2011, Ira Rosen wrote: > The first part was already reviewed several months ago, but I am > resubmitting it along with -mvectorize-with-neon-double documentation. > > OK to commit? Looks good, thank you. Gerald

[PATCH ggc] fix ggc_alloc_rtvec_resized

2011-08-16 Thread Liang Wang
Current implementation of ggc_alloc_rtvec_resized allocates more spaces for rtvec. This patch uses original formula to compute size for rtvec. Bootstrap on x86_64 successfully. OK for trunk? By the way, I don't have write access to SVN repository yet. Could you please help commit it after appr

[wwwdocs][patch] Document the change of default vector size for ARM NEON

2011-08-16 Thread Ira Rosen
Hi, The first part was already reviewed several months ago, but I am resubmitting it along with -mvectorize-with-neon-double documentation. OK to commit? Thanks, Ira * htdocs/gcc-4.7/changes.html (targets): Document ARM NEON default vector size change and -mvectorize-with-neon-double

[patch, ARM] Change default vector size to 128 bits - take 3

2011-08-16 Thread Ira Rosen
Hi, This patch changes the default vector size for auto-vectorization on ARM NEON to 128 bits. This new version is a result of a discussion with Richard and Ramana. wwwdocs changes will follow shortly. Bootstrapped and tested on arm-linux-gnueabi. The testsuite changes were also checked on power

[PATCH] VRP TLC

2011-08-16 Thread Richard Guenther
More VRP TLC, this restructures extract_range_from_binary_expr_1 a bit, avoiding to glob unrelated tree codes to avoid some code duplication. Instead factor out the common code. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2011-08-16 Richard Guenther