aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-03-19 09:47:14 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2002-03-19 09:47:14 +0100
commitf735a153482c5fd3b7f4055f910096730ed02f19 (patch)
treef8f50124b7cee68203bee922ac64a4b0c77721a4 /gcc/langhooks.c
parentc1ea78430722efa016fb62d2af76cfdbf31fec02 (diff)
downloadgcc-f735a153482c5fd3b7f4055f910096730ed02f19.zip
gcc-f735a153482c5fd3b7f4055f910096730ed02f19.tar.gz
gcc-f735a153482c5fd3b7f4055f910096730ed02f19.tar.bz2
re PR c/5656 (ICE in emit_move_insn, at expr.c:2748, regression from gcc 3.0)
PR c/5656 * langhooks.h (struct lang_hooks_for_tree_inlining): Add convert_parm_for_inlining. * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Define. * langhooks-def.h: Likewise. * objc/objc-lang.c: Likewise. * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New function. * tree-inline.c (initialize_inlined_parameters): Call convert_parm_for_inlining lang hook if needed. * c-typeck.c (c_convert_parm_for_inlining): New function. * c-tree.h (c_convert_parm_for_inlining): Add prototype. * gcc.c-torture/compile/20020318-1.c: New test. From-SVN: r51025
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index a976d74..6be5304 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -277,6 +277,18 @@ lhd_tree_inlining_end_inlining (fn)
{
}
+/* lang_hooks.tree_inlining.convert_parm_for_inlining performs any
+ language-specific conversion before assigning VALUE to PARM. */
+
+tree
+lhd_tree_inlining_convert_parm_for_inlining (parm, value, fndecl)
+ tree parm ATTRIBUTE_UNUSED;
+ tree value;
+ tree fndecl ATTRIBUTE_UNUSED;
+{
+ return value;
+}
+
/* lang_hooks.tree_dump.dump_tree: Dump language-specific parts of tree
nodes. Returns non-zero if it does not want the usual dumping of the
second argument. */