This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Blackfin patch: Use lang_hooks when calling builtin_function


This fixes an oversight in the port from 3.4 to 4.x. Applied to mainline and 4.0 branch.


Bernd
	* config/bfin/bfin.c: Include "langhooks.h".
	(def_builtin): Go through lang_hooks to call builtin_function.

Index: config/bfin/bfin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/bfin/bfin.c,v
retrieving revision 1.5.2.5
diff -c -p -r1.5.2.5 bfin.c
*** config/bfin/bfin.c	20 Jul 2005 10:36:32 -0000	1.5.2.5
--- config/bfin/bfin.c	20 Jul 2005 10:38:45 -0000
***************
*** 45,50 ****
--- 45,51 ----
  #include "recog.h"
  #include "ggc.h"
  #include "integrate.h"
+ #include "langhooks.h"
  #include "bfin-protos.h"
  #include "tm-preds.h"
  #include "gt-bfin.h"
*************** enum bfin_builtins
*** 2831,2840 ****
    BFIN_BUILTIN_MAX
  };
  
! #define def_builtin(NAME, TYPE, CODE)				\
! do {								\
!   builtin_function ((NAME), (TYPE), (CODE), BUILT_IN_MD,	\
! 		    NULL, NULL_TREE);				\
  } while (0)
  
  /* Set up all builtin functions for this target.  */
--- 2832,2841 ----
    BFIN_BUILTIN_MAX
  };
  
! #define def_builtin(NAME, TYPE, CODE)					\
! do {									\
!   lang_hooks.builtin_function ((NAME), (TYPE), (CODE), BUILT_IN_MD,	\
! 			       NULL, NULL_TREE);			\
  } while (0)
  
  /* Set up all builtin functions for this target.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]