------- Comment #9 from ghazi at gcc dot gnu dot org 2009-11-05 02:55 ------- (In reply to comment #8) > > Say I have a silly question, how is gmp.h getting pulled into gcc.c in the > > first place? It's supposed to come in via real.h which should only get > > included by middle-end files linking with real.o ...
So the sequence is gcc.c includes flags.h which includes real.h. That last include was introduced by this patch: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00716.html IMHO, flags.h should not include real.h if things like gcc.c will include it and not link against real.o and -lgmp etc. But I don't know which if any targets now depend on this include. I tried x86_64-linux-gnu and I was able to link xgcc and cc1. But some other target may have a problem. Perhaps Ulrich can explain why he chose to add that include so we can see if there's another way to accomplish the goal. -- ghazi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uweigand at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41771