Fix docs for -frandom-seed.
authorYury Gribov <y.gribov@samsung.com>
Mon, 11 Jan 2016 09:06:14 +0000 (09:06 +0000)
committerYury Gribov <ygribov@gcc.gnu.org>
Mon, 11 Jan 2016 09:06:14 +0000 (09:06 +0000)
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.

From-SVN: r232209

gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi

index e717fc5e013029d35e9e9a904ae76f63c872b267..29e45a62e42b62991b39d2f1007c58f97d111626 100644 (file)
@@ -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
index 5a2e0a557e3828de66adc887290b47378ec6f126..49d347ca42c34c508b571e0ba42641d40f5732c6 100644 (file)
@@ -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
index 1d1fd875f71112371f12ab1dfe283fafb5a4314b..fc1dedf0dc33244868c2eaae6e4bfd83810f4cc9 100644 (file)
@@ -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