Failure compiling langhooks.c on irix6.5

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Mon Oct 8 18:24:00 GMT 2001


On irix6.5 with cc, I get 

cc -c  -DIN_GCC    -g    -DHAVE_CONFIG_H    -I. -I.
-I/exd4/billingd/src/gcc-mainline/gcc
-I/exd4/billingd/src/gcc-mainline/gcc/.
-I/exd4/billingd/src/gcc-mainline/gcc/config
-I/exd4/billingd/src/gcc-mainline/gcc/../include
/exd4/billingd/src/gcc-mainline/gcc/langhooks.c -o langhooks.o
"/exd4/billingd/src/gcc-mainline/gcc/langhooks.c", line 129: error(1119): 
          return value type does not match the function type
    return copy_decl_for_inlining (res, fn, caller);
           ^

This occurs since there is no prototype for copy_decl_for_inlining .  The
following patch allows compilation to continue.

Index: langhooks.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/langhooks.c,v
retrieving revision 1.1
diff -u -p -r1.1 langhooks.c
--- langhooks.c 2001/10/08 20:54:07     1.1
+++ langhooks.c 2001/10/09 01:21:40
@@ -24,6 +24,8 @@ Boston, MA 02111-1307, USA.  */
 #include "toplev.h"
 #include "tree.h"
 #include "tree-inline.h"
+#include "insn-config.h" /* For MAX_RECOG_OPERANDS */
+#include "integrate.h"
 
 /* lang_hooks.tree_inlining.walk_subtrees is called by walk_tree()
    after handling common cases, but before walking code-specific
@@ -139,4 +141,5 @@ tree_inlining_default_hook_anon_aggr_typ
 {
   return 0;
 }
+



More information about the Gcc-bugs mailing list