summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-11 09:06:14 +0000
committerygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-11 09:06:14 +0000
commit4589a8011071beb19f184e02ef3f7c19e93db288 (patch)
tree9d11f62662b78c32e0e9910a1f78144a2a4c7113
parent71e083dc4b23242e5a7a8738e2741a1f7be67a22 (diff)
downloadgcc-4589a8011071beb19f184e02ef3f7c19e93db288.tar.gz
Fix docs for -frandom-seed.
2016-01-11 Yury Gribov <y.gribov@samsung.com> PR 67425 * common.opt (frandom-seed): Fix parameter name. * doc/invoke.texi (frandom-seed): Ditto and describe parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232209 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/common.opt2
-rw-r--r--gcc/doc/invoke.texi10
3 files changed, 14 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e717fc5e013..29e45a62e42 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-11 Yury Gribov <y.gribov@samsung.com>
+
+ PR 67425
+ * common.opt (frandom-seed): Fix parameter name.
+ * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
+
2016-01-11 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69058
diff --git a/gcc/common.opt b/gcc/common.opt
index 5a2e0a557e3..49d347ca42c 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=<number> Make compile reproducible using <number>.
+-frandom-seed=<string> Make compile reproducible using <string>.
; 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 1d1fd875f71..fc1dedf0dc3 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
@@ -7484,7 +7484,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
@@ -7493,7 +7493,11 @@ 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} can either be a number (decimal, octal or hex) or an
+arbitrary string (in which case it's converted to a number by
+computing CRC32).
+
+The @var{string} should be different for every file you compile.
@item -fsched-verbose=@var{n}
@opindex fsched-verbose