[Bug ipa/112487] [11/12/13/14 Regression] ICE in setup_one_parameter with conflicting types
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 13 14:01:06 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112487
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:5021fa7076acd5a987362c8695ae3ebeff877d02
commit r14-5392-g5021fa7076acd5a987362c8695ae3ebeff877d02
Author: Richard Biener <rguenther@suse.de>
Date: Mon Nov 13 09:24:08 2023 +0100
middle-end/112487 - inline and parameter mismatch
When passing an aggregate to a implicitly declared function that's
later declared as receiving a register type we can run into a
sanity assert that cannot hold for such gross mismatches. Instead
of asserting avoid emitting a debug temp that's invalid.
PR middle-end/112487
* tree-inline.cc (setup_one_parameter): When the parameter
is unused only insert a debug bind when there's not a gross
mismatch in value and declared parameter type. Do not assert
there effectively isn't.
* gcc.dg/torture/pr112487.c: New testcase.
More information about the Gcc-bugs
mailing list