All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Odd warning in lm90.c (and other drivers)
Date: Sat, 27 Aug 2011 19:58:27 +0000	[thread overview]
Message-ID: <20110827195827.GA22090@ericsson.com> (raw)
In-Reply-To: <1314377205.2796.90.camel@groeck-laptop>

On Sat, Aug 27, 2011 at 11:02:25AM -0400, Jean Delvare wrote:
> Hi Guenter,
> 
> On Fri, 26 Aug 2011 11:28:10 -0700, Guenter Roeck wrote:
> > I also tried the same configuration with gcc 4.5.2. lm90 and smsc47b397
> > warnings are still reported, others are gone.
> 
> Yes, I see them too using your configuration file with:
> 
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.5/lto-wrapper
> Target: x86_64-suse-linux
> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-linux-futex --without-system-libunwind --enable-gold --with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
> Thread model: posix
> gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) 
> 
> I did not see the ones in adm1031 and pmbus though.
> 
> > Specifically the code in smsc47b397.c leads me to believe that this is
> > just a compiler glitch, but I still would like to understand why it is
> > only seen with some configurations ...
> 
> Apparently this is a combination of CONFIG_CC_OPTIMIZE_FOR_SIZE and at
> least one other option. The warnings disappear if I turn off
> CONFIG_CC_OPTIMIZE_FOR_SIZE on your configuration file, but they don't
> show up if I turn it on on my own configuration.
> 

Hi Jean,

Good catch. Guess I'll disable that flag in my automatic builds.

Thanks!
Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-08-27 19:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 16:46 [lm-sensors] Odd warning in lm90.c (and other drivers) Guenter Roeck
2011-08-26 16:53 ` Jean Delvare
2011-08-26 17:16 ` Guenter Roeck
2011-08-26 17:22 ` Jean Delvare
2011-08-26 18:05 ` Guenter Roeck
2011-08-26 18:28 ` Guenter Roeck
2011-08-27 15:02 ` Jean Delvare
2011-08-27 19:58 ` Guenter Roeck [this message]

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=20110827195827.GA22090@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.