9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Julius Schmidt <aiju@phicode.de>
To: 9front@9front.org
Subject: compiler bug (struct assignment to itself)
Date: Sun, 29 Apr 2018 16:54:34 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1804291652570.15422@phi> (raw)

p = (Point){p.y, p.x};

With 8c this compiles to something like

 	MOVL	p+-40(SP),AX
 	MOVL	AX,p+-44(SP)
 	MOVL	p+-44(SP),AX
 	MOVL	AX,p+-40(SP)

which isn't correct.

aiju



                 reply	other threads:[~2018-04-29 14:54 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=alpine.LNX.2.00.1804291652570.15422@phi \
    --to=aiju@phicode.de \
    --cc=9front@9front.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 NNTP newsgroup(s).