aboutsummaryrefslogtreecommitdiff
From ee6c0081c03330045b3d4cde8421cd1d3a459609 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 15 Jun 2018 10:51:28 +0200
Subject: [PATCH] Partial backport r256656

2018-06-15  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2018-01-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	* lex.c (search_line_fast): Remove illegal coercion of an
	unaligned pointer value to vector pointer type and replace with
	use of __builtin_vec_vsx_ld () built-in function, which operates
	on unaligned pointer values.

From-SVN: r261621
---

Obtained from:

https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=ee6c0081c03330045b3d4cde8421cd1d3a459609

The libcpp/ChangeLog hunk was modified to apply on top of gcc-5's libcpp/ChangeLog.

 libcpp/ChangeLog | 12 ++++++++++++
 libcpp/lex.c     |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index c920a05d438..a63abb04f5e 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,15 @@
+2018-06-15  Martin Liska  <mliska@suse.cz>
+
+	PR bootstrap/86162
+
+	Backport from mainline
+	2018-01-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
+
+	* lex.c (search_line_fast): Remove illegal coercion of an
+	unaligned pointer value to vector pointer type and replace with
+	use of __builtin_vec_vsx_ld () built-in function, which operates
+	on unaligned pointer values.
+
 2017-10-10  Release Manager
 
 	* GCC 5.5.0 released.
diff --git a/libcpp/lex.c b/libcpp/lex.c
index e5a0397f309..b789686f1c4 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -568,7 +568,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
     {
       vc m_nl, m_cr, m_bs, m_qm;
 
-      data = *((const vc *)s);
+      data = __builtin_vec_vsx_ld (0, s);
       s += 16;
 
       m_nl = (vc) __builtin_vec_cmpeq(data, repl_nl);
-- 
2.27.0

d>Vincent Legoll 2020-11-03gnu: sqlite: Build with '-g'....* gnu/packages/sqlite.scm (sqlite)[arguments]: Add "-g" to CFLAGS. Ludovic Courtès 2020-10-26gnu: sqlite: Move Hurd-specific patch into source....* gnu/packages/sqlite.scm (sqlite)[native-inputs]: Move conditional "sqlite-hurd.patch" to... [source]: ...here. [arguments]: Remove "patch-sqlite/hurd" stage. Jan (janneke) Nieuwenhuizen 2020-07-11gnu: sqlite: Add locking-mode fix for the Hurd....* gnu/packages/patches/sqlite-hurd.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/sqlite.scm (sqlite)[native-inputs]: Add it when building for the Hurd. [arguments]: Apply it when building for the Hurd. Jan (janneke) Nieuwenhuizen 2020-02-03gnu: SQLite: Update to 3.31.1....* gnu/packages/sqlite.scm (sqlite): Update to 3.31.1. Marius Bakke 2020-01-24gnu: sqlite: Update to 3.31.0....* gnu/packages/sqlite.scm (sqlite): Update to 3.31.0. Marius Bakke 2020-01-22gnu: Add deprecation notice for 'sqlite-with-column-metadata'....* gnu/packages/sqlite.scm (sqlite-with-column-metadata): New public variable. Marius Bakke 2019-12-05gnu: sqlite: Move static library to separate output....* gnu/packages/sqlite.scm (sqlite)[outputs]: New field. [arguments]: Add #:phases. Marius Bakke 2019-12-05gnu: sqlite: Update to 3.30.1....* gnu/packages/sqlite.scm (sqlite): Update to 3.30.1. Marius Bakke 2019-11-28gnu: sqlite: Build with column metadata....* gnu/packages/sqlite.scm (sqlite)[arguments]: Add configure flag to enable column metadata. (sqlite-with-column-metadata): Remove variable. * gnu/packages/fontutils.scm (fontmanager)[inputs]: Replace sqlite-with-column-metadata with sqlite. * gnu/packages/messaging (dino)[inputs]: Ditto. * gnu/packages/music.scm (clementine)[inputs]: Ditto. * gnu/packages/qt.scm (qtbase)[inputs]: Ditto. * gnu/packages/telephony.scm (jami)[inputs]: Remove sqlite-with-column-metadata. [arguments]: Remove custom 'wrap phase. Efraim Flashner 2019-05-04gnu: SQLite: Update to 3.28.0....* gnu/packages/sqlite.scm (sqlite): Update to 3.28.0. Marius Bakke 2019-02-09gnu: sqlite: Enable FTS3 support....This is no longer enabled by default since 3.25.0. * gnu/packages/sqlite.scm (sqlite)[arguments]: Add "-DSQLITE_ENABLE_FTS3" to #:configure-flags. Marius Bakke 2019-02-09gnu: sqlite: Update to 3.27.1....* gnu/packages/sqlite.scm (sqlite): Update to 3.27.1. Marius Bakke 2019-02-09Merge branch 'master' into core-updatesMarius Bakke 2019-02-09gnu: tracker: Build against the regular SQLite....FTS5 is enabled by default in the current version. * gnu/packages/sqlite.scm (sqlite-with-fts5): Remove variable. * gnu/packages/gnome.scm (tracker)[inputs]: Change from that to SQLITE. Marius Bakke 2019-02-07gnu: sqlite: Remove graft for 3.26.0....* gnu/packages/sqlite.scm (sqlite): Update to 3.26.0. [replacement]: Remove. (sqlite-3.26.0): Remove variable. Marius Bakke 2019-01-16gnu: Move sqlite to separate module....* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5, sqlite-with-column-metadata): Move variables from here... * gnu/packages/sqlite.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/apl.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/code.scm, gnu/packages/crypto.scm, gnu/packages/databases.scm, gnu/packages/dc.scm, gnu/packages/disk.scm, gnu/packages/ebook.scm, gnu/packages/education.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/file-systems.scm, gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/gps.scm, gnu/packages/guile.scm, gnu/packages/ibus.scm, gnu/packages/kerberos.scm, gnu/packages/kodi.scm, gnu/packages/lisp.scm, gnu/packages/mail.scm, gnu/packages/messaging.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nfs.scm, gnu/packages/ocaml.scm, gnu/packages/package-management.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/php.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm, gnu/packages/scheme.scm, gnu/packages/sync.scm, gnu/packages/syndication.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/web-browsers.scm, gnu/packages/webkit.scm: Adjust module references. Ricardo Wurmus