OSDN Git Service

2011-10-18 Andrew Stubbs <ams@codesourcery.com>
authorams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Oct 2011 20:33:00 +0000 (20:33 +0000)
committerams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Oct 2011 20:33:00 +0000 (20:33 +0000)
gcc/
* config/arm/driver-arm.c (host_detect_local_cpu): Close the file
before exiting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180167 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/driver-arm.c

index 365eb94..2dc4ba2 100644 (file)
@@ -1,5 +1,10 @@
 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
 
        * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
index 43b6e58..c7ca4fa 100644 (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++)