* Jonathan Wakely via Gcc | 2023-05-26 08:30:06 [+0100]:
>On Fri, 26 May 2023, 08:01 Andrew Pinski via Gcc, wrote:
>
>> > GCC 13.3: gcc -m32 -O3 demo.c
>> >
>> > NOTE: -mtune=native is the default!
>>
>> You need to use -march=native and not -mtune=native to turn on
>> the architecture featu
On Mon, 31 Jan 2011 09:19:07 +, Jonathan Wakely wrote:
> The code is wrong. sizeof expects either an expression, or a
> parenthesized type-id. (long) is not a type-id so ((long)) is not a
> parenthesized type-id, therefore it must be interpreted as an
> expression, but it's not a valid
* Softish soft | 2005-11-02 08:31:05 [+]:
>What I mean with shared library is that I build a library that somehow can
>dynamically be called over an ethernet cable.
That's a feature that you don't want! This implied many technics that
are not the tenor of gcc or another compiler!
Upper tech
* Joe Buck | 2005-10-17 09:28:51 [-0700]:
>If we go down that route, the option would only work correctly if
>optimization is enabled, because you expect gcc to trace the source
>of pointers, and see what the pointers point to, and check the original
>strings for format characters.
ACK - gcc beha
Following code generate a _dubious_ warning message:
int main(void) {
const char * const literal = "xxx";
fprintf(stderr, literal);
return 0;
}
cc -Wall -Wformat-security -o main main.c
main.c: In function `main':
main.c:9: warning: format not a string literal and no format argumen