[Bug c/2803] casts in asm act as lvalues

2025-02-12 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug c/2803] casts in asm act as lvalues

2025-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803 --- Comment #16 from Jakub Jelinek --- The fact that clang doesn't support that just means they have badly implemented a GNU extension.

[Bug c/2803] casts in asm act as lvalues

2025-02-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803 --- Comment #15 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #14) > I think longlong.h uses these heavily and there are many copies of that. > The casts serve as (admittedly ugly) type verification. Yes it still does. Though s

[Bug c/2803] casts in asm act as lvalues

2025-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #14

[Bug c/2803] casts in asm act as lvalues

2025-02-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c/2803] casts in asm act as lvalues

2009-05-25 Thread astrange at ithinksw dot com
--- Comment #12 from astrange at ithinksw dot com 2009-05-25 20:26 --- I noticed this is still accepted by gcc 4.5; one stuck into ffmpeg and broke the build with another compiler. For instance, this only fails in c(): int as(int a) { asm ("" : : "m"((int)a)); } int c(int a) {