[patch] More include cleanups

Richard Guenther richard.guenther@gmail.com
Fri May 21 11:43:00 GMT 2010


On Fri, May 21, 2010 at 1:38 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> On Fri, May 21, 2010 at 1:29 PM, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> The main reason I am concerned is that real.h pulls in
>> all of gmp.h, mpfr.h and mpc.h (and machmode.h which is generated).
>
> Well, yes that is not ideal.
> On the other hand: This already happened before, too, via rtl.h
>
> The problem is that real.h includes those files. I objected to t hat
> at the time! IMHO gmp.h/mpfr.h/mpc.c should be included in those files
> that use them. I think that's only builtins.c and fold-const.c.  I can
> work on this as a follow-up if you like.

That would be nice.

Thanks,
Richard.



More information about the Gcc-patches mailing list