https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112791

            Bug ID: 112791
           Summary: error: 'TYPE_CANONICAL' is not compatible
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

This C source code:

typedef abi_ulong __attribute__((aligned(2)));
abi_ulong extramask[];

when compiled by recent gcc trunk, does this:

$ ../gcc/results.20231126/bin/gcc -c -g -w bug986.c
bug986.c:2:1: error: 'TYPE_CANONICAL' is not compatible
    2 | abi_ulong extramask[];
      | ^~~~~~~~~
 <array_type 0x76b057e0
    type <integer_type 0x76f853c0 int public SI
        size <integer_cst 0x769dbee8 constant 32>
        unit-size <integer_cst 0x769dbf00 constant 4>
        align:32 warn_if_not_align:0 symtab:1990149344 alias-set -1
canonical-ty
pe 0x76f853c0 precision:32 min <integer_cst 0x769ed138 -2147483648> max
<integer
_cst 0x769ed150 2147483647>

This is on a Raspberry PI 3.

dcb@raspberrypi:~ $ ~/gcc/results.20231126/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/dcb/gcc/results.20231126/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.20231126/libexec/gcc/arm-linux-gnueabihf/14.0.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../trunk/configure --prefix=/home/dcb/gcc/results.20231126
--disable-bootstrap --disable-multilib --disable-werror
--with-pkgversion=e40a13eaca4d87ec --enable-checking=yes
--enable-languages=c,c++ --with-cpu=cortex-a72 --with-fpu=neon-fp-armv8
--with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231126 (experimental) (e40a13eaca4d87ec) 
dcb@raspberrypi:~ $

Reply via email to