[Bug tree-optimization/36449] Incorrect code generated for access to a large struct
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 1 11:35:00 GMT 2008
------- Comment #5 from jakub at gcc dot gnu dot org 2008-09-01 11:33 -------
Subject: Bug 36449
Author: jakub
Date: Mon Sep 1 11:32:18 2008
New Revision: 139858
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139858
Log:
PR middle-end/37248
PR middle-end/36449
* fold-const.c (make_bit_field_ref): Change bitpos and bitsize
arguments to HOST_WIDE_INT.
(fold_truthop): Change first_bit and end_bit to HOST_WIDE_INT.
* g++.dg/opt/pr36449.C: New test.
Revert:
2008-06-11 Richard Guenther <rguenther@suse.de>
PR middle-end/36449
* fold-const.c (fold_truthop): Remove code generating
BIT_FIELD_REFs of structure bases.
(fold_binary): Likewise.
(make_bit_field_ref): Remove.
(optimize_bit_field_compare): Remove.
(all_ones_mask_p): Remove.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/opt/pr36449.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36449
More information about the Gcc-bugs
mailing list