As of SVN version 110852, I cannot bootstrap IA64 HP-UX compiler.  The compiler
dies while compiling tree-into-ssa.c.  I have a preprocessed cut-down version
of this file that I will attach to this defect.  I proposed a workaround/patch
earlier, it is at http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01288.html.  But
that patch is a workaround for the real bug, loosing the POINTER attribute on
the register.  The attached program compiles with -O2 -fno-move-loop-invariants
but dies with an unrecognized instruction with -O2.  The failure is I get is
below, the instruction is not regognized because reg 385 is not marked as a
ponter.

x.c:122: error: unrecognizable insn:
(insn 76 68 135 3 (set (reg:DI 387)
        (unspec:DI [
                (plus:SI (subreg/s/v:SI (reg:DI 385) 4)
                    (const_int 4 [0x4]))
            ] 24)) -1 (insn_list:REG_DEP_TRUE 142 (nil))
    (expr_list:REG_DEAD (reg:DI 385)
        (expr_list:REG_EQUAL (unspec:DI [
                    (plus:SI (subreg/s/v:SI (reg:DI 385) 4)
                        (const_int 4 [0x4]))
                ] 24)
            (nil))))
x.c:122: internal compiler error: in extract_insn, at recog.c:2075


-- 
           Summary: -fmove-loop-invariants loses POINTER attribute
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
 GCC build triplet: ia64-hp-hpux11.23
  GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26345

Reply via email to