Re: add command line option to gcc

2019-09-06 Thread Tim Rice
On Fri, 6 Sep 2019, Jonathan Wakely wrote: > On Fri, 6 Sep 2019 at 04:26, Tim Rice wrote: > > > > > > I have a use case where I would like gcc to accept -Kthread > > and act as if it was passed -pthread. So -Kthread would > > be a synonym for -pthread. > > For a specific target, or universally?

Re: add command line option to gcc

2019-09-06 Thread Jonathan Wakely
On Fri, 6 Sep 2019 at 04:26, Tim Rice wrote: > > > I have a use case where I would like gcc to accept -Kthread > and act as if it was passed -pthread. So -Kthread would > be a synonym for -pthread. For a specific target, or universally? > I am having trouble figuring out how the option processing

Re: add command line option to gcc

2019-09-05 Thread Nicholas Krause
On 9/5/19 11:25 PM, Tim Rice wrote: I have a use case where I would like gcc to accept -Kthread and act as if it was passed -pthread. So -Kthread would be a synonym for -pthread. I am having trouble figuring out how the option processing is handled. Possibly in gcc/gcc.c but I am stumped here.

add command line option to gcc

2019-09-05 Thread Tim Rice
I have a use case where I would like gcc to accept -Kthread and act as if it was passed -pthread. So -Kthread would be a synonym for -pthread. I am having trouble figuring out how the option processing is handled. Possibly in gcc/gcc.c but I am stumped here. Any pointers would be welcome. Than