This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/37248] [4.3/4.4 Regression] regression 4.3.1 -> 4.3.2-rc transformation bitfield to individual bytes



------- Comment #6 from jakub at gcc dot gnu dot org  2008-09-01 11:33 -------
Subject: Bug 37248

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=37248


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]