public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] HELP, trying to remove complier warnings
Date: Thu, 10 Jul 2008 14:06:45 -0500	[thread overview]
Message-ID: <48765DC5.2010503@freescale.com> (raw)
In-Reply-To: <20080710185827.0081E248FE@gemini.denx.de>

Wolfgang Denk wrote:
> In message <48765849.5050306@freescale.com> you wrote:
>> Wolfgang Denk wrote:
>>> In message <921B6E79C3E18642BFFC1C8633C430DB01023B9A@CA1EXCLV07.adcorp.kla-tencor.com> you wrote:
>>>> Try adding -fno-strict-aliasing
>>> No, we don't want to hush up compiler warnings, we want to fix the
>>> problems instead.
>> It's not silencing a warning (if it were, it'd be a -W flag); it's 
>> disabling an incompatible optimization.
> 
> OK.
> 
> Then let me rephrase: We do not want to disable optimizations, ...

If you want to figure out what that code is doing and rewrite it to be 
compliant with strict aliasing, go ahead (I tried, and it made my brain 
hurt).  In the meantime, we shouldn't be enabling the optimization on 
code that was written for an older version of the C language where such 
an optimization was prohibited, and where the compiler is letting us 
know that it thinks the code depends on the older semantics.

-Scott

  reply	other threads:[~2008-07-10 19:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 16:58 [U-Boot-Users] HELP, trying to remove complier warnings Kumar Gala
2008-07-10 17:59 ` Howard, Marc
2008-07-10 18:42   ` Wolfgang Denk
2008-07-10 18:43     ` Scott Wood
2008-07-10 18:58       ` Wolfgang Denk
2008-07-10 19:06         ` Scott Wood [this message]
2008-07-18  5:35       ` Kumar Gala
2008-07-19 13:47         ` Jerry Van Baren

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=48765DC5.2010503@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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