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: [PATCH] Fix -m64 on powerpc-darwin for pic code


Andrew Pinski wrote:


On Nov 2, 2004, at 1:23 AM, Stan Shebs wrote:


Andrew Pinski wrote:

Even for the following simple code we ICE:
int i = 0;
void f(void)
{
 i = 0;
}

Although the ideas of the patch seem generally sensible, I'm curious
how it is you're getting an ICE; I'm trying various combos of flags,
can't get my sources-updated-this-morning build to choke on this bit.

Also, if you're going to do this sort of churn, might as well take the
opportunity to move the macho patterns to darwin.md.

From a clean tree updated last night: [zhivago:gcc/objdir/gcc] pinskia% ./cc1 -fPIC t.c -m64 f

t.c: In function 'f':
t.c:5: error: unrecognizable insn:
(insn 29 28 30 (set (reg:DI 65 lr)
        (unspec:SI [
                (symbol_ref:DI ("<pic base>") [flags 0x180])
            ] 15)) -1 (nil)
    (expr_list:REG_MAYBE_DEAD (const_int 0 [0x0])
        (nil)))

I confess! I'm a dirty software hoarder, I've had a patch for this in my tree for a week, forgot about it while working on ABI problems. So yeah, your fix seems as good as any; do the darwin.md moves and let's get it all into the mainline. Post the updated patch too please, so I can see what the testsuite on my bleeding-edge Tiger G5 thinks of it.

Stan


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