public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209
@ 2024-01-25 17:45 gjl at gcc dot gnu.org
  2024-01-25 17:45 ` [Bug target/113601] " gjl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-25 17:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

            Bug ID: 113601
           Summary: avr: Wrong SRAM start for ATmega3208 and ATmega3209
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

ATmega3208/9 have SRAM from 0x3000 to 0x3fff, which is 4KiB.

The hardware description in avr-mcus.def uses a start at 0x3800, which is not
correct.  This leads to a wrong -Tdata option when linking.

As a work-around, pass -Tdata 0x803000 when linking, or fix the respective
option in device-specs/specs-atmega3208/9.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209
  2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
@ 2024-01-25 17:45 ` gjl at gcc dot gnu.org
  2024-01-25 17:54 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-25 17:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |avr
           Priority|P3                          |P4

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209
  2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
  2024-01-25 17:45 ` [Bug target/113601] " gjl at gcc dot gnu.org
@ 2024-01-25 17:54 ` cvs-commit at gcc dot gnu.org
  2024-01-25 17:59 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-25 17:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:6b678d8f96ad5ffb8de9e3f1f1694cb21d7a2c33

commit r14-8433-g6b678d8f96ad5ffb8de9e3f1f1694cb21d7a2c33
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Thu Jan 25 18:51:04 2024 +0100

    AVR: target/113601 - Fix wrong data start for ATmega3208 and ATmega3209.

    gcc/
            PR target/113601
            * config/avr/avr-mcus.def (atmega3208, atmega3209): Fix
data_section_start.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209
  2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
  2024-01-25 17:45 ` [Bug target/113601] " gjl at gcc dot gnu.org
  2024-01-25 17:54 ` cvs-commit at gcc dot gnu.org
@ 2024-01-25 17:59 ` cvs-commit at gcc dot gnu.org
  2024-01-25 18:02 ` cvs-commit at gcc dot gnu.org
  2024-01-25 18:10 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-25 17:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Georg-Johann Lay
<gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:fe3093ca9333965ec00d43ed2e24e594901a6ff9

commit r13-8252-gfe3093ca9333965ec00d43ed2e24e594901a6ff9
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Thu Jan 25 18:51:04 2024 +0100

    AVR: target/113601 - Fix wrong data start for ATmega3208 and ATmega3209.

    gcc/
            PR target/113601
            * config/avr/avr-mcus.def (atmega3208, atmega3209): Fix
data_section_start.

    (cherry picked from commit 6b678d8f96ad5ffb8de9e3f1f1694cb21d7a2c33)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209
  2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-01-25 17:59 ` cvs-commit at gcc dot gnu.org
@ 2024-01-25 18:02 ` cvs-commit at gcc dot gnu.org
  2024-01-25 18:10 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-25 18:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Georg-Johann Lay
<gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:f4015b8434a506a70f941a26d563d2de1dcbcf2f

commit r12-10114-gf4015b8434a506a70f941a26d563d2de1dcbcf2f
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Thu Jan 25 18:51:04 2024 +0100

    AVR: target/113601 - Fix wrong data start for ATmega3208 and ATmega3209.

    gcc/
            PR target/113601
            * config/avr/avr-mcus.def (atmega3208, atmega3209): Fix
data_section_start.

    (cherry picked from commit 6b678d8f96ad5ffb8de9e3f1f1694cb21d7a2c33)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209
  2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-01-25 18:02 ` cvs-commit at gcc dot gnu.org
@ 2024-01-25 18:10 ` gjl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-25 18:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |13.3

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Fixed in v12.4+ and v13.3+

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-25 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 17:45 [Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209 gjl at gcc dot gnu.org
2024-01-25 17:45 ` [Bug target/113601] " gjl at gcc dot gnu.org
2024-01-25 17:54 ` cvs-commit at gcc dot gnu.org
2024-01-25 17:59 ` cvs-commit at gcc dot gnu.org
2024-01-25 18:02 ` cvs-commit at gcc dot gnu.org
2024-01-25 18:10 ` gjl 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).