OSDN Git Service

PR c/14492
[pf3gnuchains/gcc-fork.git] / gcc / dwarf2out.c
index 4d9a1b2..02cbef3 100644 (file)
@@ -9244,9 +9244,15 @@ loc_descriptor_from_tree_1 (tree loc, int want_address)
           >= (unsigned int) LAST_AND_UNUSED_TREE_CODE)
        return 0;
 
+#ifdef ENABLE_CHECKING
       /* Otherwise this is a generic code; we should just lists all of
         these explicitly.  Aborting means we forgot one.  */
       abort ();
+#else
+      /* In a release build, we want to degrade gracefully: better to
+        generate incomplete debugging information than to crash.  */
+      return NULL;
+#endif
     }
 
   /* Show if we can't fill the request for an address.  */