public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ziemowit Laski <zlaski@apple.com>
To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
Cc: gcc-patches@gcc.gnu.org
Subject: Re: PING: PATCH: Do not clear the DECL_BIT_FIELD flag (prelude to ObjC fix)
Date: Tue, 13 Aug 2002 18:43:00 -0000	[thread overview]
Message-ID: <360F6550-AF27-11D6-BBBF-000393673036@apple.com> (raw)
In-Reply-To: <10208140137.AA12567@vlsi1.ultra.nyu.edu>


On Tuesday, Aug 13, 2002, at 18:37 US/Pacific, Richard Kenner wrote:

>     What kind of performance problems were you thinking of?
>
> Well, DECL_BIT_FIELD means to use bitfield access techniques, which add
> code.  If we use them when we don't need to, we generate worse code.

You mean the back-end isn't smart enough to detect bitfields that
could be accessed as bytes or words?

>
>     I suppose the ObjC front-end could be taught to keep separate
>     copies of instance variables for super classes lest they get
>     side-effected too often, but that is terribly kludgey.
>
> Why not just use a language-specific flag instead of DECL_BIT_FIELD?

Because the instance variables of ObjC classes are parsed/handled by
the same machinery as fields in a C struct.  And for a good reason --
ObjC classes _are_ C structs (among other things).

--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477

  reply	other threads:[~2002-08-14  1:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-13 18:38 Richard Kenner
2002-08-13 18:43 ` Ziemowit Laski [this message]
2002-08-13 19:58   ` Richard Henderson
2002-08-14 11:25     ` Ziemowit Laski
2002-08-20 10:47       ` Jason Merrill
2002-08-20 11:06         ` Ziemowit Laski
  -- strict thread matches above, loose matches on Subject: below --
2002-08-14 12:20 Richard Kenner
2002-08-14 12:55 ` Ziemowit Laski
2002-08-14 12:03 Richard Kenner
2002-08-14 12:18 ` Ziemowit Laski
2002-08-14 13:06   ` Richard Henderson
2002-08-14 13:52     ` Ziemowit Laski
2002-08-15 15:59     ` Ziemowit Laski
2002-08-14 11:39 Richard Kenner
2002-08-14 12:00 ` Ziemowit Laski
2002-08-14  2:57 Richard Kenner
2002-08-13 18:31 Richard Kenner
2002-08-13 18:36 ` Ziemowit Laski
2002-08-13 18:26 Ziemowit Laski

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=360F6550-AF27-11D6-BBBF-000393673036@apple.com \
    --to=zlaski@apple.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kenner@vlsi1.ultra.nyu.edu \
    /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).