This is the mail archive of the gcc-bugs@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]

[Bug c/66531] New: Source file deleted when we use gcc compile


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

            Bug ID: 66531
           Summary: Source file deleted when we use gcc compile
           Product: gcc
           Version: unknown
            Status: RESOLVED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yongjin.ohn at lge dot com
                CC: mpolacek at gcc dot gnu.org
  Target Milestone: ---
            Status: RESOLVED
                CC: mpolacek at gcc dot gnu.org
        Resolution: DUPLICATE

Hello guys.
I'm newbie about the GCC compiler. Also, my english skill is poor, please
understand it.
Actually, When I compile using below command, my source are deleted. 
gcc -o mysource.c mysource
I know this command is wrong. but I think that this is a problem. because user
can make a mistake. Also user can't recover his source code everything. 
So, I think that If user input the like upper commend, we can change the
parameter order or backup the source file.
If you agree this situation, I'll try upload the patch.

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Probably can be closed as a dup of PR36312 (which added "input file is the same
as output file").

*** This bug has been marked as a duplicate of bug 36312 ***


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