public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/21419] [4.0 Regression] Accepts writting to const via asm
Date: Wed, 05 Oct 2005 13:40:00 -0000	[thread overview]
Message-ID: <20051005133958.21838.qmail@sourceware.org> (raw)
In-Reply-To: <bug-21419-6528@http.gcc.gnu.org/bugzilla/>



------- Comment #15 from cvs-commit at gcc dot gnu dot org  2005-10-05 13:39 -------
Subject: Bug 21419

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     bonzini@gcc.gnu.org     2005-10-05 13:39:51

Modified files:
        gcc            : ChangeLog c-typeck.c gimplify.c 
        gcc/cp         : ChangeLog semantics.c 
        gcc/testsuite  : ChangeLog 
        gcc/testsuite/gcc.dg: asm-1.c pr21419.c 
Added files:
        gcc/testsuite/g++.dg/ext: asm7.C asm8.C 
        gcc/testsuite/gcc.dg: asm-pr24146.c 

Log message:
        gcc:
        2005-10-05  Paolo Bonzini  <bonzini@gnu.org>

        PR tree-optimization/21419
        PR tree-optimization/24146
        PR tree-optimization/24151

        * c-typeck.c (readonly_error): Handle USE being lv_asm.
        (build_asm_expr): Call it if outputs are read-only.
        * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.

        cp:
        2005-10-05  Paolo Bonzini  <bonzini@gnu.org>

        PR tree-optimization/21419
        PR tree-optimization/24146
        PR tree-optimization/24151

        * semantics.c (finish_asm_stmt): Call readonly_error if outputs are
        read-only.  Set ASM_VOLATILE_P for asms without outputs.

        testsuite:
        2005-10-05  Paolo Bonzini  <bonzini@gnu.org>

        PR tree-optimization/21419
        PR tree-optimization/24146
        PR tree-optimization/24151

        * g++.dg/ext/asm7.C: New.
        * g++.dg/ext/asm8.C: New.
        * gcc.dg/asm-1.c: Compile on all targets.
        * gcc.dg/asm-pr24146.c: New.
        * gcc.dg/pr21419.c: Adjust error messages.

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.447&r2=2.7592.2.448
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.419.2.13&r2=1.419.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.113.2.13&r2=2.113.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.116&r2=1.4648.2.117
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.463.2.10&r2=1.463.2.11
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.428&r2=1.5084.2.429
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/asm7.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/asm8.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/asm-pr24146.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/asm-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1&r2=1.1.166.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr21419.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1.2.1&r2=1.1.2.2


-- 


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


  parent reply	other threads:[~2005-10-05 13:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-21419-6528@http.gcc.gnu.org/bugzilla/>
2005-10-04 11:12 ` bonzini at gcc dot gnu dot org
2005-10-04 16:53 ` bonzini at gcc dot gnu dot org
2005-10-05 12:17 ` cvs-commit at gcc dot gnu dot org
2005-10-05 12:19 ` bonzini at gcc dot gnu dot org
2005-10-05 13:40 ` cvs-commit at gcc dot gnu dot org [this message]
2005-05-06 14:43 [Bug c/21419] New: [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-29 16:20 ` [Bug c/21419] [4.0 " pinskia at gcc dot gnu dot org
2005-09-30  8:51 ` bonzini at gcc dot gnu dot org
2005-09-30  8:54 ` cvs-commit at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051005133958.21838.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).