On Thu, Jan 10, 2008 at 08:59:59AM +0000, Robert Watson wrote: >In the past, we've had several subtle bugs crop up as a result of changing >to ANSI C function prototypes, which no longer automatically promote >arguments to int from shorter types
I hadn't considered that but it _is_ the sort of thing that comparing object files would detect - if you make a supposedly stylistic change and the generated code changes then it's time to take a much more careful look into what you are doing. > (I think it's that way around). That would be correct - I know Sun Studio 11 (at least) warns about the situation where mixing ANSI and K&R prototypes/definitions causes type mismatches due to implicit promotion. I thought gcc did as well. -- Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour.
pgpLsrB57TT3b.pgp
Description: PGP signature