Package: gcc-12 Version: 12.2.0-14+rpi1 Severity: normal X-Debbugs-Cc: rmor...@web.de
Dear Maintainer, Following code: #include <stdio.h> char myBuf[] = { '\x01', '\x04', '\x31', '\x00', '\x00', '\x1D', '\x7E', '\xF7' }; void process_buffer (char *); int main (int argc, char **argv) { printf ("sizeof (myBuf) = %d\n", sizeof (myBuf)); process_buffer (myBuf); } void process_buffer (char *bufPtr) { printf ("sizeof (bufPtr) = %d\n", sizeof (bufPtr)); } produces following output: sizeof (myBuf) = 8 sizeof (bufPtr) = 4 expected output (confirmed on Oracle Linux 8.4): sizeof (myBuf) = 8 sizeof (bufPtr) = 8 -- System Information: Distributor ID: Raspbian Description: Raspbian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm Architecture: armv6l Kernel: Linux 6.1.0-rpi4-rpi-v6 (UP) Kernel taint flags: TAINT_CRAP Locale: LANG=en_NZ, LC_CTYPE=en_NZ (charmap=ISO-8859-1) (ignored: LC_ALL set to en_NZ), LANGUAGE=en_NZ Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages gcc-12 depends on: ii binutils 2.40-2+rpi2 ii cpp-12 12.2.0-14+rpi1 ii gcc-12-base 12.2.0-14+rpi1 ii libc6 2.36-9+rpt2+deb12u3 ii libcc1-0 12.2.0-14+rpi1 ii libgcc-12-dev 12.2.0-14+rpi1 ii libgcc-s1 12.2.0-14+rpi1 ii libgmp10 2:6.2.1+dfsg1-1.1 ii libisl23 0.25-1 ii libmpc3 1.3.1-1 ii libmpfr6 4.2.0-1 ii libstdc++6 12.2.0-14+rpi1 ii libzstd1 1.5.4+dfsg2-5 ii zlib1g 1:1.2.13.dfsg-1 Versions of packages gcc-12 recommends: ii libc6-dev 2.36-9+rpt2+deb12u3 Versions of packages gcc-12 suggests: pn gcc-12-doc <none> pn gcc-12-locales <none> -- no debconf information