]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/langhooks.c
tree.h (BLOCK_ORIGIN): New.
[thirdparty/gcc.git] / gcc / langhooks.c
index 4e6179f248a5f8863168714c0bd16b1bbf0e4afd..9d7c2d3425d3d1e7929ce69837290bd662fcde31 100644 (file)
@@ -385,10 +385,6 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
          if (abstract_origin)
            {
              ao = BLOCK_ABSTRACT_ORIGIN (abstract_origin);
-             while (TREE_CODE (ao) == BLOCK
-                    && BLOCK_ABSTRACT_ORIGIN (ao)
-                    && BLOCK_ABSTRACT_ORIGIN (ao) != ao)
-               ao = BLOCK_ABSTRACT_ORIGIN (ao);
              gcc_assert (TREE_CODE (ao) == FUNCTION_DECL);
              fndecl = ao;
            }
@@ -416,12 +412,6 @@ lhd_print_error_function (diagnostic_context *context, const char *file,
                     && BLOCK_ABSTRACT_ORIGIN (block))
                {
                  ao = BLOCK_ABSTRACT_ORIGIN (block);
-
-                 while (TREE_CODE (ao) == BLOCK
-                        && BLOCK_ABSTRACT_ORIGIN (ao)
-                        && BLOCK_ABSTRACT_ORIGIN (ao) != ao)
-                   ao = BLOCK_ABSTRACT_ORIGIN (ao);
-
                  if (TREE_CODE (ao) == FUNCTION_DECL)
                    {
                      fndecl = ao;