From patchwork Fri Dec 25 11:36:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Gribov X-Patchwork-Id: 561015 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 115EC140C6F for ; Fri, 25 Dec 2015 22:36:06 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=TZXJosdJ; 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:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=oRATewJXCn9EjILXT5aVuGXlt/CwbDFN8QC1rvl/AiWdavl0Cv 55uEBlWToD+E0D9Ks19fuSgQpTLhvEZmeiW2Hxjn3BMszZBtCcSJsMjRWfXDnoRf 3oSkfrFpXDWY3/n47glmfXZ5rDuv/5KNV0UM651uInq+RJw83YbEHcVa4= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=a3xmOE/NvRlM+/n3gWaaJ3ZOD/0=; b=TZXJosdJxJyzxNj3sUX2 RjRFqKB6MOZptE1JDyVCpJY9iDyXmOPkPPIkU07wUXtiba9kth6Z4i/HgvIVlzgn cDquYbq6Hq5m21MCrPipPVbaz8R4id+ktznJRFjbHyLETo41hcqR7sNyhFs9e7kg 2vubW84JtgZLP6+fUOA5wy0= Received: (qmail 66419 invoked by alias); 25 Dec 2015 11:35:59 -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 66404 invoked by uid 89); 25 Dec 2015 11:35:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS, T_HDRS_LCASE, T_MANY_HDRS_LCASE autolearn=no version=3.3.2 spammy=HContent-type:mixed, ditto, Ditto, Common X-Spam-User: qpsmtpd, 2 recipients X-HELO: mailout3.w1.samsung.com Received: from mailout3.w1.samsung.com (HELO mailout3.w1.samsung.com) (210.118.77.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 25 Dec 2015 11:35:57 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NZW0009UW7TYE40@mailout3.w1.samsung.com>; Fri, 25 Dec 2015 11:35:53 +0000 (GMT) Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id B8.B9.16778.81A2D765; Fri, 25 Dec 2015 11:35:52 +0000 (GMT) Received: from [106.109.9.145] by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NZW00FUBW7SWW70@eusync2.samsung.com>; Fri, 25 Dec 2015 11:35:52 +0000 (GMT) To: GCC Patches Cc: Martin Sebor , Jonathan Wakely From: Yury Gribov Subject: [PATCH][PR 67425] Fix docs for -frandom-seed Message-id: <567D2A37.7020501@samsung.com> Date: Fri, 25 Dec 2015 14:36:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-version: 1.0 Content-type: multipart/mixed; boundary=------------030107090301010404020905 X-IsSubscribed: yes Hi all, this patch reverts invalid documentation change -frandom-seed which was introduced by myself in r216773 a year ago. I've checked the generated man and the only test for -frandom-seed (gcc.dg/pr61868.c). Ok for trunk? I also want to backport to GCC5 branch. -Yura From 23f8c38f593a18c5783949f7c2225b49685fedfc Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Fri, 25 Dec 2015 13:57:28 +0300 Subject: [PATCH] Fix docs for -frandom-seed to allow string arguments. 2015-12-25 Yury Gribov PR driver/67425 * common.opt (frandom-seed): Fix parameter name. * doc/invoke.texi (frandom-seed): Ditto. --- gcc/common.opt | 2 +- gcc/doc/invoke.texi | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/common.opt b/gcc/common.opt index 23f394d..1f0daf0 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1909,7 +1909,7 @@ Common Var(common_deferred_options) Defer frandom-seed= Common Joined RejectNegative Var(common_deferred_options) Defer --frandom-seed= Make compile reproducible using . +-frandom-seed= Make compile reproducible using . ; This switch causes the command line that was used to create an ; object file to be recorded into the object file. The exact format diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4e2cf8f..ff14f70 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -364,7 +364,7 @@ Objective-C and Objective-C++ Dialects}. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report -fprofile-arcs @gol -fopt-info @gol -fopt-info-@var{options}@r{[}=@var{file}@r{]} @gol --frandom-seed=@var{number} -fsched-verbose=@var{n} @gol +-frandom-seed=@var{string} -fsched-verbose=@var{n} @gol -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose @gol -fstack-usage -ftest-coverage -ftime-report -fvar-tracking @gol -fvar-tracking-assignments -fvar-tracking-assignments-toggle @gol @@ -7464,7 +7464,7 @@ the first option takes effect and the subsequent options are ignored. Thus only @file{vec.miss} is produced which contains dumps from the vectorizer about missed opportunities. -@item -frandom-seed=@var{number} +@item -frandom-seed=@var{string} @opindex frandom-seed This option provides a seed that GCC uses in place of random numbers in generating certain symbol names @@ -7473,7 +7473,7 @@ place unique stamps in coverage data files and the object files that produce them. You can use the @option{-frandom-seed} option to produce reproducibly identical object files. -The @var{number} should be different for every file you compile. +The @var{string} should be different for every file you compile. @item -fsched-verbose=@var{n} @opindex fsched-verbose -- 1.9.1