mn10200/mn10200.md (addsi3, subsi3, ashlsi3, lshrsi3, ashrsi3):...
Jim Wilson
wilson@cygnus.com
Tue Mar 16 13:53:00 GMT 1999
I have installed this patch.
This fixes a build failure that happens when trying to compile the mn10200
port using the SGI irix6 C compiler. It gives an error because there are
two declarations for emit_library_call_value, one from rtl.h that claims
it is a stdarg function, and one in the md file which says it isn't a stdarg
function.
irix6 uses a different calling convention for stdarg functions that non-stdarg
functions, so it is important to have correct prototypes for stdarg functions.
Tue Mar 16 13:44:50 1999 Jim Wilson <wilson@cygnus.com>
* mn10200/mn10200.md (addsi3, subsi3, ashlsi3, lshrsi3, ashrsi3):
Delete emit_library_call_value declaration.
Index: mn10200.md
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mn10200/mn10200.md,v
retrieving revision 1.18
diff -p -r1.18 mn10200.md
*** mn10200.md 1999/02/11 14:15:47 1.18
--- mn10200.md 1999/03/16 21:48:13
***************
*** 399,405 ****
else if (rtx_equal_function_value_matters)
{
rtx ret, insns;
- extern rtx emit_library_call_value ();
start_sequence ();
ret = emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"__addsi3\"),
--- 399,404 ----
***************
*** 477,483 ****
if (rtx_equal_function_value_matters)
{
rtx ret, insns;
- extern rtx emit_library_call_value ();
start_sequence ();
ret = emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"__subsi3\"),
--- 476,481 ----
***************
*** 1498,1504 ****
|| INTVAL (operands[2]) <= 15))
{
rtx ret, insns;
- extern rtx emit_library_call_value ();
start_sequence ();
ret = emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"__ashlsi3\"),
--- 1496,1501 ----
***************
*** 1557,1563 ****
|| INTVAL (operands[2]) <= 15))
{
rtx ret, insns;
- extern rtx emit_library_call_value ();
start_sequence ();
ret = emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"__lshrsi3\"),
--- 1554,1559 ----
***************
*** 1616,1622 ****
|| INTVAL (operands[2]) <= 15))
{
rtx ret, insns;
- extern rtx emit_library_call_value ();
start_sequence ();
ret = emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode, \"__ashrsi3\"),
--- 1612,1617 ----
More information about the Gcc-patches
mailing list