[Bug c/115095] New: [missed optimization] fixed processing on constant string

2024-05-14 Thread yann at droneaud dot fr via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- Created attachment 58208 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58208=edit source code of https://godbolt.org/z/Meqvbj8GG I've fo

[Bug c/111025] New: attribute((malloc)) and posix_memalign() (and other functions that return newly allocated object address into an output parameter)

2023-08-15 Thread yann at droneaud dot fr via Gcc-bugs
Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- Functions such as posix_memalign() don't return

[Bug middle-end/110292] undefined value due to strict aliasing without warning

2023-06-16 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110292 --- Comment #5 from Yann Droneaud --- Hi, Thanks a lot for the quick analysis of my issue. (In reply to Andrew Pinski from comment #4) > Note -Wstrict-aliasing=1 actually does warn: OK, and -Wall enables -Wstrict-aliasing which defaults to

[Bug c/110292] undefined value due to strict aliasing without warning

2023-06-16 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110292 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #1

[Bug c/110292] New: undefined value due to strict aliasing without warning

2023-06-16 Thread yann at droneaud dot fr via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- The following code (reduced with some help from cvise) doesn't trigger any warning from GCC 13+ $ cat test.c #include struct a { uint8_t b:6

[Bug c/71713] "initializer element is not constant" with nested casts

2023-05-27 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71713 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #2

[Bug c/109828] [13/14 Regression] static compound literal with flexible array in initializer leads to invalid size and ICE

2023-05-15 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 --- Comment #8 from Yann Droneaud --- (In reply to Yann Droneaud from comment #7) > I've also experimented compound literal initialization at block level > instead of file level. Except in case it's not supported, it shows the same > issue at

[Bug c/109863] New: RFE: more consistent flex array initialization: lift static storage requirement in gnu2x

2023-05-15 Thread yann at droneaud dot fr via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- I've noted some discrepancies in the flex array initialization support: /* https://godbolt.org/z/9er5G9G15

[Bug c/109828] [13/14 Regression] static compound literal with flexible array in initializer leads to invalid size and ICE

2023-05-15 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 --- Comment #7 from Yann Droneaud --- I've also experimented compound literal initialization at block level instead of file level. Except in case it's not supported, it shows the same issue at block level as file level.

[Bug c/109828] [13/14 Regression] C2x:static compound literal (with flexible array) in initializer leads to invalid size and ICE

2023-05-12 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 --- Comment #4 from Yann Droneaud --- I'm still playing with this, for example https://godbolt.org/z/dfjr8veh5, and I've noticed the size of the compound_initializer is incorrect too: struct s { char i; char c[]; }; const struct s

[Bug c/109828] C2x:static compound literal (with flexible array) in initializer leads to invalid size and ICE

2023-05-12 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 --- Comment #2 from Yann Droneaud --- (In reply to Yann Droneaud from comment #0) > The following code is badly compiled by GCC 13.1: > > struct s { int i; char c[]; }; > > const struct s s = { .c = "0", }; > const struct s *r =

[Bug c/109828] C2x:static compound literal (with flexible array) in initializer leads to invalid size and ICE

2023-05-12 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #1

[Bug c/109828] New: C2x:static compound literal (with flexible array) in initializer leads to invalid size and ICE

2023-05-12 Thread yann at droneaud dot fr via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- The following code is badly compiled by GCC 13.1: struct s { int i; char c[]; }; const struct s s

[Bug c/109516] warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'const long unsigned int:48' [-Wformat=]

2023-04-14 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109516 --- Comment #7 from Yann Droneaud --- (In reply to Andrew Pinski from comment #6) > > > > And I failed to comprehend how unsigned long int:48 can be passed to a > > variadic function without being promoted to plain unsigned long int ... > >

[Bug c/109516] warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'const long unsigned int:48' [-Wformat=]

2023-04-14 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109516 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #4

[Bug c/109516] New: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'const long unsigned int:48' [-Wformat=]

2023-04-14 Thread yann at droneaud dot fr via Gcc-bugs
Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- I've discovered today an unexpected format related

