diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-02-26 14:01:02 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-02-26 14:01:02 +0000 |
commit | e8fc888de958caac184e708b40ef24df3507c943 (patch) | |
tree | b3244e29a5cc16d545e033e9f075d8de9433269f /gcc/stor-layout.c | |
parent | 185a6cc15950f65b1adbcaa528b4c1d5683d7ace (diff) | |
download | gcc-e8fc888de958caac184e708b40ef24df3507c943.zip gcc-e8fc888de958caac184e708b40ef24df3507c943.tar.gz gcc-e8fc888de958caac184e708b40ef24df3507c943.tar.bz2 |
common.opt (Wlarger-than=): New.
2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* common.opt (Wlarger-than=): New.
* doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
-Wlarger-than=.
* opts.c (common_handle_option): Handle -Wlarger-than=.
* optc-gen.awk: Likewise.
* opth-gen.awk: Likewise.
* stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
* tree-optimize.c (tree_rest_of_compilation): Likewise.
testsuite/
* gcc.dg/Wlarger-than2.c: New.
From-SVN: r132674
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index a7bcd05..67e4c25f 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -464,9 +464,9 @@ layout_decl (tree decl, unsigned int known_align) int size_as_int = TREE_INT_CST_LOW (size); if (compare_tree_int (size, size_as_int) == 0) - warning (OPT_Wlarger_than_, "size of %q+D is %d bytes", decl, size_as_int); + warning (OPT_Wlarger_than_eq, "size of %q+D is %d bytes", decl, size_as_int); else - warning (OPT_Wlarger_than_, "size of %q+D is larger than %wd bytes", + warning (OPT_Wlarger_than_eq, "size of %q+D is larger than %wd bytes", decl, larger_than_size); } } |