Patchwork Fix warning in ira.c

login
register
mail settings
Submitter Steven Bosscher
Date May 30, 2012, 5:45 p.m.
Message ID <CABu31nM+oStkS6T1X41sO_UpcPBupDZBgTnBtAJNOMZTxjND1g@mail.gmail.com>
Download mbox | patch
Permalink /patch/162043/
State New
Headers show

Comments

Steven Bosscher - May 30, 2012, 5:45 p.m.
Hello,

I've committed this patch to fix a -Wmissing-prototypes warning in
ira.c.  I don't understand why this didn't cause a bootstrap failure
(with -Werror) but oh well.

Ciao!
Steven
H.J. Lu - May 30, 2012, 6:16 p.m.
On Wed, May 30, 2012 at 10:45 AM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> Hello,
>
> I've committed this patch to fix a -Wmissing-prototypes warning in
> ira.c.  I don't understand why this didn't cause a bootstrap failure
> (with -Werror) but oh well.

It is

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50134

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 188024)
+++ ChangeLog   (working copy)
@@ -1,3 +1,7 @@ 
+2012-05-30  Steven Bosscher  <steven at gcc dot gnu dot org>
+
+       * ira.c (allocate_initial_values): Make static.
+
 2012-05-30  Uros Bizjak  <ubizjak at gmail dot com>

        * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
Index: ira.c
===================================================================
--- ira.c       (revision 188024)
+++ ira.c       (working copy)
@@ -4036,7 +4036,7 @@  move_unallocated_pseudos (void)

 /* If the backend knows where to allocate pseudos for hard
    register initial values, register these allocations now.  */
-void
+static void
 allocate_initial_values (void)
 {
   if (targetm.allocate_initial_value)