driver-arm.c (host_detect_local_cpu): Close the file before exiting.

2011-10-18  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/driver-arm.c (host_detect_local_cpu): Close the file
	before exiting.

From-SVN: r180167
This commit is contained in:
Andrew Stubbs 2011-10-18 20:33:00 +00:00 committed by Andrew Stubbs
parent 3d71881d2d
commit 6d3f1a1349
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-10-18 Andrew Stubbs <ams@codesourcery.com>
* config/arm/driver-arm.c (host_detect_local_cpu): Close the file
before exiting.
2011-10-18 Andrew Stubbs <ams@codesourcery.com>
PR tree-optimization/50717

View File

@ -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++)