]> gcc.gnu.org Git - gcc.git/commit
Fix output_constructor_bitfield handling of wide bitfields (PR89037)
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 7 May 2019 08:49:05 +0000 (08:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 7 May 2019 08:49:05 +0000 (08:49 +0000)
commit2121a64bb71d267165735eeff62f49bc899e4659
tree8ab835af45f8b2e3d3fc91c009575770eba1c75f
parent0816ebde614846c413fd35622a3d2b91914e8e01
Fix output_constructor_bitfield handling of wide bitfields (PR89037)

The testcase was failing because we were trying to access
TREE_INT_CST_ELT (x, 1) of a 128-bit integer that was small enough
to need only a single element.

2019-05-07  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
Backport from mainline:
2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>

PR middle-end/89037
* varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
instead of accessing TREE_INT_CST_ELT directly.

gcc/testsuite/
Backport from mainline:
2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>

PR middle-end/89037
* gcc.dg/pr89037.c: New test.

From-SVN: r270936
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89037.c [new file with mode: 0644]
gcc/varasm.c
This page took 0.06239 seconds and 5 git commands to generate.