This is the mail archive of the gcc-bugs@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]

[Bug target/15535] New: [3.4 regression][sh-linux] ICE with -m4 -O2


Attached code does not compile with '-m4 -O2' for sh-linux target.
It is correctry compiled with gcc-3.2.3.

$ sh-linux-gcc -m4 -O2 -c bar.c
bar.c: In function `bar':
bar.c:11: error: insn does not satisfy its constraints:
(insn:HI 26 13 14 1 (set (reg/v:SI 70 fr6 [orig:162 y ] [162])
        (reg:SI 147 t)) 123 {movsi_ie} (nil)
    (nil))
bar.c:11: internal compiler error: in reload_cse_simplify_operands, at 
postreload.c:378

double bar (int x, int z1, double z2)
{
	int y;

	if (z1 > z2)
		y = z1 + z2;
	else
		y = 0;

	return ((double) x + y);
}

-- 
           Summary: [3.4 regression][sh-linux] ICE with -m4 -O2
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sugioka at itonet dot co dot jp
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh-unknown-linux-gnu


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


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