public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schuetzkowski <Thomas.Schuetzkowski@web.de>
To: gcc@gcc.gnu.org
Subject: porting 8051: Internal compiler error in `instantiate_virtual_regs_1', at function.c:4027
Date: Tue, 21 Mar 2000 12:19:00 -0000	[thread overview]
Message-ID: <38D7D90F.F23F822A@web.de> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2784 bytes --]

Dear GCC-Developers,

if i compile a simple program like the following using the generated cc1
compiler,
everything seems to be ok and assembler code is generated.

        int main(void)
        {
          int i;
          return 0;
        }

the debugoption -dr produces the following rtl-code:

        ;; Function main

        (note 2 0 3 "" NOTE_INSN_DELETED)

        (note 3 2 4 "" NOTE_INSN_FUNCTION_BEG)

        (note 4 3 5 "" NOTE_INSN_DELETED)

        (call_insn 5 4 7 (call (mem:HI (symbol_ref:HI ("__main")) 0)
                (const_int 0 [0x0])) -1 (nil)
            (nil)
            (nil))

        (note 7 5 10 0 NOTE_INSN_BLOCK_BEG)

        (insn 10 7 11 (set (reg/i:HI 2 R2)
                (const_int 0 [0x0])) -1 (nil)
            (nil))

        (insn 11 10 12 (use (reg/i:HI 2 R2)) -1 (nil)
            (nil))

        (jump_insn 12 11 13 (set (pc)
                (label_ref 18)) -1 (nil)
            (nil))

        (barrier 13 12 15)

        (note 15 13 16 0 NOTE_INSN_BLOCK_END)

        (note 16 15 18 "" NOTE_INSN_FUNCTION_END)

        (code_label 18 16 0 2 "" [num uses: 0])


If I add a value like

        int main(void)
        {
          int i;
          i=0;
          return 0;
        }

the compiler calls abort().

        test1.c: In function `main':
        test1.c:6: Internal compiler error in
`instantiate_virtual_regs_1', at function.c:4027

 -dr  produces the rtl-code:

        ;; Function main

        (note 2 0 3 "" NOTE_INSN_DELETED)

        (note 3 2 4 "" NOTE_INSN_FUNCTION_BEG)

        (note 4 3 5 "" NOTE_INSN_DELETED)

        (call_insn 5 4 7 (call (mem:HI (symbol_ref:HI ("__main")) 0)
                (const_int 0 [0x0])) -1 (nil)
            (nil)
            (nil))

        (note 7 5 10 0 NOTE_INSN_BLOCK_BEG)

        (insn 10 7 13 (set (mem/f:HI (reg:HI 38) 0)
                (const_int 0 [0x0])) -1 (nil)
            (nil))

        (insn 13 10 14 (set (reg/i:HI 2 R2)
                (const_int 0 [0x0])) -1 (nil)
            (nil))

        (insn 14 13 15 (use (reg/i:HI 2 R2)) -1 (nil)
            (nil))

        (jump_insn 15 14 16 (set (pc)
                (label_ref 21)) -1 (nil)
            (nil))

        (barrier 16 15 18)

        (note 18 16 19 0 NOTE_INSN_BLOCK_END)

        (note 19 18 21 "" NOTE_INSN_FUNCTION_END)

        (code_label 21 19 0 2 "" [num uses: 0])

the only difference is that memory must be allocated to store the value,
so
that must be the reason why the compiler aborts.
I don´t have an idea why this happens. Is this a problem in addressing?
Is there something wrong with the mov-insns or would a gen*-program tell
me about a problem?
How can I find out about that problem and fix it?

Thanks,
  Thomas


-- 
\|/ ______ \|/
"@'/  ,.  \'@"
/__| \__/ |__\
    \__U_/

             reply	other threads:[~2000-03-21 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-21 12:19 Thomas Schuetzkowski [this message]
2000-03-21 16:23 ` Martin v. Loewis

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=38D7D90F.F23F822A@web.de \
    --to=thomas.schuetzkowski@web.de \
    --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).