リビジョン | 9cce8384e1fe1e64cc3e67b73b1ba73e4db829ca (tree) |
---|---|
日時 | 2016-02-20 07:22:04 |
作者 | edlinger <edlinger@138b...> |
コミッター | edlinger |
gcc/c-family/ChangeLog:
2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
gcc/testsuite/ChangeLog:
2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233574 138bc75d-0d04-0410-961f-82ee72b054a4
@@ -1,3 +1,11 @@ | ||
1 | +2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
2 | + | |
3 | + PR c++/69865 | |
4 | + * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
5 | + here... | |
6 | + (c_common_init_options): ...to here. | |
7 | + (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
8 | + | |
1 | 9 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
2 | 10 | |
3 | 11 | PR c++/69826 |
@@ -246,6 +246,10 @@ c_common_init_options (unsigned int decoded_options_count, | ||
246 | 246 | } |
247 | 247 | } |
248 | 248 | |
249 | + /* Set C++ standard to C++14 if not specified on the command line. */ | |
250 | + if (c_dialect_cxx ()) | |
251 | + set_std_cxx14 (/*ISO*/false); | |
252 | + | |
249 | 253 | global_dc->colorize_source_p = true; |
250 | 254 | } |
251 | 255 |
@@ -802,10 +806,6 @@ c_common_post_options (const char **pfilename) | ||
802 | 806 | && flag_no_builtin) |
803 | 807 | flag_tree_loop_distribute_patterns = 0; |
804 | 808 | |
805 | - /* Set C++ standard to C++14 if not specified on the command line. */ | |
806 | - if (c_dialect_cxx () && cxx_dialect == cxx_unset) | |
807 | - set_std_cxx14 (/*ISO*/false); | |
808 | - | |
809 | 809 | /* -Woverlength-strings is off by default, but is enabled by -Wpedantic. |
810 | 810 | It is never enabled in C++, as the minimum limit is not normative |
811 | 811 | in that standard. */ |
@@ -1519,6 +1519,8 @@ set_std_cxx98 (int iso) | ||
1519 | 1519 | flag_no_gnu_keywords = iso; |
1520 | 1520 | flag_no_nonansi_builtin = iso; |
1521 | 1521 | flag_iso = iso; |
1522 | + flag_isoc94 = 0; | |
1523 | + flag_isoc99 = 0; | |
1522 | 1524 | cxx_dialect = cxx98; |
1523 | 1525 | lang_hooks.name = "GNU C++98"; |
1524 | 1526 | } |
@@ -1,3 +1,9 @@ | ||
1 | +2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
2 | + | |
3 | + PR c++/69865 | |
4 | + * c-c++-common/Wshift-negative-value-6.c: Add -std=c++11 before | |
5 | + -std=c++03. | |
6 | + | |
1 | 7 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
2 | 8 | |
3 | 9 | PR c++/69826 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | /* PR c/65179 */ |
2 | 2 | /* { dg-do compile } */ |
3 | 3 | /* { dg-options "-O -Wextra" } */ |
4 | -/* { dg-additional-options "-std=c++03" { target c++ } } */ | |
4 | +/* { dg-additional-options "-std=c++11 -std=c++03" { target c++ } } */ | |
5 | 5 | /* { dg-additional-options "-std=c90" { target c } } */ |
6 | 6 | |
7 | 7 | enum E { |