]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/13448 (gcc 3.3.2, internal error when -O3 and trying to modify funct...
authorMark Mitchell <mark@codesourcery.com>
Sun, 29 Feb 2004 23:43:29 +0000 (23:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 29 Feb 2004 23:43:29 +0000 (23:43 +0000)
commitc5b6f18e7a3d5a9269704287ca91483d60476e66
tree79f67c731f4bdf068313a3e2b873f2feb80a0d5d
parent39876352716051ef43f55ba526b907ae86ae55a9
re PR middle-end/13448 (gcc 3.3.2, internal error when -O3 and trying to modify function const arg)

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.

From-SVN: r78682
gcc/ChangeLog
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/always_inline.c
gcc/testsuite/gcc.dg/always_inline2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/always_inline3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-5.c [new file with mode: 0644]
gcc/tree-inline.c
This page took 0.064446 seconds and 5 git commands to generate.