public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/67352] New: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash @ 2015-08-25 19:23 gjl at gcc dot gnu.org 2015-08-25 19:24 ` [Bug target/67352] " gjl at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: gjl at gcc dot gnu.org @ 2015-08-25 19:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67352 Bug ID: 67352 Summary: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash Product: gcc Version: 5.2.0 Status: UNCONFIRMED Keywords: addr-space, diagnostic Severity: normal Priority: P3 Component: target Assignee: gjl at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Target: avr == C source == typedef struct { char a, b[3]; } S; const __flash char* get_b1 (const __flash S *s) { return s->b; } extern const __flash S ab; const __flash char* get_b2 (void) { return ab.b; } == Command line == $ avr-gcc -mmcu=atmega8 main.c -Werror=addr-space-convert -fsyntax-only == avr-gcc Output == main.c: In function 'get_b1': main.c:8:4: error: conversion from address space 'generic' to address space '__flash' [-Werror=addr-space-convert] main.c: In function 'get_b2': main.c:15:4: error: conversion from address space 'generic' to address space '__flash' [-Werror=addr-space-convert] ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/67352] [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash 2015-08-25 19:23 [Bug target/67352] New: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash gjl at gcc dot gnu.org @ 2015-08-25 19:24 ` gjl at gcc dot gnu.org 2015-08-25 19:24 ` gjl at gcc dot gnu.org 2023-12-05 12:40 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: gjl at gcc dot gnu.org @ 2015-08-25 19:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67352 Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Target Milestone|--- |6.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/67352] [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash 2015-08-25 19:23 [Bug target/67352] New: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash gjl at gcc dot gnu.org 2015-08-25 19:24 ` [Bug target/67352] " gjl at gcc dot gnu.org @ 2015-08-25 19:24 ` gjl at gcc dot gnu.org 2023-12-05 12:40 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: gjl at gcc dot gnu.org @ 2015-08-25 19:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67352 Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-08-25 Ever confirmed|0 |1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/67352] [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash 2015-08-25 19:23 [Bug target/67352] New: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash gjl at gcc dot gnu.org 2015-08-25 19:24 ` [Bug target/67352] " gjl at gcc dot gnu.org 2015-08-25 19:24 ` gjl at gcc dot gnu.org @ 2023-12-05 12:40 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2023-12-05 12:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67352 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Target Milestone|--- |14.0 Resolution|--- |FIXED --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- This doesn't happen anymore, possibly fixed by r14-6133-ge00c00730912cd ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-05 12:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-08-25 19:23 [Bug target/67352] New: [avr] incorrect warning with -Waddr-space-convert and array in struct in __flash gjl at gcc dot gnu.org 2015-08-25 19:24 ` [Bug target/67352] " gjl at gcc dot gnu.org 2015-08-25 19:24 ` gjl at gcc dot gnu.org 2023-12-05 12:40 ` rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).