public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg
@ 2003-12-19 16:39 luczajm at polbox dot com
  2003-12-19 16:41 ` [Bug c/13448] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: luczajm at polbox dot com @ 2003-12-19 16:39 UTC (permalink / raw)
  To: gcc-bugs

gcc (not g++) reports "Internal compiler error in emit_move_insn_1, at 
expr.c:3114" when is run with "-O3" and this source:

void funct(const int n)
{
    n++;
}

int main() 
{
    funct(1);
    return 0;
}

Same thing with "gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)" under 
Linux (don't know which falvour) and "gcc version 3.3.1 (mingw special 20030804-
1)" under Windows XP.

-- 
           Summary: gcc 3.3.2, internal error when -O3 and trying to modify
                    function const arg
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: luczajm at polbox dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
@ 2003-12-19 16:41 ` pinskia at gcc dot gnu dot org
  2003-12-20 10:33 ` ebotcazou at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19 16:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 16:37 -------
: Search converges between 2001-09-30-trunk (#39) and 2001-10-07-trunk (#40).

Looks like this is caused by the tree-inliner.
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-19 16:37:42
               date|                            |
            Summary|gcc 3.3.2, internal error   |[3.3/3.4 Regression] gcc
                   |when -O3 and trying to      |3.3.2, internal error when -
                   |modify function const arg   |O3 and trying to modify
                   |                            |function const arg
   Target Milestone|---                         |3.3.3


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
  2003-12-19 16:41 ` [Bug c/13448] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-20 10:33 ` ebotcazou at gcc dot gnu dot org
  2003-12-20 10:56 ` ebotcazou at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-20 10:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-12-20 09:41 -------
This is not valid ISO C since 'n' is not a modifiable lvalue.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
  2003-12-19 16:41 ` [Bug c/13448] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
  2003-12-20 10:33 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-20 10:56 ` ebotcazou at gcc dot gnu dot org
  2003-12-22 18:17 ` ebotcazou at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-20 10:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-12-20 09:43 -------
ice-on-invalid-code PRs are not worth fixing on the 3.3 branch at this point.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
   Target Milestone|3.3.3                       |3.4.0


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (2 preceding siblings ...)
  2003-12-20 10:56 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-22 18:17 ` ebotcazou at gcc dot gnu dot org
  2003-12-22 18:17 ` steven at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-22 18:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-12-22 17:33 -------
Good question.  I don't know very well the current policy wrt warn/pedwarn/error.  
But the compiler does issue an error with -pedantic-errors.


-- 


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (3 preceding siblings ...)
  2003-12-22 18:17 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-22 18:17 ` steven at gcc dot gnu dot org
  2003-12-26  1:37 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-22 18:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-12-22 17:08 -------
If this is invalid code, why then don't we issue an error instead of a 
warning? 

-- 


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


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

