Commit e9d662bb by Andrew Stubbs

Commit correct version of previous patch.

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: r180168
parent 6d3f1a13
......@@ -75,7 +75,7 @@ host_detect_local_cpu (int argc, const char **argv)
{
const char *val = NULL;
char buf[128];
FILE *f;
FILE *f = NULL;
bool arch;
const struct vendor_cpu *cpu_table = NULL;
......@@ -135,7 +135,8 @@ not_found:
unsigned int opt;
const char *search[] = {NULL, "arch"};
fclose (f);
if (f)
fclose (f);
search[0] = argv[0];
for (opt = 0; opt < ARRAY_SIZE (search); opt++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment