diff options
author | Ben Elliston <bje@au.ibm.com> | 2007-01-17 22:15:19 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2007-01-18 09:15:19 +1100 |
commit | 495fb8cdd8bda6162916d2da559c5af690cb1258 (patch) | |
tree | 15e7ea4c8f1348bc170307ff81970ab24a5c7ef9 /gcc/genpreds.c | |
parent | 679c0f9a4c0344309ebe7d277dac0ac1745c1db1 (diff) | |
download | gcc-495fb8cdd8bda6162916d2da559c5af690cb1258.zip gcc-495fb8cdd8bda6162916d2da559c5af690cb1258.tar.gz gcc-495fb8cdd8bda6162916d2da559c5af690cb1258.tar.bz2 |
genpreds.c (write_insn_preds_c): Only write out the function body for regclass_for_constraint if...
* genpreds.c (write_insn_preds_c): Only write out the function
body for regclass_for_constraint if we have register constraints.
From-SVN: r120879
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r-- | gcc/genpreds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 535c9dd..93ce942 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) |