All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Zaitsev <zzz@anda.ru>
To: Jim Wilson <wilson@specifixinc.com>
Cc: linux-gcc@vger.kernel.org, gcc@gcc.gnu.org
Subject: Re: GCC 3.3.2 -Wall affects the code generated...
Date: Wed, 7 Jul 2004 04:46:04 +0600	[thread overview]
Message-ID: <20040707044604.C17650@natasha.ward.six> (raw)
In-Reply-To: <40EB0E5E.4020002@specifixinc.com>; from wilson@specifixinc.com on Tue, Jul 06, 2004 at 01:41:02PM -0700

On Tue, Jul 06, 2004 at 01:41:02PM -0700, Jim Wilson wrote:
> Denis Zaitsev wrote:
> > header an inline function named strip is defined.  And I found that
> > the object code generated for this function depends of the presence of
> > -Wall in the list of option to GCC.  
> 
> This is probably a bug.  This is a small loop that is being complied 
> differently, so this might be a problem with a loop optimizer, or with 
> the basic block reorganizer.  I'd guess we have an uninitialized 
> variable, or some other kind of memory corruption somewhere.  I don't 
> know of any other reason why -Wall would effect the code emitted.
> 
> We need a testcase to look at this.  The source you provided can not be 
> compiled on its own.  I don't happen to have an x86 GLIBC tree, so I can 
> not easily generate my own testcase.  I tried fixing your testcase to 
> make it compilable, but nothing interesting happens when using 
> gcc-3.3.4.  I suspect that there is a complicated interaction going on 
> here, and we actually need the full input file to reproduce the problem, 
> rather than just the source for the one function that changes.  Or maybe 
> the problem has already been fixed.  I can't tell.

I used to assume that everybody has the GLIBC tree.  :)  So, I can
just sent all the necessary files to you.  And I don't think that this
problem is specific for that function, so there is no sence to try to
reproduce the problem upon that function only.  I have already told,
it seems that a compilation of that file loads GCC too high, and bugs
are popping up.  Compiling that file, GCC just refuse to do some
(other that the inlining) optimization it always does.  I can describe
this problem too, should it help.

And I going to compile and install GCC-3.3.4 myself, so I will try to
compile GLIBC with this GCC and will report the result.

  parent reply	other threads:[~2004-07-06 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 18:03 GCC 3.3.2 -Wall affects the code generated Denis Zaitsev
2004-07-06 20:41 ` Jim Wilson
2004-07-06 21:11   ` John Richard Moser
2004-07-06 22:46   ` Denis Zaitsev [this message]
2004-07-07  0:20     ` Jim Wilson
2004-07-07  7:44       ` Denis Zaitsev

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=20040707044604.C17650@natasha.ward.six \
    --to=zzz@anda.ru \
    --cc=gcc@gcc.gnu.org \
    --cc=linux-gcc@vger.kernel.org \
    --cc=wilson@specifixinc.com \
    /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.