re PR tree-optimization/16437 (New c-torture failures after bitfield patch)
authorJoseph Myers <jsm@polyomino.org.uk>
Sun, 11 Jul 2004 09:45:39 +0000 (10:45 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 11 Jul 2004 09:45:39 +0000 (10:45 +0100)
commitfae1b38dc82248b70271f42647fa92b82ca6e200
tree1b02a4649bd7dcfe9f9116eb1060eb0d1e1d01b3
parent7d3998a4453d9aa086113cb353eebda4c0a87563
re PR tree-optimization/16437 (New c-torture failures after bitfield patch)

PR tree-optimization/16437
* c-common.c (shorten_compare): Don't mark result of conversion to
narrower signed type as overflowing.
* fold-const.c (decode_field_reference): Determine whether
signedness comes from outer type using precision rather than size.

testsuite:
* gcc.c-torture/execute/bitfld-4.c: New test.

From-SVN: r84498
gcc/ChangeLog
gcc/c-common.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/bitfld-4.c [new file with mode: 0644]