Fix gcc.dg/pr92301.c on targets that don't support argc/argv.
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 25 Mar 2020 15:01:50 +0000 (08:01 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Wed, 25 Mar 2020 15:01:50 +0000 (08:01 -0700)
2020-03-25  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* gcc.dg/pr92301.c (main): Allow argc to be 0 to support
embedded targets.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr92301.c

index 86d3b719ab8215880df490177c3455a5f205bf10..5fa61f94349a58b165c2f37a9ca263aa6cec7ec2 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-25  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gcc.dg/pr92301.c (main): Allow argc to be 0 to support
+       embedded targets.
+
 2020-03-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/94296
index 9a47e12e61463634a0f3fe4e01585d6a224adc72..3ade201ad9024b2e97041b660a7e266aeafdc49b 100644 (file)
@@ -23,7 +23,7 @@ int main(int argc, char **argv)
   for (unsigned i = 0; i < N; i++)
     a[i] = i;
 
-  if (argc == 1)
+  if (argc < 2)
     m = 17;
 
   unsigned int r = df_count_refs(1);