This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/35750: ICE with invalid old-style parameter declaration
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Volker Reichelt <v dot reichelt at netcologne dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Mar 2008 11:35:17 +0000 (UTC)
- Subject: Re: [PATCH] Fix PR c/35750: ICE with invalid old-style parameter declaration
- References: <tkrat.0b429be0efecec3a@netcologne.de>
On Mon, 31 Mar 2008, Volker Reichelt wrote:
> The following patch fixes an ICE with invalid parameters in old-style
> function definitions. If there's already a new-style declaration
> available store_parm_decls_oldstyle iterates over all arguments to
> adjust them to match the new-style prototype.
> However, this crashes if an argument with invalid type is encountered.
> Fixed by skipping these invalid arguments.
>
> Bootstrapped and regtested on i686-pc-linux-gnu.
> Ok for mainline?
OK.
--
Joseph S. Myers
joseph@codesourcery.com