Hello community,

here is the log from the commit of package gcc10 for openSUSE:Factory checked 
in at 2020-06-28 23:03:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gcc10 (Old)
 and      /work/SRC/openSUSE:Factory/.gcc10.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gcc10"

Sun Jun 28 23:03:18 2020 rev:4 rq:816982 version:10.1.1+git290

Changes:
--------
--- /work/SRC/openSUSE:Factory/gcc10/cross-aarch64-gcc10.changes        
2020-05-12 22:25:48.495052507 +0200
+++ /work/SRC/openSUSE:Factory/.gcc10.new.3060/cross-aarch64-gcc10.changes      
2020-06-28 23:03:40.266329571 +0200
@@ -1,0 +2,19 @@
+Thu Jun 25 09:08:00 UTC 2020 - Richard Biener <[email protected]>
+
+- Update to gcc-10 branch head (c91e43e9363bd119a695d6450), git290. 
+  * Includes fix for PR95719, fixing LibreOffice.
+
+-------------------------------------------------------------------
+Thu Jun 11 16:26:53 UTC 2020 - Matwey Kornilov <[email protected]>
+
+- Enable c++ for arm-none-eabi
+
+-------------------------------------------------------------------
+Fri May 15 12:00:41 UTC 2020 - Richard Biener <[email protected]>
+
+- Update to gcc-10 branch head (b0461f44076c26ced5526e4fd6), git68.
+- Add gcc10-foffload-default.patch to make offloading ignore
+  offload targets that have not been installed both at compile
+  and runtime (for the libgomp plugin part).
+
+-------------------------------------------------------------------
cross-amdgcn-gcc10.changes: same change
cross-arm-gcc10.changes: same change
cross-arm-none-gcc10-bootstrap.changes: same change
cross-arm-none-gcc10.changes: same change
cross-avr-gcc10-bootstrap.changes: same change
cross-avr-gcc10.changes: same change
cross-epiphany-gcc10-bootstrap.changes: same change
cross-epiphany-gcc10.changes: same change
cross-hppa-gcc10.changes: same change
cross-i386-gcc10.changes: same change
cross-m68k-gcc10.changes: same change
cross-mips-gcc10.changes: same change
cross-nvptx-gcc10.changes: same change
cross-ppc64-gcc10.changes: same change
cross-ppc64le-gcc10.changes: same change
cross-riscv64-elf-gcc10-bootstrap.changes: same change
cross-riscv64-elf-gcc10.changes: same change
cross-riscv64-gcc10.changes: same change
cross-rx-gcc10-bootstrap.changes: same change
cross-rx-gcc10.changes: same change
cross-s390x-gcc10.changes: same change
cross-sparc-gcc10.changes: same change
cross-sparc64-gcc10.changes: same change
cross-x86_64-gcc10.changes: same change
gcc10-testresults.changes: same change
gcc10.changes: same change

Old:
----
  gcc-10.1.1+git40.tar.xz

New:
----
  gcc-10.1.1+git290.tar.xz
  gcc10-foffload-default.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cross-aarch64-gcc10.spec ++++++
--- /var/tmp/diff_new_pack.yX2D82/_old  2020-06-28 23:05:12.422635633 +0200
+++ /var/tmp/diff_new_pack.yX2D82/_new  2020-06-28 23:05:12.426635646 +0200
@@ -67,7 +67,6 @@
 %endif
 %if "%{cross_arch}" == "arm-none"
 %define binutils_target arm
-%define build_cp 0
 %endif
 %if "%{cross_arch}" == "riscv64-elf"
 %define binutils_target riscv64
@@ -115,7 +114,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        10.1.1+git40
+Version:        10.1.1+git290
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -140,6 +139,7 @@
 Patch17:        gcc9-reproducible-builds-buildid-for-checksum.patch
 # A set of patches from the RH srpm
 Patch51:        gcc41-ppc32-retaddr.patch
+Patch52:        gcc10-foffload-default.patch
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
@@ -295,6 +295,7 @@
 %patch16
 %patch17 -p1
 %patch51
+%patch52
 %patch60
 %patch61
 
@@ -858,7 +859,7 @@
 %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
 %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
 %if 0%{!?gcc_libc_bootstrap:1}
-%if %{cross_arch} == "avr" || 0%{?gcc_target_newlib:1} || 
0%{?gcc_target_glibc:1}
+%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 
0%{?gcc_target_glibc:1}
 %{_prefix}/include/c++
 %endif
 %endif

