This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC/A: A generic decompose_address routine


On Thu, Oct 25, 2012 at 12:57 PM, Richard Sandiford
<rdsandiford@googlemail.com> wrote:
> This patch is an attempt at the routine sketched here:
>
>     http://gcc.gnu.org/ml/gcc-patches/2012-10/msg01016.html
>
> for decomposing addresses into constituent parts.  It applies
> on top of the patches I sent out earlier today.  To summarise
> that message, the main point is to have an address description
> in which we know how the individual parts relate to one another.
>
> If the patch looks OK, I'd like to try doing the same for IRA.
> Maybe other passes could use the routines too; I'm not sure.
>
> An alternative to having a generic routine would be to add a target hook.
> However, the whole target address interface could do with some clean-up,
> so I'd rather not add a new hook until either (a) it becomes absolutely
> necessary, because of some target weirdness I don't know about or
> (b) there's a coordinated plan to handle things like legitimacy,
> base classes, and index classes.
>
> I'm hoping this will help with the x32 problems that HJ is seeing.
> Like Vlad, I don't have a set-up to try for certain, but I tried

Do you have a git branch I can try?  When I applied your patch on
the current trunk, I got

patching file Makefile.in
patching file rtl.h
patching file rtlanal.c
patching file lra-constraints.c
Hunk #3 FAILED at 464.
Hunk #4 succeeded at 1319 (offset -22 lines).
Hunk #5 succeeded at 1505 (offset -22 lines).
Hunk #6 FAILED at 2380.
Hunk #7 FAILED at 2499.
Hunk #8 succeeded at 2468 (offset -88 lines).
Hunk #9 FAILED at 2583.
Hunk #10 FAILED at 2648.
Hunk #11 succeeded at 2595 with fuzz 1 (offset -77 lines).
Hunk #12 FAILED at 2690.
Hunk #13 FAILED at 2716.
7 out of 13 hunks FAILED -- saving rejects to file lra-constraints.c.rej

Here are instructions how to build x32 glibc:

http://sourceware.org/glibc/wiki/x32

You only need x32 glibc to enable GCC x32 multilib on
Linux/x86-64.

Thanks.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]