Re: PR63633: May middle-end come up width hard regs for insn expanders?

2015-04-20 Thread Segher Boessenkool
On Tue, Apr 21, 2015 at 12:27:40AM +0200, Steven Bosscher wrote: > On Mon, Apr 20, 2015 at 10:11 PM, Vladimir Makarov wrote: > > I might be wrong but I think you have a bloated code because you use > > scratches. I already told several times that usage of scratch is always a > > bad idea. It was

Re: ira.c update_equiv_regs patch causes gcc/testsuite/gcc.target/arm/pr43920-2.c regression

2015-04-20 Thread Jeff Law
On 04/20/2015 01:09 AM, Shiva Chen wrote: Hi, Jeff Thanks for your advice. can_replace_by.patch is the new patch to handle both cases. pr43920-2.c.244r.jump2.ori is the original jump2 rtl dump pr43920-2.c.244r.jump2.patch_can_replace_by is the jump2 rtl dump after patch can_replace_by.patch

Re: PR63633: May middle-end come up width hard regs for insn expanders?

2015-04-20 Thread Vladimir Makarov
On 20/04/15 06:27 PM, Steven Bosscher wrote: On Mon, Apr 20, 2015 at 10:11 PM, Vladimir Makarov wrote: I might be wrong but I think you have a bloated code because you use scratches. I already told several times that usage of scratch is always a bad idea. It was a bad idea for an old RA and

[wwwdocs] PATCH for Re: [ANN] gcc-lua: Lua plugin for the GNU Compiler Collection

2015-04-20 Thread Gerald Pfeifer
Hi Peter, On Wed, 31 Oct 2012, Peter Colberg wrote: > gcc‑lua extends the GNU Compiler Collection with the ability to run Lua > scripts. The plugin provides an interface to register callback functions > for plugin events, and inspect the abstract syntax tree of a translation > unit. The plugin

Re: PR63633: May middle-end come up width hard regs for insn expanders?

2015-04-20 Thread Steven Bosscher
On Mon, Apr 20, 2015 at 10:11 PM, Vladimir Makarov wrote: > I might be wrong but I think you have a bloated code because you use > scratches. I already told several times that usage of scratch is always a > bad idea. It was a bad idea for an old RA and is still a bad idea for IRA. > The usage of

Re: PR63633: May middle-end come up width hard regs for insn expanders?

2015-04-20 Thread Vladimir Makarov
On 17/04/15 05:58 AM, Georg-Johann Lay wrote: I allowed me to CC Vladimir; maybe he can propose how the backend can describe an efficient, constraint-based solution. The problem is about expanders producing insns with non-fixed hard-regs as in/out operands or clobbers. This includes move in

Re: IRA preferencing issues

2015-04-20 Thread Vladimir Makarov
On 17/04/15 09:26 AM, Matthew Fortune wrote: Wilco Dijkstra writes: While investigating why the IRA preferencing algorithm often chooses incorrect preferences from the costs, I noticed this thread: https://gcc.gnu.org/ml/gcc/2011-05/msg00186.html I am seeing the exact same issue on AArch64 -

Announcing Segher Boessenkool as combine.c maintainer

2015-04-20 Thread Jeff Law
I'm pleased to announce that Segher Boessenkool has been appointed as maintainer for instruction combiner (combine.c). Segher, can you please add yourself to the MAINTAINERS file for the additional role. Thanks, jeff

Re: try_merge_delay_insn with delay list > 1

2015-04-20 Thread Jeff Law
On 04/20/2015 05:08 AM, BELBACHIR Selim wrote: I've attached the fixed version of the patch. I've tested it on the trunk with my private target. I can't provide a test because apparently no backend (other than my private one) uses delay slots with more that 1 slot. I was also unable to test th

Re: Do we have any plans to un-flatten our header files?

2015-04-20 Thread Andrew MacLeod
On 04/20/2015 09:18 AM, Richard Biener wrote: On Mon, Apr 20, 2015 at 3:02 PM, Martin Jambor wrote: Hi, because I really dislike the hassle our (almost) flattened header files cause quite often, I have made a very simple experiment to find out how the header files really depend on each other.

RE: IRA preferencing issues

2015-04-20 Thread Wilco Dijkstra
Interestingly even when the preferences are accurate, lra_constraints completely ignores the preferred/allocno class. If the cost of 2 alternatives is equal in every way (which will be the case if they are both legal matches as the standard cost functions are not used at all), the wrong one may be

Re: NIOS and atomic primitives

2015-04-20 Thread Jakub Jelinek
On Mon, Apr 20, 2015 at 11:14:48AM -0500, Joel Sherrill wrote: > > > On 4/20/2015 5:04 AM, Jonathan Wakely wrote: > > On 19 April 2015 at 03:06, Sandra Loosemore wrote: > >> Is it one of the standard g++ or libstdc++ test cases that is failing? I > >> could check what nios2-elf does with it if I

Re: NIOS and atomic primitives

2015-04-20 Thread Joel Sherrill
On 4/20/2015 5:04 AM, Jonathan Wakely wrote: > On 19 April 2015 at 03:06, Sandra Loosemore wrote: >> Is it one of the standard g++ or libstdc++ test cases that is failing? I >> could check what nios2-elf does with it if I knew what to look for. > Libstdc++ does not use the __sync built-ins in the

Re: Do we have any plans to un-flatten our header files?

2015-04-20 Thread Richard Biener
On Mon, Apr 20, 2015 at 3:02 PM, Martin Jambor wrote: > Hi, > > because I really dislike the hassle our (almost) flattened header > files cause quite often, I have made a very simple experiment to find > out how the header files really depend on each other. Some results, > together with a dozen o

Do we have any plans to un-flatten our header files?

2015-04-20 Thread Martin Jambor
Hi, because I really dislike the hassle our (almost) flattened header files cause quite often, I have made a very simple experiment to find out how the header files really depend on each other. Some results, together with a dozen of short paragraphs of relevant text are here: http://labs.suse.cz

How to get anchors to onlinedocs that can be used in external documents?

2015-04-20 Thread Georg-Johann Lay
How to add an anchor to one of the onlinedocs texi documents? Suppose I'd like to add an HTML anchor to one of the onlinedocs, for example to link it from the gcc release notes. Currently the only anchors are either auto-generated and contain some hashes (hence not usable from external docume

RE: try_merge_delay_insn with delay list > 1

2015-04-20 Thread BELBACHIR Selim
I've attached the fixed version of the patch. I've tested it on the trunk with my private target. I can't provide a test because apparently no backend (other than my private one) uses delay slots with more that 1 slot. I was also unable to test the behaviour of this patch for an hypothetic targe

Re: NIOS and atomic primitives

2015-04-20 Thread Jonathan Wakely
On 19 April 2015 at 03:06, Sandra Loosemore wrote: > Is it one of the standard g++ or libstdc++ test cases that is failing? I > could check what nios2-elf does with it if I knew what to look for. Libstdc++ does not use the __sync built-ins in the 4.9 branch, it has switched to the __atomic ones wh

Re: ira.c update_equiv_regs patch causes gcc/testsuite/gcc.target/arm/pr43920-2.c regression

2015-04-20 Thread Shiva Chen
Hi, Jeff Thanks for your advice. can_replace_by.patch is the new patch to handle both cases. pr43920-2.c.244r.jump2.ori is the original jump2 rtl dump pr43920-2.c.244r.jump2.patch_can_replace_by is the jump2 rtl dump after patch can_replace_by.patch Could you help me to review the patch? Th