resource.c (mark_referenced_resources): Look inside UNSPEC_VOLATILEs and ASM_INPUTs.

gcc/
	* resource.c (mark_referenced_resources): Look inside
	UNSPEC_VOLATILEs and ASM_INPUTs.

From-SVN: r137375
This commit is contained in:
Richard Sandiford 2008-07-02 18:05:42 +00:00 committed by Richard Sandiford
parent 65c5f2a63f
commit 1b929c9a04
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
* resource.c (mark_referenced_resources): Look inside
UNSPEC_VOLATILEs and ASM_INPUTs.
2008-07-02 Ian Lance Taylor <iant@google.com>
* rtlanal.c (add_reg_note): New function.

View File

@ -266,12 +266,9 @@ mark_referenced_resources (rtx x, struct resources *res,
return;
case UNSPEC_VOLATILE:
case TRAP_IF:
case ASM_INPUT:
/* Traditional asm's are always volatile. */
res->volatil = 1;
return;
case TRAP_IF:
res->volatil = 1;
break;