From patchwork Tue Jan 19 22:49:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 570166 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5C1411402C4 for ; Wed, 20 Jan 2016 09:49:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=rp14pU57; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; q=dns; s=default; b=AexAn/AJ6ADkJtc2 /jwph45VgAQ9JzHRqlED/3i13neDh4aBCVBtbfwk7mIK20t3Bsy8rjx3HvcsEmxk QiYsDR4JSN9aJJ38qd8SPgRucwBWBKnyVh01Xq9T/xCw3l+sFbukWBlqfIx13U2a VZGwV4EPFftFbk9G1uB7U21Jt9U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; s=default; bh=f8C84QWwU391+NLZL1LWBq 2hlGU=; b=rp14pU57J2vAjX6/8GX7URmvxzP1yTEq+z3FrdLF37z2If8aLPjPY2 eSuQo50F0Ti/QMbjkFwJK3m64OJ70LsbMW0fSrerz6Fo8wYd90w3+9guPaK/aGyX ak4BlVWLGED8xUJyJabTBXkDkI+CiXPRC8Y8nv2Gce3ceBKWvNUdU= Received: (qmail 79530 invoked by alias); 19 Jan 2016 22:49:36 -0000 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 Received: (qmail 79520 invoked by uid 89); 19 Jan 2016 22:49:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=fontweight, font-weight, 1399, 210 X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 19 Jan 2016 22:49:34 +0000 Received: from anthias.dhcp.nue.suse.com (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 3AB313F471; Tue, 19 Jan 2016 17:49:29 -0500 (EST) Date: Tue, 19 Jan 2016 23:49:27 +0100 (CET) From: Gerald Pfeifer To: Jakub Jelinek cc: =?ISO-8859-15?Q?Manuel_L=F3pez-Ib=E1=F1ez?= , Mike Stump , David Malcolm , gcc-patches@gcc.gnu.org Subject: Re: [wwwdocs] gcc-6/changes.html: diagnostics, Levenshtein, -Wmisleading-indentation, jit (v2) In-Reply-To: <20160119195600.GQ3017@tucnak.redhat.com> Message-ID: References: <1452091846.5803.26.camel@surprise> <1452697208.5803.93.camel@surprise> <1452880969.12356.14.camel@surprise> <569E88EB.8070609@gmail.com> <7A6F76E4-3AF0-4208-B8B7-CD7A787CF2B9@comcast.net> <20160119195600.GQ3017@tucnak.redhat.com> MIME-Version: 1.0 X-IsSubscribed: yes On Tue, 19 Jan 2016, Jakub Jelinek wrote: > Perhaps we need to use something other than ... > and similar, the question is what. It certainly worked well back almost 3 > years ago when I've added those into gcc-4.9/changes.html. And interestingly it still does when I download the page and view it locally (Firefox 43 or Google Chrome). Instead of hardcoding text it makes sense to use text which is easier (and easier to tweak, and I just applied the patch below. Interestingly enough, same result: Looks just fine when viewed locally; https://gcc.gnu.org/gcc-6/changes.html in the browser does not show the color, though it validates. :-( Hmm. Gerald Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v retrieving revision 1.48 diff -u -r1.48 changes.html --- changes.html 19 Jan 2016 17:48:53 -0000 1.48 +++ changes.html 19 Jan 2016 22:41:22 -0000 @@ -2,6 +2,10 @@ GCC 6 Release Series — Changes, New Features, and Fixes + +
 fixits.c: In function 'bad_deref':
-fixits.c:11:13: error: 'ptr' is a pointer; did you mean to use '->'?
-   return ptr.x;
-             ^
-             ->
+fixits.c:11:13: error: 'ptr' is a pointer; did you mean to use '->'?
+   return ptr.x;
+             ^
+             ->
 
  • The C and C++ compilers now offer suggestions for misspelled field names:
    -spellcheck-fields.cc:52:13: error: 'struct s' has no member named 'colour'; did you mean 'color'?
    -   return ptr->colour;
    -               ^~~~~~
    +spellcheck-fields.cc:52:13: error: 'struct s' has no member named 'colour'; did you mean 'color'?
    +   return ptr->colour;
    +               ^~~~~~
     
  • New command-line options have been added for the C and C++ compilers: @@ -135,9 +139,9 @@
  • The C and C++ compilers now emit saner error messages if merge-conflict markers are present in a source file.
    -test.c:3:1: error: version control conflict marker in file
    - <<<<<<< HEAD
    - ^~~~~~~
    +test.c:3:1: error: version control conflict marker in file
    + <<<<<<< HEAD
    + ^~~~~~~
     
  • @@ -454,7 +458,7 @@ provide suggestions for misspelled command line options.
     $ gcc -static-libfortran test.f95
    -gcc: error: unrecognized command line option '-static-libfortran'; did you mean '-static-libgfortran'?
    +gcc: error: unrecognized command line option '-static-libfortran'; did you mean '-static-libgfortran'?
     
  • The --enable-default-pie configure option enables generation of PIE by default.