* [Bug c/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (4 preceding siblings ...)
  2003-12-22 18:17 ` steven at gcc dot gnu dot org
@ 2003-12-26  1:37 ` pinskia at gcc dot gnu dot org
  2004-01-10 22:56 ` [Bug target/13448] " pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-26  1:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-26 00:35 -------
#2  0x0020e530 in emit_move_insn_1 (x=0x40d8c410, y=0x40d8c420) at /Users/
pinskia/src/gcc-checkin/src/gcc/expr.c:3090

(gdb) p debug_rtx(x)
(const_int 1 [0x1])
$2 = void
(gdb) p debug_rtx(y)
(const_int 2 [0x2])

Trying to move from a constant to a constant is an error.

-- 


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


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

* [Bug target/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (5 preceding siblings ...)
  2003-12-26  1:37 ` pinskia at gcc dot gnu dot org
@ 2004-01-10 22:56 ` pinskia at gcc dot gnu dot org
  2004-01-11  6:49 ` ebotcazou at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-10 22:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-10 22:56 -------
Eric does your patch which also fixes PR 13472 and PR 13634 fix this one too?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
          Component|c                           |target


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


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

* [Bug target/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (6 preceding siblings ...)
  2004-01-10 22:56 ` [Bug target/13448] " pinskia at gcc dot gnu dot org
@ 2004-01-11  6:49 ` ebotcazou at gcc dot gnu dot org
  2004-01-11  6:59 ` [Bug optimization/13448] " pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-01-11  6:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-01-11 06:49 -------
No, the compiler dies in the middle end here, while my patch affects reload.


-- 


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


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

* [Bug optimization/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (7 preceding siblings ...)
  2004-01-11  6:49 ` ebotcazou at gcc dot gnu dot org
@ 2004-01-11  6:59 ` pinskia at gcc dot gnu dot org
  2004-01-12  9:41 ` steven at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11  6:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-11 06:59 -------
I know this is fixed on the tree-ssa already and this invalid code so moving to the tree-ssa and 
suspending it, if someone wants it fixed for 3.4 please move it back 3.4 but I see no reason why it 
should be block the branching or release of 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
          Component|target                      |optimization
   Target Milestone|3.4.0                       |tree-ssa


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


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

* [Bug optimization/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (8 preceding siblings ...)
  2004-01-11  6:59 ` [Bug optimization/13448] " pinskia at gcc dot gnu dot org
@ 2004-01-12  9:41 ` steven at gcc dot gnu dot org
  2004-01-12 14:51 ` giovannibajo at libero dot it
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-01-12  9:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-01-12 09:41 -------
Suspended because WONTFIX for 3.4 and FIXED for tree-ssa.  Pinskia said he 
suspended it, but he apparently forgot to really do so :-) 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED


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


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

* [Bug optimization/13448] [3.3/3.4 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (9 preceding siblings ...)
  2004-01-12  9:41 ` steven at gcc dot gnu dot org
@ 2004-01-12 14:51 ` giovannibajo at libero dot it
  2004-01-31  3:36 ` [Bug optimization/13448] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-12 14:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-12 14:51 -------
Let's note also that GCC emits a meaningful error message before ICEing. 
Anyway, I don't agree with the suspended state since it's a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW
   Last reconfirmed|2003-12-19 16:37:42         |2004-01-12 14:51:06
               date|                            |


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


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

* [Bug optimization/13448] [3.3/3.4/3.5 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (10 preceding siblings ...)
  2004-01-12 14:51 ` giovannibajo at libero dot it
@ 2004-01-31  3:36 ` pinskia at gcc dot gnu dot org
  2004-02-03  8:47 ` [Bug middle-end/13448] " ebotcazou at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31  3:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|tree-ssa                    |3.4.0


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


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

* [Bug middle-end/13448] [3.3/3.4/3.5 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (11 preceding siblings ...)
  2004-01-31  3:36 ` [Bug optimization/13448] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
@ 2004-02-03  8:47 ` ebotcazou at gcc dot gnu dot org
  2004-02-28  2:49 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-02-03  8:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-02-03 08:47 -------
This is really a middle-end issue (bad interaction between tree-inliner and RTL
expander).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|optimization                |middle-end


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


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

* [Bug middle-end/13448] [3.3/3.4/3.5 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (12 preceding siblings ...)
  2004-02-03  8:47 ` [Bug middle-end/13448] " ebotcazou at gcc dot gnu dot org
@ 2004-02-28  2:49 ` mmitchel at gcc dot gnu dot org
  2004-02-29 23:34 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-28  2:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           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=13448


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

* [Bug middle-end/13448] [3.3/3.4/3.5 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (13 preceding siblings ...)
  2004-02-28  2:49 ` mmitchel at gcc dot gnu dot org
@ 2004-02-29 23:34 ` cvs-commit at gcc dot gnu dot org
  2004-02-29 23:43 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-29 23:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-29 23:34 -------
Subject: Bug 13448

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2004-02-29 23:34:55

Modified files:
	gcc            : ChangeLog c-tree.h c-typeck.c tree-inline.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg: always_inline.c 
Added files:
	gcc/testsuite/gcc.dg: inline-5.c always_inline2.c 
	                      always_inline3.c 

Log message:
	PR middle-end/13448
	* c-tree.h (readonly_warning): Rename to ...
	(readonly_error): ... this.
	* c-typeck.c (build_unary_op): Adjust accordingly.
	(readonly_warning): Rename to ...
	(readonly_error): ... this and issue errors, not warnings.
	(build_modify_expr): Call readonly_error, not readonly_warning.
	(c_expand_asm_operands): Likewise.
	* tree-inline.c (optimize_inline_calls): Do not inline functions
	after errors have occurred.
	
	PR middle-end/13448
	* gcc.dg/inline-5.c: New test.
	* gcc.dg/always-inline.c: Split out tests into ...
	* gcc.dg/always-inline2.c: ... this and ...
	* gcc.dg/always-inline3.c: ... this.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.267&r2=2.2326.2.268
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.136&r2=1.136.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.272.2.2&r2=1.272.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.90.4.3&r2=1.90.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.113&r2=1.3389.2.114
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/inline-5.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline3.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1&r2=1.1.4.1



-- 


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


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

* [Bug middle-end/13448] [3.3/3.4/3.5 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (14 preceding siblings ...)
  2004-02-29 23:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-29 23:43 ` cvs-commit at gcc dot gnu dot org
  2004-02-29 23:44 ` [Bug middle-end/13448] [3.3 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-29 23:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-29 23:43 -------
Subject: Bug 13448

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-02-29 23:43:29

Modified files:
	gcc            : ChangeLog c-tree.h c-typeck.c tree-inline.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg: always_inline.c 
Added files:
	gcc/testsuite/gcc.dg: inline-5.c always_inline2.c 
	                      always_inline3.c 

Log message:
	PR middle-end/13448
	* c-tree.h (readonly_warning): Rename to ...
	(readonly_error): ... this.
	* c-typeck.c (build_unary_op): Adjust accordingly.
	(readonly_warning): Rename to ...
	(readonly_error): ... this and issue errors, not warnings.
	(build_modify_expr): Call readonly_error, not readonly_warning.
	(c_expand_asm_operands): Likewise.
	* tree-inline.c (optimize_inline_calls): Do not inline functions
	after errors have occurred.
	
	PR middle-end/13448
	* gcc.dg/inline-5.c: New test.
	* gcc.dg/always-inline.c: Split out tests into ...
	* gcc.dg/always-inline2.c: ... this and ...
	* gcc.dg/always-inline3.c: ... this.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2978&r2=2.2979
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&r1=1.140&r2=1.141
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.281&r2=1.282
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&r1=1.95&r2=1.96
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3557&r2=1.3558
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/inline-5.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline2.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline3.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/always_inline.c.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


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

* [Bug middle-end/13448] [3.3 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (15 preceding siblings ...)
  2004-02-29 23:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-29 23:44 ` mmitchel at gcc dot gnu dot org
  2004-03-12 22:43 ` cvs-commit at gcc dot gnu dot org
  2004-03-12 22:48 ` gdr at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-29 23:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-02-29 23:44 -------
Fixed in GCC 3.4 and GCC 3.5.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[3.3/3.4/3.5 Regression] gcc|[3.3 Regression] gcc 3.3.2,
                   |3.3.2, internal error when -|internal error when -O3 and
                   |O3 and trying to modify     |trying to modify function
                   |function const arg          |const arg
   Target Milestone|3.4.0                       |3.3.4


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


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

* [Bug middle-end/13448] [3.3 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (16 preceding siblings ...)
  2004-02-29 23:44 ` [Bug middle-end/13448] [3.3 " mmitchel at gcc dot gnu dot org
@ 2004-03-12 22:43 ` cvs-commit at gcc dot gnu dot org
  2004-03-12 22:48 ` gdr at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-12 22:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-12 22:43 -------
Subject: Bug 13448

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	gdr@gcc.gnu.org	2004-03-12 22:43:33

Modified files:
	gcc            : ChangeLog c-tree.h c-typeck.c tree-inline.c 

Log message:
	Backport
	2004-02-27  Mark Mitchell  <mark@codesourcery.com>
	PR middle-end/13448
	* c-tree.h (readonly_warning): Rename to ...
	(readonly_error): ... this.
	* c-typeck.c (build_unary_op): Adjust accordingly.
	(readonly_warning): Rename to ...
	(readonly_error): ... this and issue errors, not warnings.
	(build_modify_expr): Call readonly_error, not
	readonly_warning.
	(c_expand_asm_operands): Likewise.
	* tree-inline.c (optimize_inline_calls): Do not inline
	functions after errors have occurred.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.933&r2=1.16114.2.934
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.109&r2=1.109.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.213.2.12&r2=1.213.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.38.2.11&r2=1.38.2.12



-- 


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


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

* [Bug middle-end/13448] [3.3 Regression] gcc 3.3.2, internal error when -O3 and trying to modify function const arg
  2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
                   ` (17 preceding siblings ...)
  2004-03-12 22:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-12 22:48 ` gdr at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-03-12 22:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-03-12 22:48 -------
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01076.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-03-12 22:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-19 16:39 [Bug c/13448] New: gcc 3.3.2, internal error when -O3 and trying to modify function const arg luczajm at polbox dot com
2003-12-19 16:41 ` [Bug c/13448] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-20 10:33 ` ebotcazou at gcc dot gnu dot org
2003-12-20 10:56 ` ebotcazou at gcc dot gnu dot org
2003-12-22 18:17 ` ebotcazou at gcc dot gnu dot org
2003-12-22 18:17 ` steven at gcc dot gnu dot org
2003-12-26  1:37 ` pinskia at gcc dot gnu dot org
2004-01-10 22:56 ` [Bug target/13448] " pinskia at gcc dot gnu dot org
2004-01-11  6:49 ` ebotcazou at gcc dot gnu dot org
2004-01-11  6:59 ` [Bug optimization/13448] " pinskia at gcc dot gnu dot org
2004-01-12  9:41 ` steven at gcc dot gnu dot org
2004-01-12 14:51 ` giovannibajo at libero dot it
2004-01-31  3:36 ` [Bug optimization/13448] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
2004-02-03  8:47 ` [Bug middle-end/13448] " ebotcazou at gcc dot gnu dot org
2004-02-28  2:49 ` mmitchel at gcc dot gnu dot org
2004-02-29 23:34 ` cvs-commit at gcc dot gnu dot org
2004-02-29 23:43 ` cvs-commit at gcc dot gnu dot org
2004-02-29 23:44 ` [Bug middle-end/13448] [3.3 " mmitchel at gcc dot gnu dot org
2004-03-12 22:43 ` cvs-commit at gcc dot gnu dot org
2004-03-12 22:48 ` gdr 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).