Summary: | dev-libs/gmp-4.2.1-r1 - TEST "t_import" fails with "-funroll-loops"/"-O3" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steffen Bergner <steffen.bergner> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | steffen.bergner |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Steffen Bergner
2007-06-04 10:49:04 UTC
Fix: ---- Use the Warning of gcc for unsafe loop optimizations in CFLAGS->make.conf, one of my CFLAGS looks like: "-floop-optimize2 -fomit-frame-pointer -funroll-loops -march=pentium3 -msse -O3 -pipe -Wunsafe-loop-optimizations" from "man gcc": --- -funsafe-loop-optimizations If given, the loop optimizer will assume that loop indices do not overflow, and that the loops with nontrivial exit condition are not infinite. This enables a wider range of loop optimizations even if the loop optimizer itself cannot prove that these assumptions are valid. Using -Wunsafe-loop-optimizations, the compiler will warn you if it finds this kind of loop." --- |