From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C6343858C27; Mon, 3 Jan 2022 20:34:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C6343858C27 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/65673] [9/10/11/12 Regression] Compound literal with initializer for zero-sized array drops other initializers Date: Mon, 03 Jan 2022 20:34:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_known_to_work cf_known_to_fail target_milestone keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2022 20:34:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65673 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Compound literal with |[9/10/11/12 Regression] |initializer for zero-sized |Compound literal with |array drops other |initializer for zero-sized |initializers |array drops other | |initializers Known to work| |4.1.2 Known to fail| |4.4.7 Target Milestone|--- |9.5 Keywords| |wrong-code --- Comment #5 from Andrew Pinski --- GCC 4.1.2 produces: foo: .long 25 .zero 4 .quad __compound_literal.0 .local __compound_literal.0 .comm __compound_literal.0,0,8 While 4.4.7 (and above) produces: foo: .zero 16=