This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Do not refer directly to gen_lowpart_xxx
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: bonzini at gnu dot org (Paolo Bonzini)
- Cc: zack at codesourcery dot com (Zack Weinberg), gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Feb 2004 19:17:28 +0000 (GMT)
- Subject: Re: [PATCH] Do not refer directly to gen_lowpart_xxx
> I tried that but it is more of a mess than this way. For example you should
> duplicate code in rest_of_handle_cse2. It may be feasible (but is it a good
> change?) if you move rest_of_handle_xxx to the files that actually implement
> the pass; otherwise you end up with very deep implementation detail in
> toplev.c.
Well, you could just have functions to manipulate gen_lowpart in emit-rtl.c
that are called from other files like toplev.c .