Redundant malloc in structure optimization? (testsuite/gcc.dg/struct/wo_prof_global_var.c)

2008-04-28 Thread Bingfeng Mei
the original structure (D.2215) is still allocated, and not used afterward. The following RTL-level optimization cannot eliminate it. Cheers, Bingfeng Mei Broadcom UK Original C code: /* { dg-do compile } */ /* { dg-do run } */ #include typedef struct { int a; float b; }str_t

RE: Redundant malloc in structure optimization? (testsuite/gcc.dg/struct/wo_prof_global_var.c)

2008-05-01 Thread Bingfeng Mei
Message- From: Olga Golovanevsky [mailto:[EMAIL PROTECTED] Sent: 01 May 2008 13:19 To: Bingfeng Mei Cc: gcc@gcc.gnu.org; Kenneth Zadeck Subject: Re: Redundant malloc in structure optimization? (testsuite/gcc.dg/struct/wo_prof_global_var.c) [EMAIL PROTECTED] wrote on 28/04/2008 12:36:44: >

RE: Redundant malloc in structure optimization? (testsuite/gcc.dg/struct/wo_prof_global_var.c)

2008-05-01 Thread Bingfeng Mei
access uninitialized memory chunk (D.2215), or access two split substructures, then make the first allocated memory useless. -Original Message- From: Kenneth Zadeck [mailto:[EMAIL PROTECTED] Sent: 01 May 2008 15:09 To: Bingfeng Mei Cc: Olga Golovanevsky; gcc@gcc.gnu.org Subject: Re

Implement #pragma unroll?

2008-05-29 Thread Bingfeng Mei
infrastructure to implement similar #pragma? I can see it will be quite useful for many targets. Cheers, Bingfeng Mei Broadcom UK

RE: Implement #pragma unroll?

2008-05-29 Thread Bingfeng Mei
Alex, Thanks for your suggestion. What target hook do you use for the backend function? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Turjan Sent: 29 May 2008 14:45 To: gcc@gcc.gnu.org Subject: RE: Implement #pragma unroll? Dear Bingfeng, Some tim

RE: Implement #pragma unroll?

2008-05-30 Thread Bingfeng Mei
-Original Message- From: Alex Turjan [mailto:[EMAIL PROTECTED] Sent: 30 May 2008 08:55 To: Bingfeng Mei; gcc@gcc.gnu.org Subject: RE: Implement #pragma unroll? Bingfeng, to define the pragma you use something like this: #define REGISTER

newlib & libgcov

2008-06-12 Thread Bingfeng Mei
ns of them? Any suggestion is greatly appreciated. Cheers, Bingfeng Mei Broadcom UK

RE: newlib & libgcov

2008-06-16 Thread Bingfeng Mei
I don't know why GCC defines inhibit_libc during configuration. Now I use --with-headers according to another mail's suggestion, this problem is solved. Thanks. Bingfeng -Original Message- From: Jan Hubicka [mailto:[EMAIL PROTECTED] Sent: 16 June 2008 02:54 To: Bingfeng M

Is this a GCC bug?

2008-06-16 Thread Bingfeng Mei
peration that should precede instructions and read-only data. Normally "\t.text" is right. So I guess either internal manual or crtstuff.c is wrong. Or I am making some stupid mistake here. Could someone have a look at this? Thanks in advance. Cheers, Bingfeng Mei Broadcom UK

RE: Is this a GCC bug?

2008-06-16 Thread Bingfeng Mei
I realized I probably need to write CRT_CALL_STATIC_FUNCTION myself. That should solve the issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bingfeng Mei Sent: 16 June 2008 14:01 To: gcc@gcc.gnu.org Subject: Is this a GCC bug? Hello, I encountered

Is it legitmate to have a fallthru succ edge but a different basic block next?

2008-06-27 Thread Bingfeng Mei
( 8) -> 9 ... Cheers, Bingfeng Mei

No warning of violating strict aliasing rule and produce wrong code

2008-06-30 Thread Bingfeng Mei
really difficult to detect. It would be nice to at least give a warning. Should I report it as a bug? Cheers, Bingfeng Mei Broadcom UK tst.c #include unsigned long long core_id; unsigned long bar(unsigned long extchan, unsigned long* intchan) { *intchan = extchan + 6; return extchan-5

RE: No warning of violating strict aliasing rule and produce wrong code

2008-06-30 Thread Bingfeng Mei
Sorry, I made a mistake. My local copy of mainline version (still 4.3.0 20080213) doesn't gave warning. I just updated my mainline GCC and it does give warning now. -Original Message- From: Andrew Haley [mailto:[EMAIL PROTECTED] Sent: 30 June 2008 13:45 To: Bingfeng Mei Cc

Inefficient loop unrolling.

2008-07-02 Thread Bingfeng Mei
me unrolling functions at tree-level, but there is no independent tree-level loop unrolling pass except "cunroll", which is complete unrolling. What prevents such a tree-level unrolling pass? Or is there any suggestion to improve existing RTL level unrolling? Thanks in advance. Cheers

RE: Inefficient loop unrolling.

2008-07-02 Thread Bingfeng Mei
) has signed company-wide FSF copyright assignment. Cheers, Bingfeng -Original Message- From: Richard Guenther [mailto:[EMAIL PROTECTED] Sent: 02 July 2008 12:59 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Inefficient loop unrolling. On Wed, Jul 2, 2008 at 1:13 PM, Bingfeng Mei

RE: Inefficient loop unrolling.

2008-07-03 Thread Bingfeng Mei
that loop unrolling should belong to RTL level? Is it fundamental? Cheers, Bingfeng -Original Message- From: Steven Bosscher [mailto:[EMAIL PROTECTED] Sent: 02 July 2008 17:01 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Inefficient loop unrolling. On Wed, Jul 2, 2008 at 1:13 PM

RE: Inefficient loop unrolling.

2008-07-10 Thread Bingfeng Mei
Message- From: Paolo Bonzini [mailto:[EMAIL PROTECTED] On Behalf Of Paolo Bonzini Sent: 10 July 2008 13:34 To: Bingfeng Mei Cc: Steven Bosscher; gcc@gcc.gnu.org Subject: Re: Inefficient loop unrolling. Bingfeng Mei wrote: > Steven, > I just created a bug report. You should receive a CCed ma

Question about doloop_end pattern

2008-07-16 Thread Bingfeng Mei
orm anymore. And later RTL level optimizations cannot convert it back. Since it doesn't pass the doloop_condition_get test, modulo scheduling pass doesn't work too. Do I miss something here? Any hint is greatly appreciated. Cheers, Bingfeng Mei

RE: Question about doloop_end pattern

2008-07-16 Thread Bingfeng Mei
L PROTECTED] > Sent: 16 July 2008 16:05 > To: gcc@gcc.gnu.org > Cc: Ian Lance Taylor; Bingfeng Mei > Subject: Re: Question about doloop_end pattern > > I can confirm that the doloop optimization is applied for > ARC600 / ARC700 > in a compiler based on gcc 4.4.0 20080606 (exp

RE: Question about doloop_end pattern

2008-07-17 Thread Bingfeng Mei
Thanks. I was looking at bfin. MT's implementation looks similar but simpler. > -Original Message- > From: Ramana Radhakrishnan [mailto:[EMAIL PROTECTED] > Sent: 16 July 2008 19:17 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: Question about dol

Is cross-section inlining valid behaviour?

2008-07-23 Thread Bingfeng Mei
aMS",@progbits,1 .LC0: .string "Hello" .sectionbar,"ax",@progbits .p2align 4,,15 .globl bar .type bar, @function bar: .LFB3: movl$.LC0, %edi jmp puts .LFE3: Thanks. Bingfeng Mei

RE: Is cross-section inlining valid behaviour?

2008-07-23 Thread Bingfeng Mei
heers, Bingfeng > -Original Message- > From: Dave Korn [mailto:[EMAIL PROTECTED] > Sent: 23 July 2008 16:05 > To: Bingfeng Mei; gcc@gcc.gnu.org > Subject: RE: Is cross-section inlining valid behaviour? > > Bingfeng Mei wrote on 23 July 2008 15:46: > > > > The foo fu

built-in-setjmp failure.

2008-09-04 Thread Bingfeng Mei
similar issue. Is this a potential bug for GCC or is there any way to overcome it just by changing my porting? I did a search on the mailing list, and found the following thread reported a very similar issue. Unfortunately, it didn't have follow-up about solution. http://gcc.gnu.org/ml/gcc/2008-03/msg00932.html Cheers, Bingfeng Mei Broadcom UK

How to force instruction in slot1 while emit NOP in slot0 if necessary?

2007-09-24 Thread Bingfeng Mei
We are portinng GCC 4.2.1 to a 2-issue VLIW processor. There are some special instructions which can only be issued on the second slot (slot 1). I tried to specify using following DFA constructs. ;; Define this instruction can only be issued on slot 1 (define_insn_reservation "psr_y" 1 (eq_at

Machine dependent Tree optimization?

2007-10-16 Thread Bingfeng Mei
ement such machine-dependent tree-level optimization (like hooks in RTL level). I believe there are other processors that have the similar problem. What is common solution? Thanks, Bingfeng Mei Broadcom UK

RE: Machine dependent Tree optimization?

2007-10-16 Thread Bingfeng Mei
>= 0 && INTVAL(x) <= 255) { *total = 1; return true; } *total = 4; return true; Bingfeng Mei -Original Message- From: Ian Lance Taylor [mailto:[EMAIL PROTECTED] Sent: 16 October 2007 15:32 To: Bingfeng Mei Cc: gcc@gcc.gnu.org S

How to avoid common subexpression elimination under this situation?

2007-10-23 Thread Bingfeng Mei
TL level, it is difficult to reverse the optimization. In our 3.4.6 -based porting, the GCC actually generates the latter code. How to avoid CSE under such situation? Any suggestion is greatly appreciated. Cheers, Bingfeng Mei Broadcom UK

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-02 Thread Bingfeng Mei
adhakrishnan [mailto:[EMAIL PROTECTED] Sent: 02 November 2007 12:39 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Tree-SSA and POST_INC address mode inompatible in GCC4? Hi Bingfeng, On 11/2/07, Bingfeng Mei <[EMAIL PROTECTED]> wrote: > Hello, > > I look at the following the code to

Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-02 Thread Bingfeng Mei
ion to overcome this problem? Any suggestion is greatly appreciated. Bingfeng Mei Broadcom UK

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Bingfeng Mei
Yes, that is the better way to generate code than using POST_INC since it eliminates unnecessary dependency. Which version used to do this? Where should it be done? I am thinking one of those copy propagation passes. Am I right? Cheers, Bingfeng -Original Message- From: [EMAIL PROTECTED]

Dependency check between instructions?

2007-11-07 Thread Bingfeng Mei
in advance. Bingfeng Mei Broadcom UK

RE: Dependency check between instructions?

2007-11-19 Thread Bingfeng Mei
ncies between insn1 and insn2. */ sched_analyze(&tmp_deps, insn1, insn2); /* Remove dependencies from con. */ finish_deps_global (); free_deps (&tmp_deps); Is there any better way for dependency analysis? Cheers, Bingfeng Mei Broadcom UK -Original Message- From: M

Simple way to write almost same pattern?

2007-11-22 Thread Bingfeng Mei
quot;r") (match_operand:V8HI 2 "nonmemory_operand" "ri")))] "" "andl %0, %1, %2" (define_expand "andv16qi3" [(set (match_operand:V16QI 0 "register_operand" "=r") (and:SI (match_operand:V16QI 1 "register_operand" "r") (match_operand:V16QI 2 "nonmemory_operand" "ri")))] "" "andl %0, %1, %2" ... Thanks, Bingfeng Mei Broadcom UK

RE: Simple way to write almost same pattern?

2007-11-22 Thread Bingfeng Mei
Dave, Is is only for 4.3+? Define_mode_iterator is not recognized in 4.2.1 I am working on. And I didn't find anything in GCC4.2.1 internal manual either. Cheer. Bingfeng -Original Message- From: Dave Korn [mailto:[EMAIL PROTECTED] Sent: 22 November 2007 15:00 To: Bingfeng Mei

How to define a blackbox data type in gcc?

2007-12-06 Thread Bingfeng Mei
An example of such data type is to represent value in a MAC register. Is there are convenient way to do that? Thanks in advance, Cheers, Bingfeng Mei Broadcom UK

error: no data type for mode ".."

2007-12-11 Thread Bingfeng Mei
is used to represennt 40-bit MAC similarly. I also tries to define a new INT_MODE by: INT_MODE(PDI, 8). The error message is the same. Any hint? Thanks in advance. Cheers, Bingfeng Mei Broadcom UK

<    1   2   3