From: Sandra Loosemore Date: Wed, 25 Mar 2020 15:01:50 +0000 (-0700) Subject: Fix gcc.dg/pr92301.c on targets that don't support argc/argv. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fca105f8ca95747fad3d3315e642ea9dc6936e0;p=gcc.git Fix gcc.dg/pr92301.c on targets that don't support argc/argv. 2020-03-25 Sandra Loosemore gcc/testsuite/ * gcc.dg/pr92301.c (main): Allow argc to be 0 to support embedded targets. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86d3b719ab8..5fa61f94349 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-03-25 Sandra Loosemore + + * gcc.dg/pr92301.c (main): Allow argc to be 0 to support + embedded targets. + 2020-03-25 Jakub Jelinek PR debug/94296 diff --git a/gcc/testsuite/gcc.dg/pr92301.c b/gcc/testsuite/gcc.dg/pr92301.c index 9a47e12e614..3ade201ad90 100644 --- a/gcc/testsuite/gcc.dg/pr92301.c +++ b/gcc/testsuite/gcc.dg/pr92301.c @@ -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);