public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36312]  New: Compiling options
@ 2008-05-23 11:44 shoaib dot jameel at gmail dot com
  2008-05-23 16:42 ` [Bug driver/36312] should refuse to overwrite input file with output file rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: shoaib dot jameel at gmail dot com @ 2008-05-23 11:44 UTC (permalink / raw)
  To: gcc-bugs

Why doesn't gcc report an error or warning in such a case:
gcc filename.c -g -o filename.c

I have a very long C program, whose sources that got lost because of the above
command. All I see in my program are some junk letters.

I know it's human error, but can you please incorporate any warning message
about the above compile option. That the user is overwriting his/her own C
code?


-- 
           Summary: Compiling options
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: shoaib dot jameel at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36312


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

end of thread, other threads:[~2024-02-13 23:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36312-4@http.gcc.gnu.org/bugzilla/>
2014-10-06  6:29 ` [Bug driver/36312] should refuse to overwrite input file with output file pinskia at gcc dot gnu.org
2014-10-06 21:46 ` manu at gcc dot gnu.org
2014-11-05 17:24 ` manu at gcc dot gnu.org
2014-11-05 17:40 ` wkoszek at gmail dot com
2014-11-05 23:58 ` manu at gcc dot gnu.org
2014-11-19 14:40 ` carlos at gcc dot gnu.org
2014-11-19 18:12 ` jakub at gcc dot gnu.org
2014-11-19 18:39 ` trippels at gcc dot gnu.org
2015-06-22 18:13 ` mpolacek at gcc dot gnu.org
2023-10-14  9:17 ` sarvelgcc at outlook dot com
2024-02-13 23:53 ` pinskia at gcc dot gnu.org
2008-05-23 11:44 [Bug c/36312] New: Compiling options shoaib dot jameel at gmail dot com
2008-05-23 16:42 ` [Bug driver/36312] should refuse to overwrite input file with output file rguenth at gcc dot gnu dot org
2008-05-23 16:49 ` shoaib dot jameel at gmail dot com
2008-05-23 17:01 ` rguenth at gcc dot gnu dot org
2008-05-23 17:06 ` shoaib dot jameel at gmail dot com
2008-10-07 10:55 ` sam at gcc dot gnu dot 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).