[vbox-dev] gcc version 4.8.0 found
Sérgio Basto
sergio at serjux.com
Thu Feb 21 09:44:11 PST 2013
On Qui, 2013-02-21 at 16:48 +0100, Frank Mehnert wrote:
> Hi,
>
> On Tuesday 29 January 2013 08:39:54 Frank Mehnert wrote:
> > On Monday 28 January 2013 21:27:54 Sérgio Basto wrote:
> > > Next Fedora (19) will have gcc 4.8 and gcc 4.8 hit rawhide,
> > > have you already begin devel support for gcc 4.8 ?
> > > if yes where I found the patches ?
> >
> > No support yet. gcc 4.8.0 is not released yet and even not yet branched.
> > We cannot waste resources fixing bugs against beta development tools. So
> > patience please. The adaptions will be visible in the public subversion
> > repository, as usual.
>
> Btw, I just tried to compile VirtualBox 4.2 with gcc-4.8 and it works
> after I upgraded to a recent gcc build. I'm currently using
>
> gcc version 4.8.0 20130218 (experimental) [trunk revision 196115] (Debian 4.8-20130217-1)
>
> Older gcc-4.8 snapshots had a bug which made it stop compiling some VBox
> inline assembler functions.
yeah vmakarov fix that on
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56148
so no more bugs ? good to hear that.
> Using the following patch prevents a bunch of warnings:
>
> --- Config.kmk (revision 83894)
> +++ Config.kmk (working copy)
> @@ -1479,7 +1479,7 @@
> #
> # Compiler optimization flags.
> #
> -VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-
> trigraphs $(VBOX_GCC_fdiagnostics-show-option)
> +VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-
> trigraphs $(VBOX_GCC_fdiagnostics-show-option) -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-
> set-variable
> VBOX_GCC_WARN_PEDANTIC = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long
> ifdef VBOX_WITH_MASOCHISTIC_WARNINGS
> VBOX_GCC_WARN_PEDANTIC += -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter
>
> We might fix some of these unused parameter warnings but certainly not in
> the next time.
Let me know the developments of this subject , if you will add
-Wno-unused-parameter -Wno-unused-but-set-parameter
-Wno-unused-but-set-variable or not ?
Cheers,
--
Sérgio M. B.
More information about the vbox-dev
mailing list