diff options
author | nemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-28 02:55:20 +0000 |
---|---|---|
committer | nemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-28 02:55:20 +0000 |
commit | 7a6a48c91e53d93d2871973060acebe4f493d502 (patch) | |
tree | f191db5683ac9ece9c05e4e999f873fb140b3fa0 /gcc/stor-layout.c | |
parent | 2705f6ddc62adf34e6278721e53d510b83fe6068 (diff) | |
download | gcc-7a6a48c91e53d93d2871973060acebe4f493d502.tar.gz |
* c.opt (Wpacked-bitfield-compat): Change init value to -1.
* c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
was not supplied then set warn_packed_bitfield_compat to the
default value of 1.
* stor-layout.c (place_field): Check warn_packed_bitfield_compat
against 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index bf896dbed37..1a33b1c54d6 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -963,7 +963,7 @@ place_field (record_layout_info rli, tree field) { if (DECL_PACKED (field)) { - if (warn_packed_bitfield_compat) + if (warn_packed_bitfield_compat == 1) inform (input_location, "Offset of packed bit-field %qD has changed in GCC 4.4", |