cross-amdgcn-gcc10.spec: same change
cross-arm-gcc10.spec: same change
cross-arm-none-gcc10-bootstrap.spec: same change
cross-arm-none-gcc10.spec: same change
cross-avr-gcc10-bootstrap.spec: same change
cross-avr-gcc10.spec: same change
cross-epiphany-gcc10-bootstrap.spec: same change
cross-epiphany-gcc10.spec: same change
cross-hppa-gcc10.spec: same change
cross-i386-gcc10.spec: same change
cross-m68k-gcc10.spec: same change
cross-mips-gcc10.spec: same change
cross-nvptx-gcc10.spec: same change
cross-ppc64-gcc10.spec: same change
cross-ppc64le-gcc10.spec: same change
cross-riscv64-elf-gcc10-bootstrap.spec: same change
cross-riscv64-elf-gcc10.spec: same change
cross-riscv64-gcc10.spec: same change
cross-rx-gcc10-bootstrap.spec: same change
cross-rx-gcc10.spec: same change
cross-s390x-gcc10.spec: same change
cross-sparc-gcc10.spec: same change
cross-sparc64-gcc10.spec: same change
cross-x86_64-gcc10.spec: same change
++++++ gcc10-testresults.spec ++++++
--- /var/tmp/diff_new_pack.yX2D82/_old  2020-06-28 23:05:12.962637427 +0200
+++ /var/tmp/diff_new_pack.yX2D82/_new  2020-06-28 23:05:12.966637439 +0200
@@ -269,7 +269,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        10.1.1+git40
+Version:        10.1.1+git290
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -329,6 +329,7 @@
 Patch17:        gcc9-reproducible-builds-buildid-for-checksum.patch
 # A set of patches from the RH srpm
 Patch51:        gcc41-ppc32-retaddr.patch
+Patch52:        gcc10-foffload-default.patch
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
@@ -455,6 +456,7 @@
 %patch16
 %patch17 -p1
 %patch51
+%patch52
 %patch60
 %patch61
 

++++++ gcc10.spec ++++++
--- /var/tmp/diff_new_pack.yX2D82/_old  2020-06-28 23:05:12.982637493 +0200
+++ /var/tmp/diff_new_pack.yX2D82/_new  2020-06-28 23:05:12.986637506 +0200
@@ -251,7 +251,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        10.1.1+git40
+Version:        10.1.1+git290
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -311,6 +311,7 @@
 Patch17:        gcc9-reproducible-builds-buildid-for-checksum.patch
 # A set of patches from the RH srpm
 Patch51:        gcc41-ppc32-retaddr.patch
+Patch52:        gcc10-foffload-default.patch
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
@@ -1794,6 +1795,7 @@
 %patch16
 %patch17 -p1
 %patch51
+%patch52
 %patch60
 %patch61
 

++++++ cross.spec.in ++++++
--- /var/tmp/diff_new_pack.yX2D82/_old  2020-06-28 23:05:13.130637984 +0200
+++ /var/tmp/diff_new_pack.yX2D82/_new  2020-06-28 23:05:13.130637984 +0200
@@ -46,7 +46,6 @@
 %endif
 %if "%{cross_arch}" == "arm-none"
 %define binutils_target arm
-%define build_cp 0
 %endif
 %if "%{cross_arch}" == "riscv64-elf"
 %define binutils_target riscv64
@@ -431,7 +430,7 @@
 %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
 %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
 %if 0%{!?gcc_libc_bootstrap:1}
-%if %{cross_arch} == "avr" || 0%{?gcc_target_newlib:1} || 
0%{?gcc_target_glibc:1}
+%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 
0%{?gcc_target_glibc:1}
 %{_prefix}/include/c++
 %endif
 %endif

++++++ gcc-10.1.1+git40.tar.xz -> gcc-10.1.1+git290.tar.xz ++++++
/work/SRC/openSUSE:Factory/gcc10/gcc-10.1.1+git40.tar.xz 
/work/SRC/openSUSE:Factory/.gcc10.new.3060/gcc-10.1.1+git290.tar.xz differ: 
char 27, line 1

++++++ gcc.spec.in ++++++
--- /var/tmp/diff_new_pack.yX2D82/_old  2020-06-28 23:05:13.170638117 +0200
+++ /var/tmp/diff_new_pack.yX2D82/_new  2020-06-28 23:05:13.174638130 +0200
@@ -255,7 +255,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:          https://gcc.gnu.org/
-Version: 10.1.1+git40
+Version: 10.1.1+git290
 Release:      1
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -317,6 +317,7 @@
 Patch17:       gcc9-reproducible-builds-buildid-for-checksum.patch
 # A set of patches from the RH srpm
 Patch51:       gcc41-ppc32-retaddr.patch
+Patch52:       gcc10-foffload-default.patch
 # Some patches taken from Debian
 Patch60:       gcc44-textdomain.patch
 Patch61:       gcc44-rename-info-files.patch
@@ -1072,6 +1073,7 @@
 %patch16
 %patch17 -p1
 %patch51
+%patch52
 %patch60
 %patch61
 

