summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-20 09:15:43 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-20 09:15:43 +0000
commitd9595a8c1634960fcbeb19ac539d65a17baaa4e6 (patch)
treea9c18e21b19d7e54614cb457343b3cedb422d6bd /gcc/opts.c
parent333f0c1df127e1619402dade6ccbb3751db0367b (diff)
downloadgcc-d9595a8c1634960fcbeb19ac539d65a17baaa4e6.tar.gz
gcc/
* doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define. (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES. * target.h (gcc_target): Add ira_cover_classes. * ira.c: Remove IRA_COVER_CLASSES guards. (setup_cover_and_important_classes): Use targetm.ira_cover_classes instead of IRA_COVER_CLASSES. (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard. (setup_class_translate): Likewise. (setup_reg_class_intersect_union): Likewise. (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a test of targetm.ira_cover_classes. * opts.c (decode_options): Use targetm.ira_cover_classes instead of IRA_COVER_CLASSES. * target-def.h (TARGET_IRA_COVER_CLASSES): Define. (TARGET_INITIALIZER): Include it. * targhooks.h (default_ira_cover_classes): Declare. * targhooks.c (default_ira_cover_classes): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140512 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index b45c0c53a57..6e210ea7ceb 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -870,10 +870,9 @@ decode_options (unsigned int argc, const char **argv)
}
}
-#ifdef IRA_COVER_CLASSES
/* Use IRA if it is implemented for the target. */
- flag_ira = 1;
-#endif
+ if (targetm.ira_cover_classes)
+ flag_ira = 1;
/* -O1 optimizations. */
opt1 = (optimize >= 1);
@@ -1097,13 +1096,11 @@ decode_options (unsigned int argc, const char **argv)
if (!flag_sel_sched_pipelining)
flag_sel_sched_pipelining_outer_loops = 0;
-#ifndef IRA_COVER_CLASSES
- if (flag_ira)
+ if (flag_ira && !targetm.ira_cover_classes)
{
inform (input_location, "-fira does not work on this architecture");
flag_ira = 0;
}
-#endif
/* Save the current optimization options if this is the first call. */
if (first_time_p)