sse4.2 optimization selected on older incompatible processors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When compiling in 32bit mode (-m32 option), and statically linking, the resulting application fails triggering an "illegal instruction" error. It seems that the strspn() call is replaced with a call to __strspn_sse42() instead even though my architecture doesn't support it. Specifiying -march=<anything else that doesn't support SSE4.2> doesn't help.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gcc 4:4.4.3-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Thu Oct 14 10:03:53 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
ProcEnviron:
LANGUAGE=en
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/zsh
SourcePackage: gcc-defaults
closing this as fix released. At least in 20.04 LTS, gcc -m32 seems to work.