@@ -910,7 +910,8 @@ run_gcc (unsigned argc, char *argv[])
there is no need to perform a link-time recompilation, i.e. lto-wrapper
is used only for compiling offload images. */
for (i = 1; i < argc; ++i)
- printf ("%s\n", argv[i]);
+ if (strncmp (argv[i], "-fresolution=", sizeof ("-fresolution=") - 1))
+ printf ("%s\n", argv[i]);
goto finish;
}
else if (lto_mode == LTO_MODE_LTO)
@@ -84,8 +84,8 @@ along with this program; see the file COPYING3. If not see
/* LTO magic section name. */
-#define LTO_SECTION_PREFIX ".gnu.lto_.symtab"
-#define LTO_SECTION_PREFIX_LEN (sizeof (LTO_SECTION_PREFIX) - 1)
+#define LTO_SECTION_SYMTAB ".gnu.lto_.symtab"
+#define OMP_SECTION_SYMTAB ".gnu.target_lto_.symtab"
/* The part of the symbol table the plugin has to keep track of. Note that we
must keep SYMS until all_symbols_read is called to give the linker time to
@@ -820,7 +820,8 @@ process_symtab (void *data, const char *name, off_t offset, off_t length)
char *s;
char *secdatastart, *secdata;
- if (strncmp (name, LTO_SECTION_PREFIX, LTO_SECTION_PREFIX_LEN) != 0)
+ if (strncmp (name, LTO_SECTION_SYMTAB, strlen (LTO_SECTION_SYMTAB)) != 0
+ && strncmp (name, OMP_SECTION_SYMTAB, strlen (OMP_SECTION_SYMTAB)) != 0)
return 1;
s = strrchr (name, '.');