------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-30 05:01 ------- Confirmed, this was added on the mainline but an easy search of ChangeLog could not find it because the changeLog was incomplete: * target-def.h: New target hook function_value.
Note I think it is the same behavior as the FUNCTION_VALUE macro, well close. It also handles FUNCTION_OUTGOING_VALUE. Here is the default one: rtx default_function_value (tree ret_type ATTRIBUTE_UNUSED, tree fn_decl_or_type, bool outgoing ATTRIBUTE_UNUSED) { /* The old interface doesn't handle receiving the function type. */ if (fn_decl_or_type && !DECL_P (fn_decl_or_type)) fn_decl_or_type = NULL; #ifdef FUNCTION_OUTGOING_VALUE if (outgoing) return FUNCTION_OUTGOING_VALUE (ret_type, fn_decl_or_type); #endif #ifdef FUNCTION_VALUE return FUNCTION_VALUE (ret_type, fn_decl_or_type); #else return NULL_RTX; #endif } -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther at suse dot de Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-08-30 05:01:52 date| | Summary|TARGET_FUNCTION_VALUE not |[4.2 Regression] |documented |TARGET_FUNCTION_VALUE not | |documented Target Milestone|--- |4.2.0 Version|unknown |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28884