diff -urN gcc-12.1.0-orig/gcc/c/c-decl.cc gcc-12.1.0/gcc/c/c-decl.cc
--- gcc-12.1.0-orig/gcc/c/c-decl.cc	2022-05-06 16:30:56 +0900
+++ gcc-12.1.0/gcc/c/c-decl.cc	2022-05-13 06:10:16 +0900
@@ -4314,6 +4314,8 @@
 {
   gcc_assert (TREE_CODE (name) == IDENTIFIER_NODE);
 
+  return name_hint (NULL, NULL);  /* Fuzzy lookup disabled.  */
+
   /* First, try some well-known names in the C standard library, in case
      the user forgot a #include.  */
   const char *header_hint
diff -urN gcc-12.1.0-orig/gcc/c/c-typeck.cc gcc-12.1.0/gcc/c/c-typeck.cc
--- gcc-12.1.0-orig/gcc/c/c-typeck.cc	2022-05-06 16:30:56 +0900
+++ gcc-12.1.0/gcc/c/c-typeck.cc	2022-05-13 06:10:20 +0900
@@ -2418,6 +2418,8 @@
 {
   gcc_assert (TREE_CODE (component) == IDENTIFIER_NODE);
 
+  return NULL_TREE;  /* Fuzzy lookup disabled.  */
+
   /* First, gather a list of candidates.  */
   auto_vec <tree> candidates;
 
diff -urN gcc-12.1.0-orig/gcc/cp/name-lookup.cc gcc-12.1.0/gcc/cp/name-lookup.cc
--- gcc-12.1.0-orig/gcc/cp/name-lookup.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/cp/name-lookup.cc	2022-05-13 06:10:25 +0900
@@ -6631,6 +6631,8 @@
 suggest_alternatives_for (location_t location, tree name,
 			  bool suggest_misspellings)
 {
+  return name_hint ();  /* Fuzzy lookup disabled.  */
+
   /* First, search for exact matches in other namespaces.  */
   namespace_hints ns_hints (location, name);
   name_hint result = ns_hints.convert_candidates_to_name_hint ();
@@ -6680,6 +6682,8 @@
 name_hint
 suggest_alternatives_in_other_namespaces (location_t location, tree name)
 {
+  return name_hint ();  /* Fuzzy lookup disabled.  */
+
   namespace_hints ns_hints (location, name);
 
   name_hint result = ns_hints.convert_candidates_to_name_hint ();
@@ -7033,6 +7037,8 @@
 suggest_alternative_in_explicit_scope (location_t location, tree name,
 				       tree scope)
 {
+  return name_hint ();  /* Fuzzy lookup disabled.  */
+
   /* Something went very wrong; don't suggest anything.  */
   if (name == error_mark_node)
     return name_hint ();
@@ -7063,6 +7069,8 @@
 name_hint
 suggest_alternative_in_scoped_enum (tree name, tree scoped_enum)
 {
+  return name_hint ();  /* Fuzzy lookup disabled.  */
+
   gcc_assert (SCOPED_ENUM_P (scoped_enum));
 
   best_match <tree, const char *> bm (name);
@@ -7463,6 +7471,8 @@
 {
   gcc_assert (TREE_CODE (name) == IDENTIFIER_NODE);
 
+  return name_hint ();  /* Fuzzy lookup disabled.  */
+
   /* First, try some well-known names in the C++ standard library, in case
      the user forgot a #include.  */
   const char *header_hint
diff -urN gcc-12.1.0-orig/gcc/cp/search.cc gcc-12.1.0/gcc/cp/search.cc
--- gcc-12.1.0-orig/gcc/cp/search.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/cp/search.cc	2022-05-13 06:10:31 +0900
@@ -1299,6 +1299,8 @@
 tree
 lookup_member_fuzzy (tree xbasetype, tree name, bool want_type_p)
 {
+  return NULL_TREE;  /* Fuzzy lookup disabled.  */
+
   tree type = NULL_TREE, basetype_path = NULL_TREE;
   class lookup_field_fuzzy_info lffi (want_type_p);
 
diff -urN gcc-12.1.0-orig/gcc/opt-suggestions.cc gcc-12.1.0/gcc/opt-suggestions.cc
--- gcc-12.1.0-orig/gcc/opt-suggestions.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/opt-suggestions.cc	2022-05-13 06:10:36 +0900
@@ -36,6 +36,8 @@
 const char *
 option_proposer::suggest_option (const char *bad_opt)
 {
+  return NULL;  /* Fuzzy lookup disabled.  */
+
   /* Lazily populate m_option_suggestions.  */
   if (!m_option_suggestions)
     build_option_suggestions (NULL);
diff -urN gcc-12.1.0-orig/gcc/opts-common.cc gcc-12.1.0/gcc/opts-common.cc
--- gcc-12.1.0-orig/gcc/opts-common.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/opts-common.cc	2022-05-13 06:10:50 +0900
@@ -1359,7 +1359,7 @@
       p += len + 1;
     }
   p[-1] = '\0';
-  return find_closest_string (arg, &candidates);
+  return NULL;  /* find_closest_string (arg, &candidates); */
 }
 
 /* Perform diagnostics for read_cmdline_option and control_warning_option
diff -urN gcc-12.1.0-orig/gcc/opts.cc gcc-12.1.0/gcc/opts.cc
--- gcc-12.1.0-orig/gcc/opts.cc	2022-05-06 16:30:57 +0900
+++ gcc-12.1.0/gcc/opts.cc	2022-05-13 06:11:20 +0900
@@ -2089,6 +2089,8 @@
 			      const struct sanitizer_opts_s *opts,
 			      enum opt_code code, int value)
 {
+  return NULL;  /* Fuzzy lookup disabled.  */
+
   best_match <const string_fragment &, const char*> bm (arg);
   for (int i = 0; opts[i].name != NULL; ++i)
     {
