------- Comment #20 from bonzini at gnu dot org 2009-08-10 20:09 ------- Created an attachment (id=18337) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18337&action=view) patch fixing hpux differences
This patch squashes in the following too. It is a stupid used-uninitialized bug that was not signaled because unsignedp is passed by reference to promote_function_mode. Index: gcc/stmt.c =================================================================== --- gcc/stmt.c (branch promote-function-mode2) +++ gcc/stmt.c (working copy) @@ -1517,8 +1517,8 @@ expand_value_return (rtx val) rtx return_reg = DECL_RTL (decl); if (return_reg != val) { - int unsignedp; tree funtype = TREE_TYPE (current_function_decl); tree type = TREE_TYPE (decl); + int unsignedp = TYPE_UNSIGNED (type); enum machine_mode old_mode = DECL_MODE (decl); enum machine_mode mode = promote_function_mode (type, old_mode, I'll also bootstrap the patch overnight on x86_64-pc-linux-gnu, and plan to rename the last argument of the hook now. -- bonzini at gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18309|0 |1 is obsolete| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40952