From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67CC13858C83; Wed, 25 Jan 2023 18:45:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67CC13858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674672342; bh=sSN8GddA7j+n5GRJeRjqdV3BSjM483nGpE9B6B97Xp8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u8V5FaQQAsbuXSaPbDXDrB8oovuFxmqE4PaZb0SIl1qllHFghoBVEKlT8YXQAXl6X dw0YnQEfl5aniWR1MrbaTb9qKqBGSXZeQquWm1AafhvDbgp9/isTJ5OHd/mi7bK2vK jneUw25mGrnyTAAtw59NG6EmRjubdKNHmSNuonKQ= From: "user99627 at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705 Date: Wed, 25 Jan 2023 18:45:40 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: user99627 at gmx dot com 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: cc attachments.created 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=3D105753 User99627 changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |user99627 at gmx dot com --- Comment #10 from User99627 --- Created attachment 54342 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54342&action=3Dedit Complete Arduino compile trace after compiling the sample sketch (see comme= nt) I'm running Manjaro and I cannot chose which version of avr-gcc I run on my system. It currently is avr-gcc 12.2.0. As a consequence I cannot run most Arduino sketches either, so long as I'm using the system AVR compiler. Here's a sample sketch that exhibits the error (see attachments): void setup() { Serial.begin(9600); } void loop() { enum { OPEN, CLOSE }; static uint32_t prevMillis; // Unsigned long, not int! ;) static uint16_t interval; static uint8_t state; // Defaults to OPEN uint32_t currentMillis =3D millis(); if (currentMillis - prevMillis >=3D interval) { prevMillis =3D currentMillis; // Could use a switch/case here: if (state =3D=3D OPEN) { interval =3D random(3000, 10000); Serial.print("interval blink : "); Serial.println(interval); state =3D CLOSE; } if (state =3D=3D CLOSE) { interval =3D 300; Serial.println("open"); state =3D OPEN; } } }=