From 0fca105f8ca95747fad3d3315e642ea9dc6936e0 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Wed, 25 Mar 2020 08:01:50 -0700 Subject: [PATCH] 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. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr92301.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2