aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-08-07 16:19:54 -0700
committerUlrich Drepper <drepper@redhat.com>2009-08-07 16:19:54 -0700
commit57b378ac895c346d74758b54f9e388ed3ca30751 (patch)
treec27ccba4e3a26c77f38555028493a82c7b4fd1c3
parent2d2f482e480519f627fb58b163a2d7668b579e69 (diff)
downloadglibc-57b378ac895c346d74758b54f9e388ed3ca30751.tar
glibc-57b378ac895c346d74758b54f9e388ed3ca30751.tar.gz
glibc-57b378ac895c346d74758b54f9e388ed3ca30751.tar.bz2
glibc-57b378ac895c346d74758b54f9e388ed3ca30751.zip
Avoid warning through fake initialization.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86_64/multiarch/strcspn-c.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bac95b2012..0defb11eca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-07 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
+ warning through fake initialization.
+
2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
diff --git a/sysdeps/x86_64/multiarch/strcspn-c.c b/sysdeps/x86_64/multiarch/strcspn-c.c
index 8286d0372b..daeebe1bf5 100644
--- a/sysdeps/x86_64/multiarch/strcspn-c.c
+++ b/sysdeps/x86_64/multiarch/strcspn-c.c
@@ -86,6 +86,8 @@ STRCSPN_SSE42 (const char *s, const char *a)
const char *aligned;
__m128i mask;
+ /* Fake initialization. gcc otherwise will warn. */
+ asm ("" : "=xm" (mask));
int offset = (int) ((size_t) a & 15);
if (offset != 0)
{