This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Q: middle-end problem when variadic builtins promote float to double
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 6 Jul 2007 21:24:59 +0000 (UTC)
- Subject: Re: Q: middle-end problem when variadic builtins promote float to double
- References: <Pine.GSO.4.58.0707061701230.13921@caipclassic.rutgers.edu>
On Fri, 6 Jul 2007, Kaveh R. GHAZI wrote:
> So how do we detect or work around this promotion issue and discriminate
> between the case where a float is promoted because of the variadic
> prototype vs a user supplied cast or other user code?
I think we may need to tag these builtins in some way to indicate to the
front ends that arguments shouldn't be promoted. (With some other
builtins, such as __builtin_printf, the normal C promotion rules should be
applied.)
--
Joseph S. Myers
joseph@codesourcery.com