Re: [PATCH v3 1/2] Driver: Add new -truncate option

2024-05-02 Thread Richard Biener
On Mon, Apr 29, 2024 at 1:27 AM Peter0x44 wrote: > > 29 Apr 2024 12:16:26 am Peter Damianov : > > > This commit adds a new option to the driver that truncates one file > > after > > linking. > > > > Tested likeso: > > > > $ gcc hello.c -c > > $ du -h hello.o > > 4.0K hello.o > > $ gcc hello.o -tr

Re: [PATCH v3 1/2] Driver: Add new -truncate option

2024-04-28 Thread Peter0x44
29 Apr 2024 12:16:26 am Peter Damianov : This commit adds a new option to the driver that truncates one file after linking. Tested likeso: $ gcc hello.c -c $ du -h hello.o 4.0K  hello.o $ gcc hello.o -truncate hello.o $ ./a.out Hello world $ du -h hello.o $ 0   hello.o $ gcc hello.o -truncat

[PATCH v3 1/2] Driver: Add new -truncate option

2024-04-28 Thread Peter Damianov
This commit adds a new option to the driver that truncates one file after linking. Tested likeso: $ gcc hello.c -c $ du -h hello.o 4.0K hello.o $ gcc hello.o -truncate hello.o $ ./a.out Hello world $ du -h hello.o $ 0 hello.o $ gcc hello.o -truncate gcc: error: missing filename after '-trunca