Patchwork Remove stale declaration

login
register
mail settings
Submitter Marek Polacek
Date April 2, 2014, 10:36 a.m.
Message ID <20140402103612.GA24603@redhat.com>
Download mbox | patch
Permalink /patch/336309/
State New
Headers show

Comments

Marek Polacek - April 2, 2014, 10:36 a.m.
I noticed that we declare this function, but its definition was
removed in 2009 by P. Bonzini, thus the decl serves no purpose.

Regtested/bootstrapped on x86_64-linux, ok for trunk?

2014-04-02  Marek Polacek  <polacek@redhat.com>

	* c-common.h (c_expand_expr): Remove declaration.


	Marek
Richard Guenther - April 2, 2014, 10:45 a.m.
On Wed, Apr 2, 2014 at 12:36 PM, Marek Polacek <polacek@redhat.com> wrote:
> I noticed that we declare this function, but its definition was
> removed in 2009 by P. Bonzini, thus the decl serves no purpose.
>
> Regtested/bootstrapped on x86_64-linux, ok for trunk?

Ok.

Thanks,
Richard.

> 2014-04-02  Marek Polacek  <polacek@redhat.com>
>
>         * c-common.h (c_expand_expr): Remove declaration.
>
> diff --git gcc/c-family/c-common.h gcc/c-family/c-common.h
> index 1099b10..24959d8 100644
> --- gcc/c-family/c-common.h
> +++ gcc/c-family/c-common.h
> @@ -928,8 +928,6 @@ extern bool vector_targets_convertible_p (const_tree t1, const_tree t2);
>  extern bool vector_types_convertible_p (const_tree t1, const_tree t2, bool emit_lax_note);
>  extern tree c_build_vec_perm_expr (location_t, tree, tree, tree, bool = true);
>
> -extern rtx c_expand_expr (tree, rtx, enum machine_mode, int, rtx *);
> -
>  extern void init_c_lex (void);
>
>  extern void c_cpp_builtins (cpp_reader *);
>
>         Marek

Patch

diff --git gcc/c-family/c-common.h gcc/c-family/c-common.h
index 1099b10..24959d8 100644
--- gcc/c-family/c-common.h
+++ gcc/c-family/c-common.h
@@ -928,8 +928,6 @@  extern bool vector_targets_convertible_p (const_tree t1, const_tree t2);
 extern bool vector_types_convertible_p (const_tree t1, const_tree t2, bool emit_lax_note);
 extern tree c_build_vec_perm_expr (location_t, tree, tree, tree, bool = true);
 
-extern rtx c_expand_expr (tree, rtx, enum machine_mode, int, rtx *);
-
 extern void init_c_lex (void);
 
 extern void c_cpp_builtins (cpp_reader *);