public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* more on sparc-rtems core dump from gcc2.8.0-971206
@ 1997-12-08  6:20 Joel Sherrill
  0 siblings, 0 replies; only message in thread
From: Joel Sherrill @ 1997-12-08  6:20 UTC (permalink / raw)
  To: gcc2; +Cc: egcs

I am going to be out of pocket this am so wanted to pass on what little I
have learned in the hopes it would give someone an idea.  Trying this
command:

sparc-rtems-gcc -O4 -Wall -c joel.c -da

On this file (joel.c):

typedef struct {
    double      x;
} struct_x;

extern  struct_x  A ;

void func1(
  void **arg
);

void func2(
  void             *cpu_table,
  void            (*thread_dispatch)
)
{ 
  void                  *pointer;
   
  /* *(int *)cpu_table = 0; */
  pointer = &A;
  func1( &pointer );
}

Produced this output:

-rw-------   1 joel     afcc       487424 Dec  8 08:13 core
-rw-r--r--   1 joel     afcc          296 Dec  8 08:11 joel.c
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.addressof
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.bp
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.combine
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.cse
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.cse2
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.dbr
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.flow
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.greg
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.jump
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.jump2
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.loop
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.lreg
-rw-r--r--   1 joel     afcc         1311 Dec  8 08:13 joel.c.rtl
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.sched
-rw-r--r--   1 joel     afcc            0 Dec  8 08:13 joel.c.sched2
-rw-r--r--   1 joel     afcc          214 Dec  8 08:12 joel.o

The rtl file was:


;; Function func2

(note 2 0 4 "" NOTE_INSN_DELETED)

(insn 4 2 6 (set (reg/v:SI 105)
        (reg:SI 24 %i0)) -1 (nil)
    (expr_list:REG_EQUIV (mem:SI (reg:SI 101))
        (nil)))

(insn 6 4 7 (set (reg/v:SI 106)
        (reg:SI 25 %i1)) -1 (nil)
    (expr_list:REG_EQUIV (mem:SI (plus:SI (reg:SI 101)
                (const_int 4)))
        (nil)))

(note 7 6 8 "" NOTE_INSN_FUNCTION_BEG)

(note 8 7 10 "" NOTE_INSN_DELETED)

(note 10 8 12 "" NOTE_INSN_BLOCK_BEG)

(insn 12 10 13 (set (reg:SI 108)
        (high:SI (symbol_ref:SI ("A")))) -1 (nil)
    (nil))

(insn 13 12 16 (set (reg:SI 110)
        (lo_sum:SI (reg:SI 108)
            (symbol_ref:SI ("A")))) -1 (nil)
    (nil))

(insn 16 13 19 (set (mem:SI (addressof:SI (reg:SI 109) 107))
        (reg:SI 110)) -1 (nil)
    (nil))

(insn 19 16 21 (set (reg:SI 111)
        (addressof:SI (reg:SI 109) 107)) -1 (nil)
    (nil))

(insn 21 19 23 (set (reg:SI 8 %o0)
        (reg:SI 111)) -1 (nil)
    (nil))

(call_insn 23 21 25 (parallel[ 
            (call (mem:SI (symbol_ref:SI ("func1")))
                (const_int 0))
            (clobber (reg:SI 15 %o7))
        ] ) -1 (nil)
    (nil)
    (expr_list (use (reg:SI 8 %o0))
        (nil)))

(note 25 23 26 "" NOTE_INSN_BLOCK_END)

(note 26 25 28 "" NOTE_INSN_FUNCTION_END)

(code_label 28 26 0 1 "")

What else do I need to look at?  

--joel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-08  6:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-08  6:20 more on sparc-rtems core dump from gcc2.8.0-971206 Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).