https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91307

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Can anything as simple as this resolve it:

diff --git a/gcc/tree.c b/gcc/tree.c
index 8cf75f22220..56c0fd450f1 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -9817,12 +9817,17 @@ get_file_function_name (const char *type)
           || (strncmp (type, "sub_", 4) == 0
               && (type[4] == 'I' || type[4] == 'D')))
     {
-      const char *file = main_input_filename;
-      if (! file)
-       file = LOCATION_FILE (input_location);
-      /* Just use the file's basename, because the full pathname
-        might be quite long.  */
-      p = q = ASTRDUP (lbasename (file));
+      if (flag_wpa)
+       p = q = ASTRDUP ("wpa");
+      else
+       {
+         const char *file = main_input_filename;
+         if (! file)
+           file = LOCATION_FILE (input_location);
+         /* Just use the file's basename, because the full pathname
+            might be quite long.  */
+         p = q = ASTRDUP (lbasename (file));
+       }
     }
   else
     {

?

Reply via email to