public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
@ 2005-06-24 12:18 mikpe at csd dot uu dot se
  2005-06-24 13:02 ` [Bug tree-optimization/22171] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: mikpe at csd dot uu dot se @ 2005-06-24 12:18 UTC (permalink / raw)
  To: gcc-bugs

/*
 * gcc401bug.c
 * Written by Mikael Pettersson, mikpe@csd.uu.se, 2005-06-24.
 * Adapted from linux-2.6.12/drivers/serial/8250.c.
 *
 * gcc-4.0-20050623 bootstrapped on i686-pc-linux-gnu
 * gets an ICE when compiling this program at -O2:
 *
 * gcc401bug.c: In function 'serial8250_isa_init_ports':
 * gcc401bug.c:30: internal compiler error: Segmentation fault
 *
 * Notes:
 * - gcc-4.0.1-20050616 does not have this bug.
 * - Using -O1 prevents the ICE.
 */

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;
}

-- 
           Summary: gcc-4.0-20050623 internal compiler error in
                    linux/drivers/serial/8250.c
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikpe at csd dot uu dot se
                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: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
@ 2005-06-24 13:02 ` pinskia at gcc dot gnu dot org
  2005-06-24 13:03 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-24 13:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-24 13:01 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|regression                  |tree-optimization
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-24 13:01:35
               date|                            |
            Summary|gcc-4.0-20050623 internal   |[4.0/4.1 Regression] gcc-
                   |compiler error in           |4.0-20050623 internal
                   |linux/drivers/serial/8250.c |compiler error in
                   |                            |linux/drivers/serial/8250.c
   Target Milestone|---                         |4.0.1


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
  2005-06-24 13:02 ` [Bug tree-optimization/22171] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-06-24 13:03 ` pinskia at gcc dot gnu dot org
  2005-06-24 13:05 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-24 13:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-24 13:02 -------
Caused by:
        PR 22000
        * tree-ssa-operands.c (get_expr_operands): Check the volatility of
        the FIELD_DECL and set s_ann->has_volatile_ops accordingly.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
  2005-06-24 13:02 ` [Bug tree-optimization/22171] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-06-24 13:03 ` pinskia at gcc dot gnu dot org
@ 2005-06-24 13:05 ` mmitchel at gcc dot gnu dot org
  2005-06-24 13:09 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-06-24 13:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-06-24 13:04 -------
I am saddenned.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (2 preceding siblings ...)
  2005-06-24 13:05 ` mmitchel at gcc dot gnu dot org
@ 2005-06-24 13:09 ` mmitchel at gcc dot gnu dot org
  2005-06-24 13:12 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-06-24 13:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-06-24 13:09 -------
On the GCC 4.0 branch, this test still works fine.

On the GCC mainline, s_ann is NULL.  I do see that add_stmt_operand checks s_ann
for NULL before using it; I will do the same.

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (3 preceding siblings ...)
  2005-06-24 13:09 ` mmitchel at gcc dot gnu dot org
@ 2005-06-24 13:12 ` mmitchel at gcc dot gnu dot org
  2005-06-24 13:24 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-06-24 13:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-06-24 13:12 -------
I don't know what I'm talking about with 4.0.

Anyhow, fix coming.

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (4 preceding siblings ...)
  2005-06-24 13:12 ` mmitchel at gcc dot gnu dot org
@ 2005-06-24 13:24 ` cvs-commit at gcc dot gnu dot org
  2005-06-24 13:28 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-24 13:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-24 13:24 -------
Subject: Bug 22171

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	mmitchel@gcc.gnu.org	2005-06-24 13:24:00

Modified files:
	gcc            : ChangeLog tree-ssa-operands.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/tree-ssa: pr22171.c 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.292&r2=2.7592.2.293
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-operands.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.63.2.1&r2=2.63.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.247&r2=1.5084.2.248
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr22171.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (5 preceding siblings ...)
  2005-06-24 13:24 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-24 13:28 ` cvs-commit at gcc dot gnu dot org
  2005-06-24 13:47 ` pluto at agmk dot net
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-24 13:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-24 13:27 -------
Subject: Bug 22171

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2005-06-24 13:27:26

Modified files:
	gcc            : ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/tree-ssa: pr22171.c 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9216&r2=2.9217
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5681&r2=1.5682
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr22171.c.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (6 preceding siblings ...)
  2005-06-24 13:28 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-24 13:47 ` pluto at agmk dot net
  2005-06-24 13:52 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-06-24 13:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pluto at agmk dot net  2005-06-24 13:47 -------
(In reply to comment #7) 
 
> (...) 
> Log message: 
>         PR 22171 
>         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL 
>         before use. 
 
You've missed commit for the tree-ssa-operands.c:mainline. 
 

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (7 preceding siblings ...)
  2005-06-24 13:47 ` pluto at agmk dot net
@ 2005-06-24 13:52 ` cvs-commit at gcc dot gnu dot org
  2005-06-26 16:45 ` pinskia at gcc dot gnu dot org
  2005-06-26 17:52 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-24 13:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-24 13:52 -------
Subject: Bug 22171

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2005-06-24 13:52:36

Modified files:
	gcc            : tree-ssa-operands.c 

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

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-operands.c.diff?cvsroot=gcc&r1=2.88&r2=2.89



-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (8 preceding siblings ...)
  2005-06-24 13:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-26 16:45 ` pinskia at gcc dot gnu dot org
  2005-06-26 17:52 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-26 16:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 16:45 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug tree-optimization/22171] [4.0/4.1 Regression] gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c
  2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
                   ` (9 preceding siblings ...)
  2005-06-26 16:45 ` pinskia at gcc dot gnu dot org
@ 2005-06-26 17:52 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-26 17:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 17:52 -------
*** Bug 22194 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |themis_hv at yahoo dot co
                   |                            |dot uk


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-06-26 17:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 12:18 [Bug regression/22171] New: gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c mikpe at csd dot uu dot se
2005-06-24 13:02 ` [Bug tree-optimization/22171] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-06-24 13:03 ` pinskia at gcc dot gnu dot org
2005-06-24 13:05 ` mmitchel at gcc dot gnu dot org
2005-06-24 13:09 ` mmitchel at gcc dot gnu dot org
2005-06-24 13:12 ` mmitchel at gcc dot gnu dot org
2005-06-24 13:24 ` cvs-commit at gcc dot gnu dot org
2005-06-24 13:28 ` cvs-commit at gcc dot gnu dot org
2005-06-24 13:47 ` pluto at agmk dot net
2005-06-24 13:52 ` cvs-commit at gcc dot gnu dot org
2005-06-26 16:45 ` pinskia at gcc dot gnu dot org
2005-06-26 17:52 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).