[Bug preprocessor/109183] [regression?] since GCC 11.1, -MM -MMD generates "a-" prefixed dependency files

2023-03-27 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109183 --- Comment #4 from Yann Droneaud --- (In reply to Alexandre Oliva from comment #3) > dump files now consistently take the base name from the output name, when > not overridden > > since in this case gcc is called for (compiling and) linking,

[Bug preprocessor/109183] [regression?] since GCC 11.1, -MM -MMD generates "a-" prefixed dependency files

2023-03-21 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109183 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #2

[Bug preprocessor/109183] New: [regression?] since GCC 11.1, -MM -MMD generates "a-" prefixed dependency files

2023-03-18 Thread yann at droneaud dot fr via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- I've found a rather surprising behavior change when using GCC >= 11.1 to build some project using

[Bug tree-optimization/108398] tree-object-size trips up with pointer arithmetic if an intermediate result is an invalid pointer

2023-01-15 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108398 --- Comment #10 from Yann Droneaud --- (In reply to Jakub Jelinek from comment #8) > -fsanitize=undefined with no diagnostics doesn't mean code is UB free. This is a pity, it would have help users do diagnose the issue in their code.

[Bug tree-optimization/108398] tree-object-size trips up with pointer arithmetic if an intermediate result is an invalid pointer

2023-01-13 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108398 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #6

[Bug other/55899] GCC should provide built-ins in data types flavor/version/variation

2022-11-29 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55899 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #2

[Bug c++/107104] semantics of __builtin_constant_p within static_assert and return value

2022-11-12 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107104 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug ipa/106061] [13 Regression] during GIMPLE pass: einline ICE: verify_cgraph_node failed (edge points to wrong declaration) with -Og since r13-1204-gd68d366425369649

2022-11-11 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106061 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #6

[Bug tree-optimization/107618] Incorrect diagnostics when using -Og, builtin_expect(), and function attribute "warning" or "error"

2022-11-11 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107618 --- Comment #6 from Yann Droneaud --- (In reply to Richard Biener from comment #5) > Should be fixed for GCC 13, it doesn't seem to be a regression. I've tested with a fresh rebuild of GCC's trunk, and the warning is no more reported at -Og

[Bug middle-end/107618] Incorrect diagnostics when using -Og, builtin_expect(), and function attribute "warning" or "error"

2022-11-10 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107618 --- Comment #2 from Yann Droneaud --- I was wondering what GCC expects __builtin_object_size(0, 0) to be, and used the following: void a_1 (void) __attribute__((__warning__("-1"))); void a0 (void) __attribute__((__warning__("0")));

[Bug middle-end/107618] Incorrect diagnostics when using -Og, builtin_expect(), and function attribute "warning" or "error"

2022-11-10 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107618 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #1

[Bug other/107618] New: Incorrect diagnostics when using -Og, builtin_expect(), and function attribute "warning" or "error"

2022-11-10 Thread yann at droneaud dot fr via Gcc-bugs
Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- Created attachment 53872 --> https://gcc.gnu.org/bug

[Bug middle-end/99578] [11 Regression] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal

2022-08-20 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 --- Comment #43 from Yann Droneaud --- (In reply to Jakub Jelinek from comment #37) > Fixed on the trunk so far, temporarily by differentiating between < 4KB > addresses which are still handled like GCC 11 did for warning purposes, and > >= 4KB

[Bug c/106699] New: Since gcc 12, deferencing constant literal addresses triggers -Warray-bounds warning

