[libstdc++ patch] Check for __builtins in std_cmath.h

Gabriel Dos Reis gdr@codesourcery.com
Sat Dec 29 10:19:00 GMT 2001


Roger Sayle <roger@eyesopen.com> writes:

[...]

| The hopefully obvious patch below fixes the cosf and sinf cases in
| libstdc++-v3/libmath/stubs.c to reflect that strategy.  This approach
| also allows significant simplification in c_shadow/bits/std_cmath.h
| where we can/should always call the __builtin function, this matches
| how things are done in c_std/bits/std_cmath.h.

Currently, the shadowed headers are in unfortunate states on all
plateforms (I beleive) :-( 

|  Alas this independent
| (and possibly controversial?) change is not so trivial so I'll run a
| bootstrap (together with this patch) before submitting it.
| 
| Gaby, is this what you had in mind?

That looks OK.

Thanks,

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Gcc-patches mailing list