From: Andrew Stubbs Date: Tue, 18 Oct 2011 20:33:00 +0000 (+0000) Subject: driver-arm.c (host_detect_local_cpu): Close the file before exiting. X-Git-Tag: releases/gcc-4.7.0~2991 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d3f1a1349f1fc73f1278fb4d7ff3fb0a7b02379;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 365eb94f0311..2dc4ba2ee4a4 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 43b6e581fbe3..c7ca4faa37f9 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++)