public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/65021] New: nvptx mkoffload doesn't clean up its temporary files
@ 2015-02-11 15:32 tschwinge at gcc dot gnu.org
  2015-10-05 14:08 ` [Bug other/65021] " tschwinge at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2015-02-11 15:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65021

            Bug ID: 65021
           Summary: nvptx mkoffload doesn't clean up its temporary files
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: openacc, openmp
          Severity: major
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: bernds at gcc dot gnu.org

The nvptx mkoffload doesn't clean up its temporary files, so ${TMPDIR-/tmp}/
slowly fills up with cc* files, "until it explodes".

Related to that, do we generally need to add atexit as well as signal handlers?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug other/65021] nvptx mkoffload doesn't clean up its temporary files
  2015-02-11 15:32 [Bug other/65021] New: nvptx mkoffload doesn't clean up its temporary files tschwinge at gcc dot gnu.org
@ 2015-10-05 14:08 ` tschwinge at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2015-10-05 14:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65021

--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Mon Oct  5 14:07:50 2015
New Revision: 228488

URL: https://gcc.gnu.org/viewcvs?rev=228488&root=gcc&view=rev
Log:
[PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup

        gcc/
        PR other/65021
        * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
        function to...
        (mkoffload_cleanup): ... this.  Adjust all users.
        (maybe_unlink): Look at save_temps and verbose flags instead of
        debug flag.
        (main): Parse "-save-temps" flag.
        (generate_target_descr_file, generate_target_offloadend_file)
        (generate_host_descr_file, prepare_target_image): Pass it on.
        * config/nvptx/mkoffload.c (tool_cleanup): Implement.
        (mkoffload_cleanup): New function.
        (maybe_unlink): Look at save_temps and verbose flags instead of
        debug flag.
        (main): Instead of calling utils_cleanup, register atexit handler
        for mkoffload_cleanup.
        (main): Parse "-save-temps" flag.
        (compile_native, main): Pass it on.
        * lto-wrapper.c (compile_offload_image): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/intelmic-mkoffload.c
    trunk/gcc/config/nvptx/mkoffload.c
    trunk/gcc/lto-wrapper.c


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-05 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 15:32 [Bug other/65021] New: nvptx mkoffload doesn't clean up its temporary files tschwinge at gcc dot gnu.org
2015-10-05 14:08 ` [Bug other/65021] " tschwinge at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).