Commit 68c1abf1 by Mark Mitchell Committed by Mark Mitchell

re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in…

re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c)

	PR 22171
	* tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
	before use.

	PR 22171
	* gcc.dg/tree-ssa/pr22171.c: New test.

From-SVN: r101292
parent 305a1321
2005-06-24 Mark Mitchell <mark@codesourcery.com>
PR 22171
* tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
before use.
2005-06-23 Mark Mitchell <mark@codesourcery.com>
PR 22000
......
2005-06-24 Mark Mitchell <mark@codesourcery.com>
PR 22171
* gcc.dg/tree-ssa/pr22171.c: New test.
2005-06-24 Feng Wang <fengwang@nudt.edu.cn>
* gfortran.dg/simplify_modulo.f90: New.
......
/* { dg-options "-O2" } */
static unsigned int old_serial_port_irq[10];
static struct uart_8250_port {
volatile unsigned int slock;
unsigned int irq;
} serial8250_ports[10];
static __inline__ __attribute__((always_inline)) int irq_canonicalize(int irq)
{
return ((irq == 2) ? 9 : irq);
}
void serial8250_isa_init_ports(void)
{
struct uart_8250_port *up;
int i;
for (i = 0, up = serial8250_ports; i < 10; i++, up++)
up->irq = irq_canonicalize(old_serial_port_irq[i]);
}
int main(void)
{
serial8250_isa_init_ports();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment