This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

BUF_LEN in haifa-sched.c



The ppc port now generates insns like

"281  {clobber lr;use `._savef14';[%1-0x90]=%14;[%1-0x88]=%15;[%1-0x80]=%16;[%1-0x78]=%17;[%1-0x70]=%18;[%1-0x68]=%19;[%1-0x60]=%20;[%1-0x58]=%21;[%1-0x50]=%22;[%1-0x48]=%23;[%1-0x40]=%24;[%1-0x38]=%25;[%1-0x30]=%26;[%1-0x28]=%27;[%1-0x20]=%28;[%1-0x18]=%29;[%1-0x10]=%30;[%1-0x8]=%31;}"

or

(insn/f 281 280 283 (parallel[ 
            (clobber (reg:SI 65 lr))
            (use (symbol_ref:SI ("._savef14")))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -144 [0xffffff70])) 1)
                (reg:DF 46 f14))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -136 [0xffffff78])) 1)
                (reg:DF 47 f15))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -128 [0xffffff80])) 1)
                (reg:DF 48 f16))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -120 [0xffffff88])) 1)
                (reg:DF 49 f17))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -112 [0xffffff90])) 1)
                (reg:DF 50 f18))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -104 [0xffffff98])) 1)
                (reg:DF 51 f19))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -96 [0xffffffa0])) 1)
                (reg:DF 52 f20))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -88 [0xffffffa8])) 1)
                (reg:DF 53 f21))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -80 [0xffffffb0])) 1)
                (reg:DF 54 f22))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -72 [0xffffffb8])) 1)
                (reg:DF 55 f23))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -64 [0xffffffc0])) 1)
                (reg:DF 56 f24))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -56 [0xffffffc8])) 1)
                (reg:DF 57 f25))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -48 [0xffffffd0])) 1)
                (reg:DF 58 f26))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -40 [0xffffffd8])) 1)
                (reg:DF 59 f27))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -32 [0xffffffe0])) 1)
                (reg:DF 60 f28))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -24 [0xffffffe8])) 1)
                (reg:DF 61 f29))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -16 [0xfffffff0])) 1)
                (reg:DF 62 f30))
            (set (mem:DF (plus:SI (reg:SI 1 r1)
                        (const_int -8 [0xfffffff8])) 1)
                (reg:DF 63 f31))
        ] ) -1 (nil)
    (expr_list:REG_DEAD (reg:DF 63 f31)

(zillions of REG_DEAD notes omitted, and excessive indenting removed)

(expr_list:REG_UNUSED (reg:SI 65 lr)
    (expr_list:REG_FRAME_RELATED_EXPR (parallel[ 
                (clobber (reg:SI 65 lr))
                (use (symbol_ref:SI ("._savef14")))
                (set/f (mem:DF (plus:SI (reg:SI 1 r1)
                            (const_int -144 [0xffffff70])) 1)
                    (reg:DF 46 f14))
...
                (set/f (mem:DF (plus:SI (reg:SI 1 r1)
                            (const_int -8 [0xfffffff8])) 1)
                    (reg:DF 63 f31))
            ] )
        (nil))))))))))))))))))))))


which overruns haifa-sched's buffer for printing insns in the short
form.  So I will, when I can separate it, apply this patch:

2000-02-09  Geoff Keating  <geoffk@cygnus.com>

	* haifa-sched.c (BUF_LEN): Increase a lot.

diff -p -u -u -p -r1.140 haifa-sched.c
--- haifa-sched.c	2000/01/28 21:54:39	1.140
+++ haifa-sched.c	2000/02/10 03:44:48
@@ -4816,7 +4816,7 @@ init_block_visualization ()
   n_vis_no_unit = 0;
 }
 
-#define BUF_LEN 256
+#define BUF_LEN 2048
 
 static char *
 safe_concat (buf, cur, str)

which is intentionally excessive.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]