2008-05-23 Rafael Espindola <espindola@google.com>
* see.c (see_get_extension_data): Don't use SUBREG_REG to test
if a node is a SUBREG.
(see_analyze_one_def): Don't use SUBREG_REG to test if a node
is a SUBREG.
2008-05-23 Rafael Espindola <espindola@google.com>
* gcc/testsuite/gcc.c-torture/compile/
20080522-1.c: Move to gcc.dg.
* gcc/testsuite/gcc.dg/
20080522-1.c: Moved from gcc.c-torture.
From-SVN: r135833
+2008-05-23 Rafael Espindola <espindola@google.com>
+
+ * see.c (see_get_extension_data): Don't use SUBREG_REG to test
+ if a node is a SUBREG.
+ (see_analyze_one_def): Don't use SUBREG_REG to test if a node
+ is a SUBREG.
+
2008-05-23 Paul Brook <paul@codesourcery.com>
Carlos O'Donell <carlos@codesourcery.com>
/* Don't handle extensions to something other then register or
subregister. */
- if (!REG_P (lhs) && !SUBREG_REG (lhs))
+ if (!REG_P (lhs) && GET_CODE (lhs) != SUBREG)
return UNKNOWN;
if (GET_CODE (rhs) != SIGN_EXTEND && GET_CODE (rhs) != ZERO_EXTEND)
/* Don't handle extensions to something other then register or
subregister. */
- if (!REG_P (lhs) && !SUBREG_REG (lhs))
+ if (!REG_P (lhs) && GET_CODE (lhs) != SUBREG)
return NOT_RELEVANT;
switch (GET_CODE (rhs))
+2008-05-23 Rafael Espindola <espindola@google.com>
+
+ * gcc/testsuite/gcc.c-torture/compile/20080522-1.c: Move to gcc.dg.
+ * gcc/testsuite/gcc.dg/20080522-1.c: Moved from gcc.c-torture.
+
2008-05-23 Paul Brook <paul@codesourcery.com>
Carlos O'Donell <carlos@codesourcery.com>
+++ /dev/null
-/* { dg-do compile }
-/* { dg-options "-O2 -fsee" } */
-
-int f(const char* ptr, int bar) {
- return (((const char *)0 - ptr ) & (bar - 1)) == 0;
-}
-
-
-int g(const char* ptr, const char *test, int N, int bar) {
- if (N == 0) {
- }
- else if (N > 0) {
- int count = 0;
- while ( count < N) {
- if (!f(ptr, bar))
- count++;
- }
- }
- return f(test, bar) ;
-}
--- /dev/null
+/* { dg-do compile }
+/* { dg-options "-O2 -fsee" } */
+
+int f(const char* ptr, int bar) {
+ return (((const char *)0 - ptr ) & (bar - 1)) == 0;
+}
+
+
+int g(const char* ptr, const char *test, int N, int bar) {
+ if (N == 0) {
+ }
+ else if (N > 0) {
+ int count = 0;
+ while ( count < N) {
+ if (!f(ptr, bar))
+ count++;
+ }
+ }
+ return f(test, bar) ;
+}