2022-08-20 Thread yann at droneaud dot fr via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- Since GCC 12.1, compiling memtest86+ triggers the following warning: In function 'find_rsdp', inlined from

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-08-17 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 --- Comment #7 from Yann Droneaud --- (In reply to Roy Jacobson from comment #6) > We recently upgraded our toolchain from GCC9 to GCC11, and we're seeing > __tls_get_addr take up to 10% of total runtime under some workloads, where > it was 1-2%

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2022-03-24 Thread yann at droneaud dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #16 from Yann Droneaud --- (In reply to Marek Polacek from comment #13) > I have a patch which fixes all the testcases here. I've checked my test cases using godbolt gcc trunk, and, yeah, thanks a lot !

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-24 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #8 from Yann Droneaud --- See also this stack overflow question https://stackoverflow.com/questions/49081541/compound-literal-and-designated-initializer-warning-from-gcc-but-not-clang

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-24 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #7 from Yann Droneaud --- See also bug #84685 which is a very likely duplicate of this one.

[Bug c/84685] Designated initializers warning

2020-02-24 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84685 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-24 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #6 from Yann Droneaud --- Found this one on stack overflow[1], and I find it a bit embarrassing: struct { struct { int a; int b; } c[1]; } d = { .c[0].a = 1, .c[0].b = 1, };

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-23 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #5 from Yann Droneaud --- For a full combo, here's the almost original code that trigger the two errors above with GLibc < 2.28, only one with newer Glibc. #define _GNU_SOURCE 1 #include #include #include

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-22 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 --- Comment #4 from Yann Droneaud --- Also with the ({}) GCC extension: struct a { int b; int c; }; void d(struct a *); void e(void) { struct a f = { .b = ({

[Bug c/82283] Wrong warning with -Wmissing-field-initializers

2020-02-22 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82283 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug tree-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2019-09-25 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 --- Comment #12 from Yann Droneaud --- (In reply to Yann Droneaud from comment #8) > Created attachment 46903 [details] > An artificial test case for gcc to emit 17 calls to __tls_get_addr() > It's possible to "workaround" this issue by using

