aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-02-28 23:02:58 +0100
committerMartin Liska <marxin@gcc.gnu.org>2017-02-28 22:02:58 +0000
commit9453ba0a0e7aa578d2b4ad61862efe0d3d52c567 (patch)
treed296b8501149a7c9fd67f9a5c4ad934feb703f93 /gcc
parent6a825afe90080c1c187cacc6d6a90d322c1d9e7d (diff)
downloadgcc-9453ba0a0e7aa578d2b4ad61862efe0d3d52c567.zip
gcc-9453ba0a0e7aa578d2b4ad61862efe0d3d52c567.tar.gz
gcc-9453ba0a0e7aa578d2b4ad61862efe0d3d52c567.tar.bz2
Introduce =<number> for couple of options.
2017-02-28 Martin Liska <mliska@suse.cz> * c.opt: Replace space with tabular for options of <number> type. 2017-02-28 Martin Liska <mliska@suse.cz> * common.opt: Replace space with tabular for options of <number> type. * config/i386/i386.opt: Show <number> value for -mlarge-data-threshold. * opts.c (print_filtered_help): Do not display number in hexadecimal format. From-SVN: r245789
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c.opt4
-rw-r--r--gcc/common.opt6
-rw-r--r--gcc/config/i386/i386.opt2
-rw-r--r--gcc/opts.c2
6 files changed, 21 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dcb6553..7890a72 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,14 @@
2017-02-28 Martin Liska <mliska@suse.cz>
+ * common.opt: Replace space with tabular for options of <number>
+ type.
+ * config/i386/i386.opt: Show <number> value for
+ -mlarge-data-threshold.
+ * opts.c (print_filtered_help): Do not display number in hexadecimal
+ format.
+
+2017-02-28 Martin Liska <mliska@suse.cz>
+
* common.opt: Fix --help=option -Q for options which are of
an enum type.
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 22eee9d..b97a7e7 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,5 +1,10 @@
2017-02-28 Martin Liska <mliska@suse.cz>
+ * c.opt: Replace space with tabular for options of <number>
+ type.
+
+2017-02-28 Martin Liska <mliska@suse.cz>
+
* c.opt: Fix --help=option -Q for options which are of
an enum type.
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 9b9aab4..cf459ab 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -314,7 +314,7 @@ C ObjC C++ ObjC++ Var(warn_alloc_zero) Warning
Walloca-larger-than=
C ObjC C++ LTO ObjC++ Var(warn_alloca_limit) Warning Joined RejectNegative UInteger
--Walloca-larger-than=<number> Warn on unbounded uses of
+-Walloca-larger-than=<number> Warn on unbounded uses of
alloca, and on bounded uses of alloca whose bound can be larger than
<number> bytes.
@@ -1097,7 +1097,7 @@ Warn if a variable length array is used.
Wvla-larger-than=
C ObjC C++ ObjC++ Var(warn_vla_limit) Warning Joined RejectNegative UInteger
--Wvla-larger-than=<number> Warn on unbounded uses of variable-length arrays, and
+-Wvla-larger-than=<number> Warn on unbounded uses of variable-length arrays, and
on bounded uses of variable-length arrays whose bound can be
larger than <number> bytes.
diff --git a/gcc/common.opt b/gcc/common.opt
index 1a19847..4021622 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -689,8 +689,8 @@ Common Var(warn_stack_protect) Warning
Warn when not issuing stack smashing protection for some reason.
Wstack-usage=
-Common Joined RejectNegative UInteger Var(warn_stack_usage) Init(-1) Warning
-Warn if stack usage might be larger than specified amount.
+Common Joined RejectNegative UInteger Var(warn_stack_usage) Warning
+-Wstack-usage=<number> Warn if stack usage might be larger than specified amount.
Wstrict-aliasing
Common Warning
@@ -2523,7 +2523,7 @@ Enable loop optimizations on tree level.
ftree-parallelize-loops=
Common Report Joined RejectNegative UInteger Var(flag_tree_parallelize_loops) Init(1) Optimization
-Enable automatic parallelization of loops.
+-ftree-parallelize-loops=<number> Enable automatic parallelization of loops.
ftree-phiprop
Common Report Var(flag_tree_phiprop) Init(1) Optimization
diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 36251ab..9384e29 100644
--- a/gcc/config/i386/i386.opt
+++ b/gcc/config/i386/i386.opt
@@ -272,7 +272,7 @@ Branches are this expensive (1-5, arbitrary units).
mlarge-data-threshold=
Target RejectNegative Joined UInteger Var(ix86_section_threshold) Init(DEFAULT_LARGE_SECTION_THRESHOLD)
-Data greater than given threshold will go into .ldata section in x86-64 medium model.
+-mlarge-data-threshold=<number> Data greater than given threshold will go into .ldata section in x86-64 medium model.
mcmodel=
Target RejectNegative Joined Enum(cmodel) Var(ix86_cmodel) Init(CM_32)
diff --git a/gcc/opts.c b/gcc/opts.c
index c476860..8274fab 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1246,7 +1246,7 @@ print_filtered_help (unsigned int include_flags,
}
else
sprintf (new_help + strlen (new_help),
- "%#x", * (int *) flag_var);
+ "%d", * (int *) flag_var);
}
else
strcat (new_help, option_enabled (i, opts)