This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Clean up dwarf2out.c
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: Anatoly Sokolov <aesok at post dot ru>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Apr 2010 14:08:17 +0200
- Subject: Re: Clean up dwarf2out.c
- References: <1904440267.20100430002827@post.ru> <w2m6c33472e1004300251ga1a2dc7ek70cb47fcd26af942@mail.gmail.com> <s2o84fc9c001004300254xe20c8972kd98435e1104de1a@mail.gmail.com> <o2g6c33472e1004300353o7d1e31dcl9b789c38ec741f23@mail.gmail.com>
On Fri, Apr 30, 2010 at 12:53 PM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> On 30 April 2010 11:54, Richard Guenther <richard.guenther@gmail.com> wrote:
>> 2010/4/30 Manuel López-Ibáñez <lopezibanez@gmail.com>:
>>> 2010/4/29 Anatoly Sokolov <aesok@post.ru>:
>>>> Hi,
>>>>
>>>> ?This patch add rtx_to_double_int functions in the GCC and do clean up
>>>> dwarf2out.c.
>>>>
>>>> ?Bootstrapped/regtested on x86_64-unknown-linux-gnu, OK for mainline?
>>>>
>>>> ? ? ? ?* double-int.h (rtx_to_double_int): Declare.
>>>> ? ? ? ?* double-int.c: Include rtl.h.
>>>> ? ? ? ?(rtx_to_double_int): New function.
>>>
>>> Is double-int.h using rtx.h or the other way around? For modularity's
>>> sake, this function should go to rtx.h, so you should not need to add
>>> rtl.h to double-int.c.
>>
>> It follows existing practice with tree_to_double_int.
>
> Given GCC's modularity that means nothing. Moreover, double-int.c may
> be part of the tree module, which is used by rtl.h interface anyway.
> That doesn't mean that double-int must depend on rtl.h.
>
> Either we start to get serious about this or we give up now.
Well, I have nothing against moving tree parts to tree.[ch] and
rtl parts to rtl.[ch].
Feel free to do that together with this patch or as a followup.
Thanks,
Richard.
> Cheers,
>
> Manuel.
>