2
0
mirror of https://github.com/bebbo/amigaos-cross-toolchain.git synced 2025-12-08 22:38:24 +00:00
Files
amigaos-cross-toolchain6/patches/gcc-2.95.3/gcc/function.c.diff
Krystian Bacławski da2d7bde0e Update patches.
2012-08-04 13:01:59 +02:00

33 lines
880 B
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- gcc-2.95.3/gcc/function.c 2001-01-25 15:03:15.000000000 +0100
+++ gcc-2.95.3/gcc/function.c 2012-08-04 11:53:28.000000000 +0200
@@ -7027,3 +7027,29 @@
}
#endif /* HAVE_prologue or HAVE_epilogue */
}
+
+/* begin-GG-local: explicit register specification for parameters */
+/* Return 1 if an argument for the current function was passed in
+ register REGNO. */
+
+int
+function_arg_regno_p (regno)
+ int regno;
+{
+ tree parm = DECL_ARGUMENTS (current_function_decl);
+ for (; parm; parm = TREE_CHAIN (parm))
+ {
+ rtx incoming = DECL_INCOMING_RTL (parm);
+ if (GET_CODE (incoming) == REG)
+ {
+ int incoming_reg;
+ incoming_reg = REGNO (incoming);
+ if (regno >= incoming_reg &&
+ regno < incoming_reg + HARD_REGNO_NREGS (incoming_reg,
+ GET_MODE (incoming)))
+ return 1;
+ }
+ }
+ return 0;
+}
+/* end-GG-local */