From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B619D3858D35; Thu, 10 Nov 2022 07:25:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B619D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668065117; bh=gqeXP/AvnwIA8kIic9mOYxepCapKtkeDjXX6ug3heMo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dq+ounmVHOkpciEDb+0ec5cM7JUWc6DMYKy1yuR1rUOFTavI6WRMW9Rrlu6TtfUpY w/0yJTxrsmsbsNdxv4FNlnM+P16JoUYAlwJEAfFA8Uz0qjhduhfhFgwJ86Mkie85u6 3iY8QGkHSjGLu03/EIDqk0CUHADH0dwpBcaAsbXA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107595] [13 Regression] ICE in ix86_push_argument, at config/i386/i386.cc:4335 Date: Thu, 10 Nov 2022 07:25:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone 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=3D107595 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 --- Comment #4 from Richard Biener --- It ICEs because 'cfun' is NULL and x86 has #define ACCUMULATE_OUTGOING_ARGS \ ((TARGET_ACCUMULATE_OUTGOING_ARGS \ && optimize_function_for_speed_p (cfun)) \ || (cfun->machine->func_type !=3D TYPE_NORMAL \ && crtl->stack_realign_needed) \ || TARGET_STACK_PROBE \ || TARGET_64BIT_MS_ABI \ || (TARGET_MACHO && crtl->profile)) we are assembling a static variable with an initializer containing a call (that's not a valid initializer). unit-size align:64 warn_if_not_align:0 symtab:0 alias-set 9 canonical-type 0x7ffff6711b28 fields SI t.f90:3:18 size unit-size align:32 warn_if_not_align:0 offset_align 128 decl_not_flexarra= y: 0 offset bit-offset context chain > chain > asm_written used static TI t.f90:6:12 size unit-size align:128 warn_if_not_align:0 context initial (mem/c:TI (symbol_ref:DI ("x.1") [flags 0x2] ) [9 x+0 S16 A128])> The initializer is {.a=3D4, .b=3Dnull ()} the frontend would need to lower such initializers to runtime initialization (or not use static storage).=