public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53167] New: [4.8 regression] bootstrap failure: no previous prototype for 'preserve_function_body_p'
@ 2012-04-30 12:40 mikpe at it dot uu.se
  2012-05-02 10:32 ` [Bug bootstrap/53167] " rguenth at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mikpe at it dot uu.se @ 2012-04-30 12:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53167
           Summary: [4.8 regression] bootstrap failure: no previous
                    prototype for 'preserve_function_body_p'
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikpe@it.uu.se


Attempting to bootstrap gcc-4.8-20120429 with
--disable-build-poststage1-with-cxx fails with:

/mnt/scratch/objdir48/./prev-gcc/xgcc -B/mnt/scratch/objdir48/./prev-gcc/
-B/mnt/scratch/install48/i686-pc-linux-gnu/bin/
-B/mnt/scratch/install48/i686-pc-linux-gnu/bin/
-B/mnt/scratch/install48/i686-pc-linux-gnu/lib/ -isystem
/mnt/scratch/install48/i686-pc-linux-gnu/include -isystem
/mnt/scratch/install48/i686-pc-linux-gnu/sys-include    -c   -g -O2 -gtoggle
-DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I/mnt/scratch/gcc-4.8-20120429/gcc -I/mnt/scratch/gcc-4.8-20120429/gcc/.
-I/mnt/scratch/gcc-4.8-20120429/gcc/../include
-I/mnt/scratch/gcc-4.8-20120429/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-x86/gmp-5.0.4/include
-I/home/mikpe/pkgs/linux-x86/mpfr-3.1.0/include
-I/home/mikpe/pkgs/linux-x86/mpc-0.9/include 
-I/mnt/scratch/gcc-4.8-20120429/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.8-20120429/gcc/../libdecnumber/bid -I../libdecnumber   
/mnt/scratch/gcc-4.8-20120429/gcc/ipa-inline-transform.c -o
ipa-inline-transform.o
/mnt/scratch/gcc-4.8-20120429/gcc/ipa-inline-transform.c:359:1: error: no
previous prototype for 'preserve_function_body_p' [-Werror=missing-prototypes]
 preserve_function_body_p (struct cgraph_node *node)
 ^
cc1: all warnings being treated as errors
make[3]: *** [ipa-inline-transform.o] Error 1

r186832 renamed cgraph_preserve_function_body_p and moved it to
ipa-inline-transform.c, but in that process it ended up (a) non-static, and (b)
without a separate prototype, and that triggers -Werror=missing-prototypes.

preserve_function_body_p is only used in the same file it's defined in.  Making
it 'static' restores bootstrap for me.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug bootstrap/53167] [4.8 regression] bootstrap failure: no previous prototype for 'preserve_function_body_p'
  2012-04-30 12:40 [Bug bootstrap/53167] New: [4.8 regression] bootstrap failure: no previous prototype for 'preserve_function_body_p' mikpe at it dot uu.se
@ 2012-05-02 10:32 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-02 10:32 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-02 10:32:28 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-02 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-30 12:40 [Bug bootstrap/53167] New: [4.8 regression] bootstrap failure: no previous prototype for 'preserve_function_body_p' mikpe at it dot uu.se
2012-05-02 10:32 ` [Bug bootstrap/53167] " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).