public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Ulrich Drepper <drepper@cygnus.com>
Cc: "Adam J. Richter" <adam@yggdrasil.com>, linux-kernel@vger.kernel.org
Subject: Re: List of all-zero .data variables in linux-2.4.3 available
Date: Mon, 16 Apr 2001 14:33:21 +0000	[thread overview]
Message-ID: <20010416143320.A40@(none)> (raw)
In-Reply-To: <200104121929.MAA04049@adam.yggdrasil.com> <m33dbdsy8r.fsf@otr.mynet.cygnus.com>
In-Reply-To: <m33dbdsy8r.fsf@otr.mynet.cygnus.com>; from drepper@redhat.com on Thu, Apr 12, 2001 at 12:40:20PM -0700

Hi!

> > 	I am aware of a couple of cases where code relied on static
> > variables being allocated contiguously, but, in both cases, those
> > variables were either all zeros or all non-zeros, so my proposed
> > change would not break such code.
> 
> Continuous placement is not the only property defined by
> initialization.  There are many more.  You cannot change this since it
> will quite a few programs and libraries and subtle and hard to
> impossible to identify ways.  Simply educate programmers to not
> initialize.

Unless ansiC specifies such behaviour, such code is buggy. And buggy
code should be fixed, not be used as argument against optimalization.
[Of course, you can turn off that optimalization for buggy code, if code
is too ugly to fix.] 

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.


  reply	other threads:[~2001-04-16 21:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-12 19:29 List of all-zero .data variables in linux-2.4.3 available Adam J. Richter
2001-04-12 19:40 ` Ulrich Drepper
2001-04-16 14:33   ` Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-12 20:04 Adam J. Richter
2001-04-12 19:50 Adam J. Richter
2001-04-12 19:01 Adam J. Richter
2001-04-12 19:14 ` Ulrich Drepper
2001-04-12 21:27   ` H. Peter Anvin
2001-04-12 12:36 Adam J. Richter
2001-04-12 14:44 ` johan.adolfsson
2001-04-12 14:57   ` Russell King
2001-04-12 15:28   ` Richard B. Johnson
2001-04-12 19:52 ` Jeff Garzik

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='20010416143320.A40@(none)' \
    --to=pavel@suse.cz \
    --cc=adam@yggdrasil.com \
    --cc=drepper@cygnus.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox