Bug#632472: clang: defines SSE macros with -m32 on amd64
brian m. carlson
sandals at crustytoothpaste.net
Sat Jul 2 15:36:44 UTC 2011
Package: clang
Version: 2.9-7
Severity: normal
clang unconditionally defines macros for SSE and SSE2 on amd64. This is
problematic when compiling with -m32, since not all i386 systems have
SSE functionality; a program might fail with an illegal instruction if
compiled on a 64-bit system for a 32-bit system.
lakeview ok % gcc -m32 -std=c99 -E -dM - </dev/null | grep SSE
lakeview no % clang -m32 -std=c99 -E -dM - </dev/null | grep SSE
#define __SSE2_MATH__ 1
#define __SSE2__ 1
#define __SSE_MATH__ 1
#define __SSE__ 1
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-rc4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages clang depends on:
ii libc6 2.13-7 Embedded GNU C Library: Shared lib
ii libffi5 3.0.9-7 Foreign Function Interface library
ii libgcc1 1:4.6.1-1 GCC support library
ii libllvm2.9 2.9+dfsg-3 Low-Level Virtual Machine (LLVM),
ii libstdc++6 4.6.1-1 GNU Standard C++ Library v3
ii libstdc++6-4.5-dev 4.5.3-3 The GNU Standard C++ Library v3 (d
Versions of packages clang recommends:
ii llvm-2.9-dev 2.9+dfsg-3 Low-Level Virtual Machine (LLVM),
ii python 2.6.6-14 interactive high-level object-orie
clang suggests no packages.
-- no debconf information
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20110702/472f869c/attachment.pgp>
More information about the Pkg-llvm-team
mailing list