diff options
| author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-17 22:15:19 +0000 |
|---|---|---|
| committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-17 22:15:19 +0000 |
| commit | ed5217e6bf374c480de6484fa051cb6cf22bfad1 (patch) | |
| tree | 15e7ea4c8f1348bc170307ff81970ab24a5c7ef9 | |
| parent | 2fd61f51c14f82db3980c0e71881e300fc6ac9fe (diff) | |
| download | ppe42-gcc-ed5217e6bf374c480de6484fa051cb6cf22bfad1.tar.gz ppe42-gcc-ed5217e6bf374c480de6484fa051cb6cf22bfad1.zip | |
* genpreds.c (write_insn_preds_c): Only write out the function
body for regclass_for_constraint if we have register constraints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120879 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/genpreds.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 373ed3f2172..8339ab413ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-01-18 Ben Elliston <bje@au.ibm.com> + + * genpreds.c (write_insn_preds_c): Only write out the function + body for regclass_for_constraint if we have register constraints. + 2007-01-17 Tom Tromey <tromey@redhat.com> * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org. diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 535c9ddde77..93ce942e50a 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -2,7 +2,8 @@ - prototype declarations for operand predicates (tm-preds.h) - function definitions of operand predicates, if defined new-style (insn-preds.c) - Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007 + Free Software Foundation, Inc. This file is part of GCC. @@ -1336,7 +1337,8 @@ write_insn_preds_c (void) if (constraint_max_namelen > 0) { write_lookup_constraint (); - write_regclass_for_constraint (); + if (have_register_constraints) + write_regclass_for_constraint (); write_constraint_satisfied_p (); if (constraint_max_namelen > 1) |

