How target.md file with target.c/.cc file invoke assembly instructions

2022-05-10 Thread RICHU NORMAN
Hi, I am new in gcc development and I am focusing on cross-compilers.I have added a few instructions for the target machine in binutils and invoked it using asm() from c program.Now I want to add those instructions to gcc and define that instruction in target.md file.I have a few queries regarding

Re: syntax errors

2022-05-10 Thread Mohamed Atef via Gcc
Because the fixed code may output results that you don't want. int x 5; Should it be int x = 5; or int x5; The parsing operation is very hard and takes some time. There is a method called Global correction to implement a compiler that changes the code but besides the reason above it's too costly

Re: syntax errors

2022-05-10 Thread Andrew Pinski via Gcc
On Tue, May 10, 2022 at 3:19 PM André Coelho via Gcc wrote: > > Hey...if the compiler can check syntax errors...why can't it fixed them? In some cases it does recommend ways of fixing it. But not all syntax errors are fixable. Also not all syntax errors might be the wrong behavior vs what the use

syntax errors

2022-05-10 Thread André Coelho via Gcc
Hey...if the compiler can check syntax errors...why can't it fixed them? thanks andre coelho

Re: -Wformat and u8""

2022-05-10 Thread Tom Honermann via Gcc
On 5/10/22 9:27 AM, Jonathan Wakely wrote: On Mon, 9 May 2022 at 11:09, Andreas Schwab wrote: On Mai 09 2022, Florian Weimer via Gcc wrote: * Ulrich Drepper via Gcc: t.cc: In function ‘int main()’: t.cc:5:24: warning: format string is not an array of type ‘char’ [-Wformat=] 5 | printf

Re: -Wformat and u8""

2022-05-10 Thread Jonathan Wakely via Gcc
On Mon, 9 May 2022 at 11:09, Andreas Schwab wrote: > > On Mai 09 2022, Florian Weimer via Gcc wrote: > > > * Ulrich Drepper via Gcc: > > > >> t.cc: In function ‘int main()’: > >> t.cc:5:24: warning: format string is not an array of type ‘char’ > >> [-Wformat=] > >> 5 | printf((const char*) u