public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "szir at sch dot bme dot hu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/39593] faulty value assignment
Date: Tue, 31 Mar 2009 00:20:00 -0000	[thread overview]
Message-ID: <20090331002042.4673.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39593-10417@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from szir at sch dot bme dot hu  2009-03-31 00:20 -------
(In reply to comment #3)
>  BYTE b[4];
>  *((DWORD *)b) = x;
> this is violating aliasing rules.  Does adding -fno-strict-aliasing allow this
> to work?

If you look at the code you can see it is never called, the only code that is
actually called at all is the InitTF() assignments, the rest is just junk, that
confuses the compiler.

And -fno-strict-aliasing does not help, by the way the junk code works just
fine, that is not the problem. Thanks anyway, I added -fno-strict-aliasing to
makefile.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39593


  parent reply	other threads:[~2009-03-31  0:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 23:50 [Bug c/39593] New: " szir at sch dot bme dot hu
2009-03-30 23:53 ` [Bug c/39593] " szir at sch dot bme dot hu
2009-03-30 23:54 ` [Bug target/39593] " pinskia at gcc dot gnu dot org
2009-03-30 23:56 ` szir at sch dot bme dot hu
2009-03-30 23:57 ` pinskia at gcc dot gnu dot org
2009-03-30 23:59 ` szir at sch dot bme dot hu
2009-03-31  0:09 ` szir at sch dot bme dot hu
2009-03-31  0:20 ` szir at sch dot bme dot hu [this message]
2009-03-31  9:44 ` rguenth at gcc dot gnu dot org
2009-03-31 12:05 ` szir at sch dot bme dot hu
2009-03-31 12:11 ` szir at sch dot bme dot hu
2009-04-06 22:38 ` [Bug target/39593] [avr] " eric dot weddington at atmel dot com

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=20090331002042.4673.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).