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
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
Hey...if the compiler can check syntax errors...why can't it fixed them?
thanks
andre coelho
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
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
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