This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[FYI] Remove lang_expand_expr prototype
- From: Roger Sayle <roger at www dot eyesopen dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Mar 2003 20:31:10 -0700 (MST)
- Subject: [FYI] Remove lang_expand_expr prototype
The following patch has been commited to mainline CVS as obvious.
The file expr.h contains an obsolete function prototype for
lang_expand_expr, which was deleted almost a year ago by the
following patch:
> 2002-03-27 Neil Booth <neil at daikokuya dot demon dot co dot uk>
>
> * c-common.c (c_expand_expr): Fix prototype.
> * c-common.h (c_expand_expr): Always declare, update.
> * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
> * c-objc-common.c (c_objc_common_init): No global hook.
> * expr.c (expand_expr): Use langhook.
> * expr.h (enum expand_modifier): Conditionally declare.
> * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
> (LANG_HOOKS_INITIALIZER): Update.
> * langhooks.c (lhd_expand_expr): New.
> * langhooks.h (struct lang_hooks): New hook.
> * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
> (lang_independent_init): Don't default hook.
The following "obvious" patch simply deletes the old prototype.
This patch has been tested by a complete bootstrap, all languages
except Ada and treelang, on i686-pc-linux-gnu.
2003-03-05 Roger Sayle <roger at eyesopen dot com>
* expr.h (lang_expand_expr): Delete obsolete prototype.
Index: expr.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.h,v
retrieving revision 1.129
diff -c -3 -p -r1.129 expr.h
*** expr.h 23 Feb 2003 22:19:39 -0000 1.129
--- expr.h 6 Mar 2003 02:49:30 -0000
*************** extern rtx expand_mult_add PARAMS ((rtx,
*** 770,783 ****
extern rtx expand_mult_highpart_adjust PARAMS ((enum machine_mode, rtx, rtx, rtx, rtx, int));
extern rtx assemble_static_space PARAMS ((int));
-
- /* Hook called by expand_expr for language-specific tree codes.
- It is up to the language front end to install a hook
- if it has any such codes that expand_expr needs to know about. */
- extern rtx (*lang_expand_expr) PARAMS ((union tree_node *, rtx,
- enum machine_mode,
- enum expand_modifier modifier));
-
extern int safe_from_p PARAMS ((rtx, tree, int));
/* Call this once to initialize the contents of the optabs
--- 770,775 ----
Roger
--
Roger Sayle, E-mail: roger at eyesopen dot com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833