From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6175E385842C; Fri, 9 Feb 2024 10:35:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6175E385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707474951; bh=z9+t5eXvE7adJjGIWNE3UgOXtpCFnKZkP2tltTKgwmA=; h=From:To:Subject:Date:From; b=j4siiIDqwjkEE/OyKv+k159yLwQmzixEcJdfnHGPO1GS5MgqTyt7Wgxvxn/Gk+Zzs wLEbim2kkH3bahTEX3u9JUUcnSrJXxnBTSXIiXuLqLdZ3KQrv/aPfbeiuG/NNUPL8g 5T0W9d0Bt3xjXDeUHhywDz5UJpkuyK/jgKUMCTRE= From: "fkastl at suse dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/113848] New: modula2 doesn't build with clang Date: Fri, 09 Feb 2024 10:35:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: fkastl at suse dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113848 Bug ID: 113848 Summary: modula2 doesn't build with clang Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: fkastl at suse dot cz Target Milestone: --- Host: x86_64-linux Target: x86_64-linux Building GCC using clang with modula2 language enabled raises this error. m2/gm2-libs-boot/SArgs.c:93:90: error: arithmetic on a pointer to void 93 | ppc =3D static_cast ((void *) (((void *) (UnixArgs_GetArgV ()))+(n*sizeof (SArgs_PtrToChar)))); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ This started happening between g:fbb569315a291d2d5b32ad0fdaf0c42da9f5e93b and g:260a22de4fa3d4ad3bb0d3ef2cd45d7f03eb3160 The only commit touching ./gcc/m2/gm2-libs/Sargs.{def,mod} is g:64b0130bb6702c67a13caefaae9facef23d6ac60 so I suppose that's the culprit commit. The build is configured using --disable-multilib --disable-libsanitizer --disable-bootstrap --with-system-zlib --enable-languages=3Dc,c++,fortran,go,jit,lto,rust,m2 --enable-host-shared=