Re: [2/5] C-SKY port: Backend implementation

2018-08-03 Thread Sandra Loosemore
On 08/02/2018 04:27 PM, Jeff Law wrote: I think the cse_cc pass is really just working around one or more bugs in CSE and/or a backend bug. The RTL above clearly shows a common subexpression that is not eliminated by CSE. What CSE should be trying to do is changing the second and third

Re: [2/5] C-SKY port: Backend implementation

2018-08-03 Thread Yunhai
> 在 2018年8月3日,06:27,Jeff Law 写道: > > On 07/26/2018 12:06 AM, 瞿仙淼 wrote: >> >>> 在 2018年7月25日,上午5:24,Jeff Law 写道: >>> >>> On 07/24/2018 12:18 PM, Sandra Loosemore wrote: On 07/24/2018 09:45 AM, Jeff Law wrote: > On 07/23/2018 10:21 PM, Sandra Loosemore wrote: > I'm not a big fan

Re: [2/5] C-SKY port: Backend implementation

2018-08-02 Thread Jeff Law
On 07/27/2018 07:49 PM, Sandra Loosemore wrote: > On 07/26/2018 12:06 AM, 瞿仙淼 wrote: >> >> I wrote a case to reproduce this problem on C-SKY. C code is as follows: >> --- >> int e1, e2; >> >> void func (int a, int b, int c, int d,

Re: [2/5] C-SKY port: Backend implementation

2018-08-02 Thread Jeff Law
On 07/26/2018 12:06 AM, 瞿仙淼 wrote: > >> 在 2018年7月25日,上午5:24,Jeff Law 写道: >> >> On 07/24/2018 12:18 PM, Sandra Loosemore wrote: >>> On 07/24/2018 09:45 AM, Jeff Law wrote: On 07/23/2018 10:21 PM, Sandra Loosemore wrote: I'm not a big fan of more awk code, but I'm not going to object to

Re: [2/5] C-SKY port: Backend implementation

2018-07-27 Thread Sandra Loosemore
On 07/26/2018 12:06 AM, 瞿仙淼 wrote: I wrote a case to reproduce this problem on C-SKY. C code is as follows: --- int e1, e2; void func (int a, int b, int c, int d, int f, int g) { e1 = a > b ? f : g; e2 = a > b ? c : d;

Re: [2/5] C-SKY port: Backend implementation

2018-07-26 Thread 瞿仙淼
> 在 2018年7月25日,上午5:24,Jeff Law 写道: > > On 07/24/2018 12:18 PM, Sandra Loosemore wrote: >> On 07/24/2018 09:45 AM, Jeff Law wrote: >>> On 07/23/2018 10:21 PM, Sandra Loosemore wrote: >>> I'm not a big fan of more awk code, but I'm not going to object to it :-) >>> >>> Why does the port have

Re: [2/5] C-SKY port: Backend implementation

2018-07-25 Thread Sandra Loosemore
On 07/25/2018 07:16 AM, Paul Koning wrote: Non-executable stacks are a very good thing. That said, I also looked at the target hook documentation and was left without any clue whatsoever. It sure isn't clear what powers of two have to do with descriptors, or what descriptors have to do with

Re: [2/5] C-SKY port: Backend implementation

2018-07-25 Thread Paul Koning
> On Jul 25, 2018, at 12:50 AM, Jeff Law wrote: > ... >>> It did. See TARGET_CUSTOM_FUNCTION_DESCRIPTORS and the (relatively few) >>> ports that define it. >> >> Hmmm, I completely failed to make that connection from the docs -- the >> whole description of that hook is pretty

Re: [2/5] C-SKY port: Backend implementation

2018-07-24 Thread Jeff Law
On 07/24/2018 06:17 PM, Sandra Loosemore wrote: > On 07/24/2018 03:24 PM, Jeff Law wrote: >>> Any thoughts on using the newer function descriptor bits rather than old style stack trampolines? >>> >>> Has that been committed?  I vaguely remembered discussion of a new way >>> to

Re: [2/5] C-SKY port: Backend implementation

2018-07-24 Thread Sandra Loosemore
On 07/24/2018 03:24 PM, Jeff Law wrote: Any thoughts on using the newer function descriptor bits rather than old style stack trampolines? Has that been committed?  I vaguely remembered discussion of a new way to handle nested functions without using the trampoline interface, but I couldn't

Re: [2/5] C-SKY port: Backend implementation

2018-07-24 Thread Jeff Law
On 07/24/2018 12:18 PM, Sandra Loosemore wrote: > On 07/24/2018 09:45 AM, Jeff Law wrote: >> On 07/23/2018 10:21 PM, Sandra Loosemore wrote: >>> 2018-07-23  Jojo  >>> Huibin Wang  >>> Sandra Loosemore  >>> Chung-Lin Tang  >>> >>> C-SKY port:

Re: [2/5] C-SKY port: Backend implementation

2018-07-24 Thread Sandra Loosemore
On 07/24/2018 09:45 AM, Jeff Law wrote: On 07/23/2018 10:21 PM, Sandra Loosemore wrote: 2018-07-23  Jojo      Huibin Wang      Sandra Loosemore      Chung-Lin Tang      C-SKY port: Backend implementation     gcc/     * config/csky/*: New.    

Re: [2/5] C-SKY port: Backend implementation

2018-07-24 Thread Jeff Law
On 07/23/2018 10:21 PM, Sandra Loosemore wrote: > 2018-07-23  Jojo  >     Huibin Wang  >     Sandra Loosemore  >     Chung-Lin Tang  > >     C-SKY port: Backend implementation > >     gcc/ >     * config/csky/*: New. >     * common/config/csky/*: New.

[2/5] C-SKY port: Backend implementation

2018-07-23 Thread Sandra Loosemore
2018-07-23 Jojo Huibin Wang Sandra Loosemore Chung-Lin Tang C-SKY port: Backend implementation gcc/ * config/csky/*: New. * common/config/csky/*: New. csky-gcc-2.patch.gz Description: application/gzip