This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Don't use a temporary directory in the lto plugin


> 2009-11-04 ?Rafael Avila de Espindola ?<espindola@google.com>
>
> ? ? ? ?* lto-plugin.c (temp_obj_dir_name): Remove.
> ? ? ? ?(arguments_file_name): New.
> ? ? ? ?(free_2): Free arguments_file_name instead of temp_obj_dir_name.
> ? ? ? ?(exec_lto_wrapper): ?Create arguments file with make_temp_file.
> ? ? ? ?(cleanup_handler): Don't remove the temporary directory. Remove the
> ? ? ? ?arguments file.
> ? ? ? ?(onload): Don't create the temporary directory.

+  arguments_file_name = make_temp_file("");

Need a space before the '('.

+  if (arguments_file_name)
+  {
+    t = unlink (arguments_file_name);
+    check (t == 0, LDPL_FATAL, "could not unlink arguments file");
+  }

The then block needs to be indented.

This is OK with those changes.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]