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

2024-04-18 Thread Peter0x44
18 Apr 2024 7:26:27 am Richard Biener : On Thu, Apr 18, 2024 at 6:12 AM Peter Damianov wrote: 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 $ ./a.out Hello w

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

2024-04-17 Thread Richard Biener
On Thu, Apr 18, 2024 at 6:12 AM Peter Damianov wrote: > > 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 > $ ./a.out > Hello world > $ du -h hello.o > $ 0

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

2024-04-17 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 $ ./a.out Hello world $ du -h hello.o $ 0 hello.o $ gcc hello.o -truncate gcc: error: missing filename after '-truncate