From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23195 invoked by alias); 27 Feb 2014 17:58:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23148 invoked by uid 48); 27 Feb 2014 17:58:40 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/60336] empty struct value is passed differently in C and C++ Date: Thu, 27 Feb 2014 17:58:00 -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: 4.8.1 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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-SW-Source: 2014-02/txt/msg02773.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60336 --- Comment #18 from Jason Merrill --- (In reply to Uro=C5=A1 Bizjak from comment #17) > classify_argument has an early exit: >=20 > /* Zero sized arrays or structures are NO_CLASS. We return 0 to > signalize memory class, so handle it as special case. */ >=20 > if (!words) > { > classes[0] =3D X86_64_NO_CLASS; > return 1; > } >=20 > but it doesn't trigger for c++, where words gets calculated as 1. Yes, it looks like this special case is in order to return the same thing t= hat C++ does through the normal logic: normally we return 'words', and since th= ere are no fields classes[0] is still initialized to NO_CLASS. >>From gcc-bugs-return-445017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 27 18:36:33 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26168 invoked by alias); 27 Feb 2014 18:36:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26119 invoked by uid 48); 27 Feb 2014 18:36:29 -0000 From: "nicolas.boulenguez at free dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/16081] Illegal program not detected, ambiguous call to "=" Date: Thu, 27 Feb 2014 18:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 3.4.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: nicolas.boulenguez at free dot fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg02774.txt.bz2 Content-length: 138 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16081 --- Comment #3 from nicolas.boulenguez at free dot fr --- confirmed with 4.9-20140218