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]

[PTR-PLUS] Fix x86_64 the most I can without a machine


Hi,
  This patch fixes x86_64 bootstrap as much as I can without a machine to 
test it on.  The problem is the normal issue with PLUS_EXPR being used for 
pointer addition which is invalid now.  This changes those uses of 
PLUS_EXPR to POINTER_PLUS_EXPR.  I tested this by compiling final.i and 
diagnostic.i (both generated from x86 code of GCC from around a year ago 
or so) since both of them have va_args in them.

Committed to the branch as this fixes the best I can x86_64-linux-gnu.

Richard, if you want, can you bootstrap this branch on x86-linux-gnu and 
if it passes run SPEC?

Thanks,
Andrew Pinski

ChangeLog:

        * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
        for the pointer addition and also use size_int/sizetype
        for the offset.
        (ix86_gimplify_va_arg): Likewise.


Attachment: fixx86-64.diff.txt
Description: Text document


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