]> git.pld-linux.org Git - packages/gcc.git/commitdiff
- rel 2; drop pr14912 patch which causes https://svn.boost.org/trac/boost/ticket... auto/th/gcc-4_4_1-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Jul 2009 09:35:39 +0000 (09:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gcc-pr14912.patch -> 1.2
    gcc.spec -> 1.585

gcc-pr14912.patch [deleted file]
gcc.spec

diff --git a/gcc-pr14912.patch b/gcc-pr14912.patch
deleted file mode 100644 (file)
index 8a88c41..0000000
+++ /dev/null
@@ -1,229 +0,0 @@
-Index: gcc-4_4-branch/gcc/cp/error.c
-===================================================================
---- gcc-4_4-branch/gcc/cp/error.c      (wersja 145340)
-+++ gcc-4_4-branch/gcc/cp/error.c      (kopia robocza)
-@@ -72,12 +72,14 @@
- static void dump_parameters (tree, int);
- static void dump_exception_spec (tree, int);
- static void dump_template_argument (tree, int);
--static void dump_template_argument_list (tree, int);
-+static void dump_template_argument_list (tree, tree, int);
- static void dump_template_parameter (tree, int);
- static void dump_template_bindings (tree, tree);
- static void dump_scope (tree, int);
- static void dump_template_parms (tree, int, int);
-+static int count_non_default_template_args (tree, tree);
-+
- static const char *function_category (tree);
- static void maybe_print_instantiation_context (diagnostic_context *);
- static void print_instantiation_full_context (diagnostic_context *);
-@@ -139,7 +141,7 @@
- dump_template_argument (tree arg, int flags)
- {
-   if (ARGUMENT_PACK_P (arg))
--    dump_template_argument_list (ARGUMENT_PACK_ARGS (arg), flags);
-+    dump_template_argument_list (ARGUMENT_PACK_ARGS (arg), NULL_TREE, flags);
-   else if (TYPE_P (arg) || TREE_CODE (arg) == TEMPLATE_DECL)
-     dump_type (arg, flags & ~TFF_CLASS_KEY_OR_ENUM);
-   else
-@@ -151,17 +153,47 @@
-     }
- }
-+/* Count the number of template arguments ARGS whose value does not
-+   match the (optional) default template parameter in PARAMS  */
-+
-+static int count_non_default_template_args (tree args, tree params)
-+{
-+  int n = TREE_VEC_LENGTH (args);
-+  int last;
-+
-+  for (last = n - 1; last >= 0; --last)
-+    {
-+      tree param = TREE_VEC_ELT (params, last);
-+      tree def = TREE_PURPOSE (param);
-+
-+      if (!def)
-+        break;
-+      if (uses_template_parms (def))
-+      {
-+        ++processing_template_decl;
-+        def = tsubst_copy_and_build (def, args, tf_none, NULL_TREE, false, true);
-+        --processing_template_decl;
-+      }
-+      if (!cp_tree_equal (TREE_VEC_ELT (args, last), def))
-+        break;
-+    }
-+
-+  return last + 1;
-+}
-+
- /* Dump a template-argument-list ARGS (always a TREE_VEC) under control
-    of FLAGS.  */
- static void
--dump_template_argument_list (tree args, int flags)
-+dump_template_argument_list (tree args, tree parms, int flags)
- {
--  int n = TREE_VEC_LENGTH (args);
-   int need_comma = 0;
-   int i;
-+  int n = parms
-+          ? count_non_default_template_args (args, parms)
-+          : TREE_VEC_LENGTH (args);
--  for (i = 0; i< n; ++i)
-+  for (i = 0; i < n; ++i)
-     {
-       tree arg = TREE_VEC_ELT (args, i);
-@@ -230,40 +262,48 @@
- dump_template_bindings (tree parms, tree args)
- {
-   int need_comma = 0;
-+  tree p;
-+  int num_nondef;
-+  int lvl;
-+  tree lvl_args;
-+  int arg_idx;
-+  int i;
-   while (parms)
-     {
--      tree p = TREE_VALUE (parms);
--      int lvl = TMPL_PARMS_DEPTH (parms);
--      int arg_idx = 0;
--      int i;
-+      p = TREE_VALUE (parms);
-+      num_nondef = TREE_VEC_LENGTH (p);
-+      lvl = TMPL_PARMS_DEPTH (parms);
-+      lvl_args = NULL_TREE;
-+      arg_idx = 0;
-+      /* Don't crash if we had an invalid argument list.  */
-+      if (TMPL_ARGS_DEPTH (args) >= lvl)
-+        {
-+          lvl_args = TMPL_ARGS_LEVEL (args, lvl);
-+          num_nondef = count_non_default_template_args (lvl_args, p);
-+        }
-+
-       for (i = 0; i < TREE_VEC_LENGTH (p); ++i)
--      {
--        tree arg = NULL_TREE;
--
--        /* Don't crash if we had an invalid argument list.  */
--        if (TMPL_ARGS_DEPTH (args) >= lvl)
-           {
--            tree lvl_args = TMPL_ARGS_LEVEL (args, lvl);
--            if (NUM_TMPL_ARGS (lvl_args) > arg_idx)
--              arg = TREE_VEC_ELT (lvl_args, arg_idx);
--          }
-+            tree arg = NULL_TREE;
--        if (need_comma)
--          pp_separate_with_comma (cxx_pp);
--        dump_template_parameter (TREE_VEC_ELT (p, i), TFF_PLAIN_IDENTIFIER);
--        pp_cxx_whitespace (cxx_pp);
--        pp_equal (cxx_pp);
--        pp_cxx_whitespace (cxx_pp);
--        if (arg)
--          dump_template_argument (arg, TFF_PLAIN_IDENTIFIER);
--        else
--          pp_identifier (cxx_pp, "<missing>");
-+          if (lvl_args && NUM_TMPL_ARGS (lvl_args) > arg_idx)
-+            arg = TREE_VEC_ELT (lvl_args, arg_idx);
-+          if (need_comma)
-+              pp_separate_with_comma (cxx_pp);
-+          dump_template_parameter (TREE_VEC_ELT (p, i), TFF_PLAIN_IDENTIFIER);
-+          pp_cxx_whitespace (cxx_pp);
-+          pp_equal (cxx_pp);
-+          pp_cxx_whitespace (cxx_pp);
-+          if (arg)
-+            dump_template_argument (arg, TFF_PLAIN_IDENTIFIER);
-+          else
-+            pp_identifier (cxx_pp, "<missing>");
--        ++arg_idx;
--        need_comma = 1;
--      }
-+          ++arg_idx;
-+          need_comma = 1;
-+          }
-       parms = TREE_CHAIN (parms);
-     }
-@@ -347,7 +387,7 @@
-       pp_cxx_cv_qualifier_seq (cxx_pp, t);
-       pp_cxx_tree_identifier (cxx_pp, TYPE_IDENTIFIER (t));
-       pp_cxx_begin_template_argument_list (cxx_pp);
--      dump_template_argument_list (args, flags);
-+      dump_template_argument_list (args, NULL_TREE, flags);
-       pp_cxx_end_template_argument_list (cxx_pp);
-       }
-       break;
-@@ -927,15 +967,15 @@
-     case TEMPLATE_ID_EXPR:
-       {
--      tree name = TREE_OPERAND (t, 0);
-+          tree name = TREE_OPERAND (t, 0);
--      if (is_overloaded_fn (name))
--        name = DECL_NAME (get_first_fn (name));
--      dump_decl (name, flags);
--      pp_cxx_begin_template_argument_list (cxx_pp);
--      if (TREE_OPERAND (t, 1))
--        dump_template_argument_list (TREE_OPERAND (t, 1), flags);
--      pp_cxx_end_template_argument_list (cxx_pp);
-+          if (is_overloaded_fn (name))
-+            name = DECL_NAME (get_first_fn (name));
-+          dump_decl (name, flags);
-+          pp_cxx_begin_template_argument_list (cxx_pp);
-+          if (TREE_OPERAND (t, 1))
-+            dump_template_argument_list (TREE_OPERAND (t, 1), NULL_TREE, flags);
-+          pp_cxx_end_template_argument_list (cxx_pp);
-       }
-       break;
-@@ -1305,6 +1345,7 @@
- dump_template_parms (tree info, int primary, int flags)
- {
-   tree args = info ? TI_ARGS (info) : NULL_TREE;
-+  tree params = DECL_INNERMOST_TEMPLATE_PARMS (TI_TEMPLATE (info));
-   if (primary && flags & TFF_TEMPLATE_NAME)
-     return;
-@@ -1318,13 +1359,13 @@
-       int len, ix;
-       if (TMPL_ARGS_HAVE_MULTIPLE_LEVELS (args))
--      args = TREE_VEC_ELT (args, TREE_VEC_LENGTH (args) - 1);
-+          args = TREE_VEC_ELT (args, TREE_VEC_LENGTH (args) - 1);
--      len = TREE_VEC_LENGTH (args);
-+      len = count_non_default_template_args (args, params);
-       for (ix = 0; ix != len; ix++)
--      {
--        tree arg = TREE_VEC_ELT (args, ix);
-+        {
-+          tree arg = TREE_VEC_ELT (args, ix);
-           /* Only print a comma if we know there is an argument coming. In
-              the case of an empty template argument pack, no actual
-@@ -1333,12 +1374,12 @@
-               && (!ARGUMENT_PACK_P (arg)
-                   || TREE_VEC_LENGTH (ARGUMENT_PACK_ARGS (arg)) > 0))
-             pp_separate_with_comma (cxx_pp);
--          
-+
-           if (!arg)
-             pp_identifier (cxx_pp, "<template parameter error>");
-           else
-             dump_template_argument (arg, flags);
--        }
-+      }
-     }
-   else if (primary)
-     {
index 23ae745236799426bcc9b053687718d0dfc987d1..fd08e435d9afcb11bddd8506f19c29eaee4aadbd 100644 (file)
--- a/gcc.spec
+++ b/gcc.spec
@@ -66,7 +66,7 @@ Summary(pl.UTF-8):    Kolekcja kompilatorów GNU: kompilator C i pliki współdziel
 Summary(pt_BR.UTF-8):  Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
 Name:          gcc
 Version:       %{major_ver}.%{minor_ver}
-Release:       1
+Release:       2
 Epoch:         6
 License:       GPL v3+
 Group:         Development/Languages
@@ -83,7 +83,6 @@ Patch1:               %{name}-nolocalefiles.patch
 Patch2:                %{name}-nodebug.patch
 Patch3:                %{name}-ada-link.patch
 Patch4:                %{name}-sparc64-ada_fix.patch
-Patch5:                %{name}-pr14912.patch
 Patch6:                %{name}-ppc64-m32-m64-multilib-only.patch
 Patch7:                %{name}-libjava-multilib.patch
 Patch8:                %{name}-enable-java-awt-qt.patch
@@ -1381,7 +1380,7 @@ Statyczne biblioteki Obiektowego C.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
+
 %patch6 -p1
 %patch7 -p0
 %if %{with qt}
This page took 0.107264 seconds and 4 git commands to generate.