[Bug rtl-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2019-09-23 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 --- Comment #10 from Yann Droneaud --- Some more snippets, generated with creduce: -8< void a(long *); int b(void); void c(void); long d(void) { static __thread long e; a(); if (b())

[Bug rtl-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2019-09-20 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 --- Comment #9 from Yann Droneaud --- This issue is also reported as bug #81501

[Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern

2019-09-20 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug rtl-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2019-09-20 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #8

[Bug c/86647] Test on constant expression (unsigned) -1 < 0 triggers a spurious -Wtype-limits warning

2019-09-06 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86647 --- Comment #5 from Yann Droneaud --- I've reproduced the issue with bool test(void) { return ((unsigned int)0 - 1) < 0; } See https://godbolt.org/z/b1QqIC

[Bug c/86647] Test on constant expression (unsigned) -1 < 0 triggers a spurious -Wtype-limits warning

2019-09-06 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86647 --- Comment #4 from Yann Droneaud --- *** Bug 91685 has been marked as a duplicate of this bug. ***

[Bug c/91685] -Wtype-limits warns for constant expression

2019-09-06 Thread yann at droneaud dot fr
||yann at droneaud dot fr Resolution|--- |DUPLICATE --- Comment #1 from Yann Droneaud --- My issue is the same as bug #86647. *** This bug has been marked as a duplicate of bug 86647 ***

[Bug c++/81642] -Wtype-limits should not trigger for defined numbers

2019-09-06 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81642 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug c/86647] Test on constant expression (unsigned) -1 < 0 triggers a spurious -Wtype-limits warning

2019-09-06 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86647 Yann Droneaud changed: What|Removed |Added CC||yann at droneaud dot fr --- Comment #3

[Bug c/91685] New: -Wtype-limits warns for constant expression

2019-09-06 Thread yann at droneaud dot fr
Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Target Milestone: --- I'm was trying to implement a test for socklen_t type signedness, because on some platform it's signed and some it's unsigned. For signed socklen_t, I wanted to rejected negative

[Bug c++/90885] GCC should warn about 2^16 and 2^32 and 2^64

2019-06-14 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90885 --- Comment #7 from Yann Droneaud --- The issue was noted on twitter by John Regehr, in https://twitter.com/johnregehr/status/1139295920997068800 and following messages. The warning was suggest again by John Regehr in

[Bug middle-end/90037] [9 Regression] -Wnull-dereference false positive after r269302

2019-04-11 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90037 Yann Droneaud changed: What|Removed |Added Attachment #46138|0 |1 is obsolete|

[Bug middle-end/90037] [9 Regression] -Wnull-dereference false positive after r269302

2019-04-10 Thread yann at droneaud dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90037 --- Comment #3 from Yann Droneaud --- Created attachment 46138 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46138=edit Reduced reproducer sample I've used creduce[1][2] to generate a smaller reproducer sample, see

[Bug c/60722] New: __builtin_choose_expr() does not allow 'CONST_EXP' using const variable

2014-03-31 Thread yann at droneaud dot fr
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Created attachment 32498 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32498action=edit testcase Hi, I'm trying to use __builtin_choose_expr

[Bug c/58872] New: RFC: more builtins for bit manipulation

2013-10-25 Thread yann at droneaud dot fr
Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Current bit manipulation builtins can be found in documentation: http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#Other-Builtins GCC could benefit of more bit manipulation builtins, for example

[Bug c/58872] RFC: more builtins for bit manipulation

2013-10-25 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58872 Yann Droneaud yann at droneaud dot fr changed: What|Removed |Added CC||yann at droneaud

[Bug c/57908] New: alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr According to System V Application Binary Interface, AMD64 Architecture Processor Supplement, Draft Version 0.90 Aggregates and Unions

[Bug c/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 --- Comment #1 from Yann Droneaud yann at droneaud dot fr --- Additionally, for ARM target (ARMv7), it seems GCC align arrays on stack to 4 bytes boundary ... but I don't found the ABI specification that require such alignment. kind

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 --- Comment #4 from Yann Droneaud yann at droneaud dot fr --- (In reply to Andrew Pinski from comment #2) Your test program is not fully testing things correctly. kind name address size alignment required

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 Yann Droneaud yann at droneaud dot fr changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 --- Comment #6 from Yann Droneaud yann at droneaud dot fr --- Created attachment 30512 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30512action=edit Demonstrate stack allocation of array aligned on 16 bytes

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 --- Comment #8 from Yann Droneaud yann at droneaud dot fr --- Using -Os show different results: Arrays object | u8_0 | 0x7fff9b4c05bc |1 | 4 |1

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?

2013-07-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908 --- Comment #10 from Yann Droneaud yann at droneaud dot fr --- (In reply to Andrew Pinski from comment #9) (In reply to Yann Droneaud from comment #8) Could someone comment on which optimisation is achieved by aligning such small arrays

[Bug target/57911] New: alignment of arrays allocated stack on ARM : 4 bytes ?

2013-07-16 Thread yann at droneaud dot fr
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Hi Following discussion in bug #57908, especially bug #57908 comment #1, on ARMv7, I'm very surprised that array of bytes are aligned on 4 bytes boundary when allocated on stack. Using

[Bug c/57889] New: Improvement: builtin to return a string from a type (type to string builtin)

2013-07-12 Thread yann at droneaud dot fr
: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Hi, It might be of interest to have a builtin to convert a type name to a string. Given a type or a variable, the builtin would return the type

[Bug other/55899] New: GCC should provide built-ins in stdint.h data types flavor/version/variation

2013-01-07 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55899 Bug #: 55899 Summary: GCC should provide built-ins in stdint.h data types flavor/version/variation Classification: Unclassified Product: gcc Version: unknown

[Bug c/51579] New: GCC should be able report a warning for usage of parameters marked with __attribute__((unused))

2011-12-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579 Bug #: 51579 Summary: GCC should be able report a warning for usage of parameters marked with __attribute__((unused)) Classification: Unclassified Product: gcc Version: 4.6.2

[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))

2011-12-16 Thread yann at droneaud dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579 --- Comment #2 from Yann Droneaud yann at droneaud dot fr 2011-12-16 15:25:41 UTC --- (In reply to comment #1) I don't think we should start warning each time an __attribute__((unused)) parameter is actually used. In my experience that's