Commit 6b32fd17 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[ARM] PR driver/70132: Avoid double fclose in driver-arm.c

	PR driver/70132
	* config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
	to not call fclose twice on file.

From-SVN: r234419
parent 7397fce2
2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR driver/70132
* config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
to not call fclose twice on file.
2016-03-23 Jakub Jelinek <jakub@redhat.com> 2016-03-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70354 PR tree-optimization/70354
......
...@@ -128,12 +128,11 @@ host_detect_local_cpu (int argc, const char **argv) ...@@ -128,12 +128,11 @@ host_detect_local_cpu (int argc, const char **argv)
} }
} }
fclose (f); if (val)
{
if (val == NULL) fclose (f);
goto not_found; return concat ("-m", argv[0], "=", val, NULL);
}
return concat ("-m", argv[0], "=", val, NULL);
not_found: not_found:
{ {
......
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