diff options
| author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-19 21:22:31 +0000 |
|---|---|---|
| committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-19 21:22:31 +0000 |
| commit | 1b575dc71d765379aa36d4de406c8da4b17c3a5c (patch) | |
| tree | 919ac27d6e44a731fb1b62bb3a893ed4c0dcd946 | |
| parent | 33bc61c87f48f7b5cf8853431e0fcfd5d24ad3cd (diff) | |
| download | ppe42-gcc-1b575dc71d765379aa36d4de406c8da4b17c3a5c.tar.gz ppe42-gcc-1b575dc71d765379aa36d4de406c8da4b17c3a5c.zip | |
PR rtl-optimization/21299
* reload1.c (reload): Purge invalid ASMs in the final pass.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117061 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/reload1.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d8aeffa59a..835c93d3e4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-09-19 Steven Bosscher <steven@gcc.gnu.org> + + PR rtl-optimization/21299 + * reload1.c (reload): Purge invalid ASMs in the final pass. + 2006-09-19 Steve Ellcey <sje@cup.hp.com> PR 28490 diff --git a/gcc/reload1.c b/gcc/reload1.c index 04f64488566..58f77cba520 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1167,6 +1167,20 @@ reload (rtx first, int global) { rtx *pnote; + /* Clean up invalid ASMs so that they don't confuse later passes. + See PR 21299. */ + if (asm_noperands (PATTERN (insn)) >= 0) + { + extract_insn (insn); + if (!constrain_operands (1)) + { + error_for_asm (insn, + "%<asm%> operand has impossible constraints"); + delete_insn (insn); + continue; + } + } + if (CALL_P (insn)) replace_pseudos_in (& CALL_INSN_FUNCTION_USAGE (insn), VOIDmode, CALL_INSN_FUNCTION_USAGE (insn)); |

