From patchwork Sun Nov 20 02:03:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 126637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E0EADB722F for ; Sun, 20 Nov 2011 13:03:26 +1100 (EST) Received: (qmail 11210 invoked by alias); 20 Nov 2011 02:03:23 -0000 Received: (qmail 11201 invoked by uid 22791); 20 Nov 2011 02:03:22 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,TW_SV X-Spam-Check-By: sourceware.org Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Nov 2011 02:03:09 +0000 Received: from [192.168.0.130] (vie-188-118-248-127.dsl.sil.at [188.118.248.127]) by ainaz.pair.com (Postfix) with ESMTPSA id E314C3F417 for ; Sat, 19 Nov 2011 21:03:07 -0500 (EST) Date: Sun, 20 Nov 2011 03:03:06 +0100 (CET) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: [wwwdocs] gcc-4.3/porting_to.html headers Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This matches a clean up I have done for the GCC 4.6 and GCC 4.4 variants of this document. Applied. Gerald Index: porting_to.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/porting_to.html,v retrieving revision 1.6 diff -u -r1.6 porting_to.html --- porting_to.html 22 Feb 2008 20:06:39 -0000 1.6 +++ porting_to.html 20 Nov 2011 01:59:00 -0000 @@ -26,9 +26,9 @@ manner. Additions and suggestions for improvement are welcome.

-

C language issues

+

C language issues

-

Semantic change of extern inline

+

Semantic change of extern inline

When compiling with -std=c99 or -std=gnu99, @@ -75,7 +75,7 @@ { return 5; } -

New warnings

+

New warnings

Significant changes were made to -Wconversion. In addition, improvements to the GCC infrastructure allow improvements in @@ -96,9 +96,9 @@ are fixed, or for conversion warnings add -Wno-conversion.

-

C++ language issues

+

C++ language issues

-

Header dependency cleanup

+

Header dependency cleanup

As detailed @@ -170,7 +170,7 @@ -

Removal of Pre-ISO headers

+

Removal of Pre-ISO headers

Various backwards and deprecated headers have been removed.

@@ -318,8 +318,7 @@

For future reference, available headers are listed here.

-

An example. -

+

An example.

 #include <iostream.h>
@@ -372,7 +371,7 @@
 

Note that explicitly qualifying cout as std::cout and likewise for endl instead of globally injecting the std namespace (ie, using namespace std) will also work.

-

Name lookup changes

+

Name lookup changes

GCC by default no longer accepts code such as

@@ -412,7 +411,7 @@ conforming.

-

Duplicate function parameters

+

Duplicate function parameters

Duplicate function parameters are now treated uniformly as an error in C and C++. @@ -438,7 +437,7 @@

-

Stricter requirements for function main signature

+

Stricter requirements for function main signature

The two-argument signature for main has int as the first argument. GCC 4.3 rigorously enforces this. @@ -464,7 +463,7 @@ { return 0; } -

Explicit template specialization cannot have a storage class

+

Explicit template specialization cannot have a storage class

Specializations of templates cannot explicitly specify a storage class, and have the same storage as the primary template. This is a @@ -499,9 +498,9 @@ void foo<void>(); -

Java issues

+

Java issues

-

Java 1.2 and earlier requires upgraded ant

+

Java 1.2 and earlier requires upgraded ant

The use of the Eclipse Java compiler in GCC 4.3 enables the use of all 1.5 language features, but use with older versions of @@ -520,7 +519,7 @@ svn diff -r529854:529855 http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java -

Links

+

Links

Jakub Jelinek, Mass rebuild status with gcc-4.3.0-0.4 of rawhide-20071220 @@ -547,9 +546,5 @@

- - - -