From 6d3f1a1349f1fc73f1278fb4d7ff3fb0a7b02379 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Tue, 18 Oct 2011 20:33:00 +0000 Subject: [PATCH] driver-arm.c (host_detect_local_cpu): Close the file before exiting. 2011-10-18 Andrew Stubbs gcc/ * config/arm/driver-arm.c (host_detect_local_cpu): Close the file before exiting. From-SVN: r180167 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/driver-arm.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 365eb94f031..2dc4ba2ee4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-10-18 Andrew Stubbs + + * config/arm/driver-arm.c (host_detect_local_cpu): Close the file + before exiting. + 2011-10-18 Andrew Stubbs PR tree-optimization/50717 diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c index 43b6e581fbe..c7ca4faa37f 100644 --- a/gcc/config/arm/driver-arm.c +++ b/gcc/config/arm/driver-arm.c @@ -134,6 +134,9 @@ not_found: unsigned int i; unsigned int opt; const char *search[] = {NULL, "arch"}; + + fclose (f); + search[0] = argv[0]; for (opt = 0; opt < ARRAY_SIZE (search); opt++) for (i = 0; i < ARRAY_SIZE (configure_default_options); i++)