me
/
guix
Archived
1
0
Fork 0
Commit Graph

3 Commits (8792f08b098bb8f3778ea7339fcc4137e1fde60e)

Author SHA1 Message Date
Ludovic Courtès 243ea8673f
gnu: gcc: Fix 'gcc-strmov-store-file-names.patch'.
Fixes <https://bugs.gnu.org/31708>.

Previously GCC would crash when encountering a 'static const' element
without an initializer, as in:

  #define _GNU_SOURCE
  #include <string.h>

  void foo (char *x)
  {
    static const char buf[12];
    memcpy (x, buf, 12);
  }

* gnu/packages/patches/gcc-strmov-store-file-names.patch: Return false
when DECL_INITIAL returns NULL_TREE.
2018-06-13 23:04:51 +02:00
Ludovic Courtès e288572710
gnu: gcc: Adjust 'strmov' patch for string constants in variables.
Fixes <https://bugs.gnu.org/30395>.

* gnu/packages/patches/gcc-strmov-store-file-names.patch: Update patch
to deal with string constants stored in 'static' variables.
2018-03-20 23:39:51 +01:00
Ludovic Courtès 8033772363
gnu: gcc@5, gcc@6: Work around use of 'movabs' for /gnu/store strings.
Partly addresses <http://bugs.gnu.org/24703>.
Reported by Mark H Weaver <mhw@netris.org>.

* gnu/packages/patches/gcc-strmov-store-file-names.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-5)[sources](patches): Add it.
(gcc-6)[sources](patches): Add it.
2016-11-09 21:24:44 +01:00