Re: as aborts after buffer overflow

2024-09-27 Thread Nick Clifton
Hi Peter, I wanted to know how exactly gcc translates such expressions like n * 0x1001. People are talking about multiplication being not slower than any other arithmetic operation on modern processors, but in fact I got the code (n << 12) + n, no matter which form I used in the C source. OK, it

Re: as aborts after buffer overflow

2024-09-27 Thread Peter Kozich (GM)
Hi Nick, Thank you, by omitting -ggdb I could now produce untruncated source lines and was able to locate easily the pieces of interest for me. If it always worked, then it could be all right: one build for the listings if they are needed, and another build for the debugger. But as you experienc

Re: as aborts after buffer overflow

2024-09-26 Thread Peter Kozich (GM)
Hello Nick, I found the e-mail address on an old binutils doc page, and unfortunately I didn't realize how old it was. But true, the current doc page address is present in the rpm info, next time I will register. I wanted to know how exactly gcc translates such expressions like n * 0x1001. People

Re: as aborts after buffer overflow

2024-09-26 Thread Nick Clifton
Hi Peter, gcc -c -O1 -ggdb -masm=intel -Wa,-acdhlgn=gfp_library.lst -Wa,-- listing-lhs-width=4,--listing-rhs-width=132 -o gfp_library.o gfp_library.c In the future if you have other bugs like this to report, please could you capture the compiler's assembler output and provide that as the test

as aborts after buffer overflow

2024-09-26 Thread Peter Kozich (GM)
Dear, compiling the attached example fails with this error message: *** buffer overflow detected ***: terminated /tmp/ccyb3JRr.s: Assembler messages: /tmp/ccyb3JRr.s: Internal error (Aborted). Please report this bug. Environment: $ uname -a Linux gygv 6.10.10-200.fc40.x86_64 #1 SMP PREEMPT_DYN