c/86869 - preserve address-space info when building qualified ARRAY_TYPE
commite00c00730912cd6072954cd2c29ca44e33dbb598
authorRichard Biener <rguenther@suse.de>
Mon, 4 Dec 2023 12:31:35 +0000 (4 13:31 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 5 Dec 2023 07:27:36 +0000 (5 08:27 +0100)
tree93d1b256be3496cd5a9f353fb9431cf4fb2b7108
parent50f2a3370d177f8fe9bea0461feb710523e048a2
c/86869 - preserve address-space info when building qualified ARRAY_TYPE

The following adjusts the C FE specific qualified type building
to preserve address-space info also for ARRAY_TYPE.

PR c/86869
gcc/c/
* c-typeck.cc (c_build_qualified_type): Preserve address-space
info for ARRAY_TYPE.

gcc/testsuite/
* gcc.target/avr/pr86869.c: New testcase.
gcc/c/c-typeck.cc
gcc/testsuite/gcc.target/avr/pr86869.c [new file with mode: 0644]