Re: Using gcc as a sort of scripting language.

2024-12-29 Thread Paul Markfort via Gcc
You can also do what I do now (the example in my first message), and don't need to pre-process the file before sending it to the compiler. What Jonothan suggested ("Still it would be a nice touch ...") would be great - but simply being able use a custom script to (like I do in the example) w

Re: Using gcc as a sort of scripting language.

2024-12-29 Thread raf via Gcc
Rather than expecting all C compilers to be modified to ignore the #! line, it should be possible to configure /bin/sh to do the desired thing. If a file is executable and has no #! line, the kernel will execute it via /bin/sh. Anyone who wants this facility could create a .profile file (or similar

Re: Using gcc as a sort of scripting language.

2024-12-29 Thread raf via Gcc
On Mon, Dec 30, 2024 at 11:16:37AM +1100, raf wrote: > Rather than expecting all C compilers to be modified to > ignore the #! line, it should be possible to configure > /bin/sh to do the desired thing. If a file is > executable and has no #! line, the kernel will execute > it via /bin/sh. Anyone

gcc-15-20241229 is now available

2024-12-29 Thread GCC Administrator via Gcc
Snapshot gcc-15-20241229 is now available on https://gcc.gnu.org/pub/gcc/snapshots/15-20241229/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 15 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch