[vbox-dev] gcc version 4.8.0 found

Frank Mehnert frank.mehnert at oracle.com
Thu Feb 21 15:48:57 GMT 2013


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.

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.

Kind regards,

Frank
-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20130221/07fbd493/attachment.sig>


More information about the vbox-dev mailing list