From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1A033858036; Wed, 29 Nov 2023 08:43:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1A033858036 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701247426; bh=BA7Y21yHtX5465D2tQ5noLjM3awVGvNx4PLXgpo9t0s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hii8IU03jw/kLX/eeKWAsiawS8D5T5WFociL/rZeQjH/KJwjNFiW2ruVgS2+csRzu oVlpAtWZezOYFMpFcLVahklXFq6YmQAEIBpfAWcKf/MNUBOLXhCZse44E9oZJb+CcP InOGq34DmTTrR9pMQ8kr0MD74/npZ2F8LpMyGmRo= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112725] [14 Regression] powerpc64le-linux-gnu: 'c-c++-common/builtin-classify-type-1.c:113:3: error: AltiVec argument passed to unprototyped function' Date: Wed, 29 Nov 2023 08:43:41 +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: 14.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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=3D112725 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #3 from Jakub Jelinek --- Agreed, so like this? 2023-11-29 Jakub Jelinek PR target/112725 * config/rs6000/rs6000.cc (invalid_arg_for_unprototyped_fn): Return NULL for __builtin_classify_type calls with vector arguments. * config/s390/s390.cc (s390_invalid_arg_for_unprototyped_fn): Likewise. --- gcc/config/rs6000/rs6000.cc.jj 2023-11-17 15:08:20.816961466 +0100 +++ gcc/config/rs6000/rs6000.cc 2023-11-29 09:40:35.782955603 +0100 @@ -24389,7 +24389,8 @@ invalid_arg_for_unprototyped_fn (const_t && VECTOR_TYPE_P (TREE_TYPE (val)) && (funcdecl =3D=3D NULL_TREE || (TREE_CODE (funcdecl) =3D=3D FUNCTION_DECL - && DECL_BUILT_IN_CLASS (funcdecl) !=3D BUILT_IN_MD))) + && DECL_BUILT_IN_CLASS (funcdecl) !=3D BUILT_IN_MD + && !fndecl_built_in_p (funcdecl, BUILT_IN_CLASSIFY_TYPE)= ))) ? N_("AltiVec argument passed to unprototyped function") : NULL; } --- gcc/config/s390/s390.cc.jj 2023-11-27 17:34:25.684287136 +0100 +++ gcc/config/s390/s390.cc 2023-11-29 09:41:08.569491077 +0100 @@ -12650,7 +12650,8 @@ s390_invalid_arg_for_unprototyped_fn (co && VECTOR_TYPE_P (TREE_TYPE (val)) && (funcdecl =3D=3D NULL_TREE || (TREE_CODE (funcdecl) =3D=3D FUNCTION_DECL - && DECL_BUILT_IN_CLASS (funcdecl) !=3D BUILT_IN_MD))) + && DECL_BUILT_IN_CLASS (funcdecl) !=3D BUILT_IN_MD + && !fndecl_built_in_p (funcdecl, BUILT_IN_CLASSIFY_TYPE)= ))) ? N_("vector argument passed to unprototyped function") : NULL); }=