From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BBD22385828C; Tue, 8 Nov 2022 15:59:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBD22385828C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667923161; bh=esReDY5z/OGETc5xbVP4dEBke557RHpyKQPaP1i3+JY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Uuqxz9aRCH+kiv72Y/TYq/Fkp/WhZogR3Pm2A1JDAsGNpQZl8K4N4vu5CP/Cn9Qxr sNQ1wcWlh0Q6DMZBFOEyQqzT0nQyHkbx+D2wbzVp7fPna9m61UbFeL0JxKVFheX/fk tj/ofCLkxwJ0lV87YM0Bmm8M2/ErmunUrJCz23FA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107568] Bootstrap failure on macOS 12.6 (monterey) Date: Tue, 08 Nov 2022 15:59:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: 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=3D107568 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|bootstrap |target --- Comment #3 from Andrew Pinski --- The first one is definitely ok: /* diagnostic.cc does not support "%03o". When it does, this code can use %03o directly in the diagnostic again. */ char buf[32]; 32 characters will always fit 8bit octal result. The second one will always fit too: static const char * const monthnames[] =3D { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; .... pfile->date =3D _cpp_unaligned_alloc (pfile, sizeof ("\"Oct 11 1347\""= )); sprintf ((char *) pfile->date, "\"%s %2d %4d\"", monthnames[tb->tm_mon], tb->tm_mday, tb->tm_year + 1900); Likewise for the next one: pfile->time =3D _cpp_unaligned_alloc (pfile, sizeof ("\"12:34:56\"")); sprintf ((char *) pfile->time, "\"%02d:%02d:%02d\"", tb->tm_hour, tb->tm_min, tb->tm_sec); This is definitely a bug in Apple's headers. I guess we need to fixincludes them to undeprecated them for GCC.=