From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1C0A3858422; Wed, 29 Nov 2023 08:50:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1C0A3858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701247844; bh=iIBRWBI9vIzsEQhPg+jAJWuq84VDOuoIPuophjKZO3A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dkog27kh8J6tUZwiyFK5ByHRLt7Fk+dJhu0nEgTFJclPdtFrwrmq34hS0Qgve+aFp f8eyFwpthazYasHvX10/RC0sezUglCayT4bNCHNUyRjWNN6auTwJaT8ZkPl4HJKy6o qxkAXuBGIMCMqeSWbZ07Q6QD9dmjh0/mkrjVzOR4= From: "linkw 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:50:44 +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: linkw 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: 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 --- Comment #4 from Kewen Lin --- (In reply to Jakub Jelinek from comment #3) > Agreed, so like this? Yes, thanks for the prompt fix! The rs6000 part is OK for trunk! > 2023-11-29 Jakub Jelinek >=20 > 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. >=20 > --- 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); > }=