• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision9cce8384e1fe1e64cc3e67b73b1ba73e4db829ca (tree)
Time2016-02-20 07:22:04
Authoredlinger <edlinger@138b...>
Commiteredlinger

Log Message

gcc/c-family/ChangeLog:
2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>

PR c++/69865
        • c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
          here...
          (c_common_init_options): ...to here.
          (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.

gcc/testsuite/ChangeLog:
2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>

PR c++/69865
        • c-c++-common/Wshift-negative-value-6.c: Add -std=c++11 before
          -std=c++03.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233574 138bc75d-0d04-0410-961f-82ee72b054a4

Change Summary

Incremental Difference

--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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+
19 2016-02-19 Jakub Jelinek <jakub@redhat.com>
210
311 PR c++/69826
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -246,6 +246,10 @@ c_common_init_options (unsigned int decoded_options_count,
246246 }
247247 }
248248
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+
249253 global_dc->colorize_source_p = true;
250254 }
251255
@@ -802,10 +806,6 @@ c_common_post_options (const char **pfilename)
802806 && flag_no_builtin)
803807 flag_tree_loop_distribute_patterns = 0;
804808
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-
809809 /* -Woverlength-strings is off by default, but is enabled by -Wpedantic.
810810 It is never enabled in C++, as the minimum limit is not normative
811811 in that standard. */
@@ -1519,6 +1519,8 @@ set_std_cxx98 (int iso)
15191519 flag_no_gnu_keywords = iso;
15201520 flag_no_nonansi_builtin = iso;
15211521 flag_iso = iso;
1522+ flag_isoc94 = 0;
1523+ flag_isoc99 = 0;
15221524 cxx_dialect = cxx98;
15231525 lang_hooks.name = "GNU C++98";
15241526 }
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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+
17 2016-02-19 Jakub Jelinek <jakub@redhat.com>
28
39 PR c++/69826
--- a/gcc/testsuite/c-c++-common/Wshift-negative-value-6.c
+++ b/gcc/testsuite/c-c++-common/Wshift-negative-value-6.c
@@ -1,7 +1,7 @@
11 /* PR c/65179 */
22 /* { dg-do compile } */
33 /* { 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++ } } */
55 /* { dg-additional-options "-std=c90" { target c } } */
66
77 enum E {