flow.c (find_regno_partial): Indent properly.

2001-12-11  Aldy Hernandez  <aldyh@redhat.com>

        * flow.c (find_regno_partial): Indent properly.  Add a default to
        switch.

From-SVN: r47892
This commit is contained in:
Aldy Hernandez 2001-12-11 20:17:55 +00:00 committed by Aldy Hernandez
parent 270d8c65bd
commit 448cad060a
2 changed files with 25 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2001-12-11 Aldy Hernandez <aldyh@redhat.com>
* flow.c (find_regno_partial): Indent properly. Add a default to
switch.
2001-12-11 Neil Booth <neil@daikokuya.demon.co.uk> 2001-12-11 Neil Booth <neil@daikokuya.demon.co.uk>
* c-common.c (combine_strings): Complain if concatenating * c-common.c (combine_strings): Complain if concatenating

View File

@ -1322,24 +1322,27 @@ find_regno_partial (ptr, data)
switch (GET_CODE (*ptr)) switch (GET_CODE (*ptr))
{ {
case ZERO_EXTRACT: case ZERO_EXTRACT:
case SIGN_EXTRACT: case SIGN_EXTRACT:
case STRICT_LOW_PART: case STRICT_LOW_PART:
if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg) if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg)
{ {
param->retval = XEXP (*ptr, 0); param->retval = XEXP (*ptr, 0);
return 1; return 1;
} }
break; break;
case SUBREG: case SUBREG:
if (GET_CODE (SUBREG_REG (*ptr)) == REG if (GET_CODE (SUBREG_REG (*ptr)) == REG
&& REGNO (SUBREG_REG (*ptr)) == reg) && REGNO (SUBREG_REG (*ptr)) == reg)
{ {
param->retval = SUBREG_REG (*ptr); param->retval = SUBREG_REG (*ptr);
return 1; return 1;
} }
break; break;
default:
break;
} }
return 0; return 0;