This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/50571] [4.6/4.7 Regression] Undesirable folding in "m" constrained asm operands


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-09-30 15:01:31 UTC ---
Author: jakub
Date: Fri Sep 30 15:01:27 2011
New Revision: 179389

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179389
Log:
    PR inline-asm/50571
    * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
    input constraints allow mem and not reg, pass true instead of
    false as second argument to maybe_fold_reference.

    * gcc.dg/pr50571.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr50571.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]