From: Joel Sherrill <joel@OARcorp.com>
To: gcc2@cygnus.com
Cc: egcs@cygnus.com
Subject: more on sparc-rtems core dump from gcc2.8.0-971206
Date: Mon, 08 Dec 1997 06:20:00 -0000 [thread overview]
Message-ID: <Pine.BSF.3.96.971208081526.25006H-100000@vespucci.advicom.net> (raw)
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
reply other threads:[~1997-12-08 6:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.BSF.3.96.971208081526.25006H-100000@vespucci.advicom.net \
--to=joel@oarcorp.com \
--cc=egcs@cygnus.com \
--cc=gcc2@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).