Re: Problems when building NT kernel drivers with GCC / LD

2022-11-28 Thread Jan Beulich via Gcc
On 26.11.2022 20:04, Pali Rohár wrote: > On Monday 21 November 2022 08:24:36 Jan Beulich wrote: >> But then, with you replying to >> me specifically, perhaps you're wrongly assuming that I would be >> planning to look into addressing any or all of these? My earlier reply >> was merely to point out

Re: Problems when building NT kernel drivers with GCC / LD

2022-11-28 Thread Jonathan Wakely via Gcc
On Mon, 28 Nov 2022, 08:08 Jan Beulich via Gcc, wrote: > On 26.11.2022 20:04, Pali Rohár wrote: > > On Monday 21 November 2022 08:24:36 Jan Beulich wrote: > >> But then, with you replying to > >> me specifically, perhaps you're wrongly assuming that I would be > >> planning to look into addressin

Re: Problems when building NT kernel drivers with GCC / LD

2022-11-28 Thread Jan Beulich via Gcc
On 28.11.2022 09:40, Jonathan Wakely wrote: > On Mon, 28 Nov 2022, 08:08 Jan Beulich via Gcc, wrote: > >> On 26.11.2022 20:04, Pali Rohár wrote: >>> On Monday 21 November 2022 08:24:36 Jan Beulich wrote: But then, with you replying to me specifically, perhaps you're wrongly assuming tha

Triggering -save-temps from the front-end code

2022-11-28 Thread Florian Weimer via Gcc
I've got some instrumentation for logging errors to a magic directory, so that I can see if a build triggered them even when it did not fail—and hid all compiler errors and warnings. Unfortunately, some build systems immediately delete the input source files. Is there some easy way I can dump the

Re: Triggering -save-temps from the front-end code

2022-11-28 Thread Richard Biener via Gcc
On Mon, Nov 28, 2022 at 12:30 PM Florian Weimer via Gcc wrote: > > I've got some instrumentation for logging errors to a magic directory, > so that I can see if a build triggered them even when it did not > fail—and hid all compiler errors and warnings. > > Unfortunately, some build systems immedi

Re: Triggering -save-temps from the front-end code

2022-11-28 Thread Arsen Arsenović via Gcc
Hi, Florian Weimer via Gcc writes: > Unfortunately, some build systems immediately delete the input source > files. Is there some easy way I can dump the pre-processed and > non-preprocessed sources to my log file? I tried to understand how > -save-temps for crash recovery works, but it seems

Re: Triggering -save-temps from the front-end code

2022-11-28 Thread Florian Weimer via Gcc
* Arsen Arsenović: > Hi, > > Florian Weimer via Gcc writes: > >> Unfortunately, some build systems immediately delete the input source >> files. Is there some easy way I can dump the pre-processed and >> non-preprocessed sources to my log file? I tried to understand how >> -save-temps for crash

Re: Triggering -save-temps from the front-end code

2022-11-28 Thread Marc Glisse via Gcc
On Mon, 28 Nov 2022, Florian Weimer via Gcc wrote: * Arsen Arsenović: Hi, Florian Weimer via Gcc writes: Unfortunately, some build systems immediately delete the input source files. Is there some easy way I can dump the pre-processed and non-preprocessed sources to my log file? I tried t

Code generation: How to define file-scope static variables?

2022-11-28 Thread Robert Dubner
I am part of a team working on a COBOL front end for GCC. By reverse engineering other front ends, I learned, some months ago, how to create a function_decl GENERIC node that is the root of a GENERIC tree describing an entire function. By calling the routine cgraph_node::finalize_function() wi

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-11-28 Thread Alex Colomar via Gcc
Hi Joseph, On 11/14/22 19:13, Joseph Myers wrote: On Sun, 13 Nov 2022, Alejandro Colomar via Gcc wrote: SYNOPSIS: unary-operator: . identifier That's not what you mean. See the standard syntax. Yup; typo there. unary-expression: [other alternatives] unary-operator cast-expressi

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-11-28 Thread Alex Colomar via Gcc
Hi Joseph, On 11/14/22 19:26, Joseph Myers wrote: On Mon, 14 Nov 2022, Alejandro Colomar via Gcc wrote: To quote the convenor in WG14 reflector message 18575 (17 Nov 2020) when I asked about its status, "The author asked me not to put those on the agenda. He will supply updated versions later

Re: Code generation: How to define file-scope static variables?

2022-11-28 Thread David Malcolm via Gcc
On Mon, 2022-11-28 at 15:28 -0600, Robert Dubner wrote: > I am part of a team working on a COBOL front end for GCC. > > By reverse engineering other front ends, I learned, some months ago, > how > to create a function_decl GENERIC node that is the root of a GENERIC > tree > describing an entire fu

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-11-28 Thread Alex Colomar via Gcc
Hi Martin, On 11/13/22 15:58, Martin Uecker wrote: Am Sonntag, den 13.11.2022, 15:02 +0100 schrieb Alejandro Colomar: On 11/13/22 14:33, Alejandro Colomar wrote: Hi Martin, On 11/13/22 14:19, Alejandro Colomar wrote: But there are not only syntactical problems, because also the type of the

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-11-28 Thread Joseph Myers
On Tue, 29 Nov 2022, Alex Colomar via Gcc wrote: > I guess asking the compiler to do two passes on the param list isn't as bad as > asking to do unbound lookahead. In this case it's bound: look ahead till the > end of the param list; get as much info as possible, and then do it again to > comple

Help for a GCC school assignment

2022-11-28 Thread throw away via Gcc
Hello, For class, *I need to come up with a way to improve GCC* and then make a quick presentation (no implementation required). Ideally, this idea isn't being worked on already. *I'd appreciate help with coming up with an idea.* I've thought about this and I'm having trouble coming up with anyt

RE: Code generation: How to define file-scope static variables?

2022-11-28 Thread Robert Dubner
David, thank you very much. That looks very much like what I was hoping for. I'll dig into it tomorrow. Heartfelt thanks, Bob Dubner. -Original Message- From: David Malcolm Sent: Monday, November 28, 2022 18:01 To: Robert Dubner ; gcc@gcc.gnu.org Cc: 'Bob Dubner' Subject: Re: Code g

Division by zero on A53 which does not raise an exception

2022-11-28 Thread Stephen Smith via Gcc
I am working on a project which is using an A53 core. The core does not raise an exception if there is a division by zero (for either integer or floating point division). The designers chose to set status bits for the floating point case but not raise an exception.With the integer divisio