++++++ gcc10-foffload-default.patch ++++++
2019-01-17  Jakub Jelinek  <[email protected]>

        * gcc.c (offload_targets_default): New variable.
        (process_command): Set it if -foffload is defaulted.
        (driver::maybe_putenv_OFFLOAD_TARGETS): Add OFFLOAD_TARGET_DEFAULT=1
        into environment if -foffload has been defaulted.
        * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
        (compile_offload_image): If OFFLOAD_TARGET_DEFAULT
        is in the environment, don't fail if corresponding mkoffload
        can't be found.
        (compile_images_for_offload_targets): Likewise.  Free and clear
        offload_names if no valid offload is found.
libgomp/
        * target.c (gomp_load_plugin_for_device): If a plugin can't be
        dlopened, assume it has no devices silently.

--- gcc/gcc.c.jj        2017-01-17 10:28:40.000000000 +0100
+++ gcc/gcc.c   2017-01-20 16:26:29.649962902 +0100
@@ -290,6 +290,10 @@ static const char *spec_host_machine = D
 
 static char *offload_targets = NULL;
 
+/* Set to true if -foffload has not been used and offload_targets
+   is set to the configured in default.  */
+static bool offload_targets_default;
+
 /* Nonzero if cross-compiling.
    When -b is used, the value comes from the `specs' file.  */
 
@@ -4457,7 +4461,10 @@ process_command (unsigned int decoded_op
   /* If the user didn't specify any, default to all configured offload
      targets.  */
   if (ENABLE_OFFLOADING && offload_targets == NULL)
-    handle_foffload_option (OFFLOAD_TARGETS);
+    {
+      handle_foffload_option (OFFLOAD_TARGETS);
+      offload_targets_default = true;
+    }
 
   if (output_file
       && strcmp (output_file, "-") != 0
@@ -7693,6 +7700,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS ()
       obstack_grow (&collect_obstack, offload_targets,
                    strlen (offload_targets) + 1);
       xputenv (XOBFINISH (&collect_obstack, char *));
+      if (offload_targets_default)
+         xputenv ("OFFLOAD_TARGET_DEFAULT=1");
     }
 
   free (offload_targets);
--- gcc/lto-wrapper.c.jj        2017-01-01 12:45:34.000000000 +0100
+++ gcc/lto-wrapper.c   2017-01-20 16:34:18.294016997 +0100
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.
 /* Environment variable, used for passing the names of offload targets from GCC
    driver to lto-wrapper.  */
 #define OFFLOAD_TARGET_NAMES_ENV       "OFFLOAD_TARGET_NAMES"
+#define OFFLOAD_TARGET_DEFAULT_ENV     "OFFLOAD_TARGET_DEFAULT"
 
 enum lto_mode_d {
   LTO_MODE_NONE,                       /* Not doing LTO.  */
@@ -822,6 +823,12 @@ compile_offload_image (const char *targe
        break;
       }
 
+  if (!compiler && getenv (OFFLOAD_TARGET_DEFAULT_ENV))
+    {
+      free_array_of_ptrs ((void **) paths, n_paths);
+      return NULL;
+    }
+
   if (!compiler)
     fatal_error (input_location,
                 "could not find %s in %s (consider using %<-B%>)",
@@ -885,6 +892,7 @@ compile_images_for_offload_targets (unsi
   unsigned num_targets = parse_env_var (target_names, &names, NULL);
 
   int next_name_entry = 0;
+  bool hsa_seen = false;
   const char *compiler_path = getenv ("COMPILER_PATH");
   if (!compiler_path)
     goto out;
@@ -897,18 +905,26 @@ compile_images_for_offload_targets (unsi
       /* HSA does not use LTO-like streaming and a different compiler, skip
         it. */
       if (strcmp (names[i], "hsa") == 0)
-       continue;
+       {
+         hsa_seen = true;
+         continue;
+       }
 
       offload_names[next_name_entry]
        = compile_offload_image (names[i], compiler_path, in_argc, in_argv,
                                 compiler_opts, compiler_opt_count,
                                 linker_opts, linker_opt_count);
       if (!offload_names[next_name_entry])
-       fatal_error (input_location,
-                    "problem with building target image for %s", names[i]);
+       continue;
       next_name_entry++;
     }
 
+  if (next_name_entry == 0 && !hsa_seen)
+    {
+      free (offload_names);
+      offload_names = NULL;
+    }
+
  out:
   free_array_of_ptrs ((void **) names, num_targets);
 }
--- libgomp/target.c.jj 2017-01-01 12:45:52.000000000 +0100
+++ libgomp/target.c    2017-01-20 20:12:13.756710875 +0100
@@ -2356,7 +2356,7 @@ gomp_load_plugin_for_device (struct gomp
 
   void *plugin_handle = dlopen (plugin_name, RTLD_LAZY);
   if (!plugin_handle)
-    goto dl_fail;
+    return 0;
 
   /* Check if all required functions are available in the plugin and store
      their handlers.  None of the symbols can legitimately be NULL,

Reply via email to