diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-08-03 17:33:37 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-08-03 17:33:37 -0400 |
commit | 377017c49155f173328262a193d66acdd7c33e73 (patch) | |
tree | 604f3967593db112cb0186bec55d6aa50f56491f /gcc/optabs.c | |
parent | 9c951f801eb46c7d39a1ba1f9bf7ce473edca22b (diff) | |
download | gcc-377017c49155f173328262a193d66acdd7c33e73.zip gcc-377017c49155f173328262a193d66acdd7c33e73.tar.gz gcc-377017c49155f173328262a193d66acdd7c33e73.tar.bz2 |
(code_to_optab): New variable.
(init_optab): Initialize it.
From-SVN: r5062
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 1dd9b82..71e29a7 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -91,6 +91,9 @@ enum insn_code fixtab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2]; enum insn_code fixtrunctab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2]; enum insn_code floattab[NUM_MACHINE_MODES][NUM_MACHINE_MODES][2]; +/* Contains the optab used for each rtx code. */ +optab code_to_optab[NUM_RTX_CODE + 1]; + /* SYMBOL_REF rtx's for the library functions that are called implicitly and not via optabs. */ @@ -3404,6 +3407,10 @@ init_optab (code) op->handlers[i].insn_code = CODE_FOR_nothing; op->handlers[i].libfunc = 0; } + + if (code != UNKNOWN) + code_to_optab[(int) code] = op; + return op; } |