diff mbox

Fix warning in ira.c

Message ID CABu31nM+oStkS6T1X41sO_UpcPBupDZBgTnBtAJNOMZTxjND1g@mail.gmail.com
State New
Headers show

Commit Message

Steven Bosscher May 30, 2012, 5:45 p.m. UTC
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

Comments

H.J. Lu May 30, 2012, 6:16 p.m. UTC | #1
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
diff mbox

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)