From: 陳鵬升 <pschen@puma.cs.nthu.edu.tw>
To: <gcc@gcc.gnu.org>, <gcc-help@gcc.gnu.org>
Subject: Help!
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <NDBBLKOACKKKFPINNIPEKEEECBAA.pschen@puma.cs.nthu.edu.tw> (raw)
Message-ID: <20000401000000.oG6k9oQG_s-Z9K_On4j5nWmlbcujLHW5_rzRSGCasz0@z> (raw)
Hello:
Under M68000,
I want to generate position-independent-data using the base of register A5.
I modify legitimate_pic_address function and produce the RTL that I want.
I want use PID(base-register A5) and option -mpcrel .
------------------------------------------------------------
for example :
(insn 10 5 11 (set (reg:SI 30)
(mem/u:SI (plus:SI (reg:SI 13 %a5)
(symbol_ref:SI ("C"))) 0)) -1 (nil)
(nil))
(insn 11 10 13 (set (reg:SI 29)
(reg:SI 30)) -1 (nil)
(expr_list:REG_EQUAL (symbol_ref:SI ("C"))
(nil)))
-------------------------------------------------------------
If I don't use -O2 optimal option, the output assemble code is right.
If I use -O2 optimal option, the output assemble code is wrong.
The option -fpic also generate the same RTL code, but it don't be affect by -O2.
What files and where should I modify for correct it?
Thanks very much.
Ps. Chen
next reply other threads:[~2000-04-01 0:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-24 0:56 陳鵬升 [this message]
2000-04-01 0:00 ` Help! 陳鵬升
2000-03-08 14:14 HELP !!! FabrÃcio Souza
2000-03-09 17:00 ` Alexandre Oliva
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` FabrÃcio Souza
2000-05-15 9:15 HELP!!! Michael Michael
2000-05-16 23:27 ` HELP!!! Martin v. Loewis
2001-01-02 18:27 Help? Kwanghoon Choi
2001-01-02 19:37 ` Help? Alexandre Oliva
2002-04-04 23:41 Help! 朱 少波
[not found] <20020617195757.13842.qmail@uwdvg001.cms.usa.net>
2002-06-17 13:05 ` help!! Phil Edwards
2002-11-19 10:16 help!!! mingo lu
[not found] <20021204042724.64819.qmail@web15002.mail.bjs.yahoo.com>
2002-12-04 0:16 ` help! Ben Elliston
2003-03-03 17:37 help!!! Jim Frost
2003-03-07 5:46 ` help!!! LLeweLLyn Reese
2003-07-12 10:05 help? Shen Hui
2005-06-02 15:54 help_ imacat
2006-01-28 5:42 Help? Garvin Pang
2006-01-28 7:41 ` Help? Brian Dessent
2006-12-26 13:38 help!! manish manish
2006-12-27 17:01 ` help!! Ian Lance Taylor
2018-06-01 15:58 Help!! Tomas Ukkonen
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=NDBBLKOACKKKFPINNIPEKEEECBAA.pschen@puma.cs.nthu.edu.tw \
--to=pschen@puma.cs.nthu.edu.tw \
--cc=gcc-help@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
/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).