sse4.2 optimization selected on older incompatible processors

Bug #660377 reported by Nicolas Gilles
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: nvidia
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

Revision history for this message
Nicolas Gilles (nicolas-gilles) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

closing this as fix released. At least in 20.04 LTS, gcc -m32 seems to work.

Changed in gcc-defaults (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.