public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "aoliva at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/22156] [4.0/4.1/4.2/4.3 Regression] bit-field copying regressed
Date: Thu, 05 Apr 2007 18:51:00 -0000	[thread overview]
Message-ID: <20070405185048.10222.qmail@sourceware.org> (raw)
In-Reply-To: <bug-22156-6528@http.gcc.gnu.org/bugzilla/>



------- Comment #12 from aoliva at gcc dot gnu dot org  2007-04-05 19:50 -------
Subject: Bug 22156

Author: aoliva
Date: Thu Apr  5 19:50:34 2007
New Revision: 123524

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123524
Log:
PR middle-end/22156
* tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
all_no_warning.
(struct sra_walk_fns): Remove use_all parameter from use.
(sra_hash_tree): Handle BIT_FIELD_REFs.
(sra_elt_hash): Don't hash bitfld blocks.
(sra_elt_eq): Skip them in parent compares as well.  Handle
BIT_FIELD_REFs.
(sra_walk_expr): Don't maintain or pass down use_all_p.
(scan_use): Remove use_all parameter.
(scalarize_use): Likewise.  Re-expand assignment to
BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
output, and re-scalarize after output.  Don't mark anything
for no warning.
(scalarize_ldst): Adjust.
(scalarize_walk_gimple_modify_statement): Likewise.
(build_element_name_1): Handle BIT_FIELD_REFs.
(instantiate_element): Don't warn for any element whose parent
is used as a whole.
(instantiate_missing_elements_1): Return the sra_elt.
(canon_type_for_field): New.
(try_instantiate_multiple_fields): New.
(instantiate_missing_elemnts): Use them.
(mark_no_warning): Removed.
(generate_one_element_ref): Handle BIT_FIELD_REFs.
(REPLDUP, sra_build_elt_assignment): New.
(generate_copy_inout): Use them.
(generate_element_copy): Likewise.  Handle bitfld differences.
(generate_element_zero): Don't recurse for blocks.  Use
sra_build_elt_assignment.
(generate_one_element_int): Take elt instead of var.  Use
sra_build_elt_assignment.
(generate_element_init_1): Adjust.
(scalarize_use, scalarize_copy): Use REPLDUP.
(scalarize_ldst): Move assert before dereference.
(dump_sra_elt_name): Handle BIT_FIELD_REFs.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-sra.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22156


  parent reply	other threads:[~2007-04-05 18:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-22156-6528@http.gcc.gnu.org/bugzilla/>
2005-10-13 21:06 ` [Bug middle-end/22156] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-10-27 20:32 ` pinskia at gcc dot gnu dot org
2005-10-30 23:32 ` pinskia at gcc dot gnu dot org
2006-02-05 21:21 ` [Bug middle-end/22156] [4.0/4.1/4.2 " steven at gcc dot gnu dot org
2006-02-07  9:26 ` mmitchel at gcc dot gnu dot org
2006-02-28 20:49 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:45 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:34 ` [Bug middle-end/22156] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-03-20  4:43 ` aoliva at gcc dot gnu dot org
2007-03-26  3:40 ` patchapp at dberlin dot org
2007-04-05 18:51 ` aoliva at gcc dot gnu dot org [this message]
2007-04-05 22:06 ` [Bug middle-end/22156] [4.0/4.1/4.2 " aoliva at gcc dot gnu dot org
2007-04-30 17:41 ` aoliva at gcc dot gnu dot org
2007-07-09  9:15 ` [Bug middle-end/22156] [4.0/4.1/4.2/4.3 " pinskia at gcc dot gnu dot org
2007-10-01 16:36 ` aoliva at gcc dot gnu dot org
2007-10-01 16:46 ` aoliva at gcc dot gnu dot org
2007-10-09  4:42 ` aoliva at gcc dot gnu dot org
2007-10-09  4:45 ` aoliva at gcc dot gnu dot org
2007-10-09  4:56 ` aoliva at gcc dot gnu dot org
2007-12-03  4:26 ` pinskia at gcc dot gnu dot org

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=20070405185048.10222.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).