This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Thu, 6 Nov 2003, Richard Guenther wrote:...
On Thu, 6 Nov 2003, Falk Hueffner wrote:
Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:
Is there a way to turn an assert() into optimization hints for gcc? Like in
double mysqrt(double x) { assert(x >= 0.0); return sqrt(x); }
double mysqrt(double x)
{
if (!(x >= 0.0))
abort();
return sqrt(x);
}
... should be transformed into ....
if (!(x >= 0)) {
??
} else {
return sqrt(x);
}
+------------------------------------------------------------+ | Alexander M. Rosenberg <mailto:alexr@_spies.com> | | Nobody cares what I say. Remove the underscore to mail me. |
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |