public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
@ 2024-01-18 13:35 gjl at gcc dot gnu.org
2024-01-18 13:41 ` [Bug debug/113480] [14 Regression] " gjl at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-18 13:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
Bug ID: 113480
Summary: avr: internal compiler error: in add_dwarf_attr, at
dwarf2out.cc:4503
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
This is a relatively new ICE that I see on the avr target.
Compliled with "version 14.0.1 20240118 (experimental) (avr)"
$ avr-gcc pr83801.c -g -O3 -std=gnu99 -mmcu=atmega128
/* { dg-options { "-std=gnu99" } } */
/* { dg-do run { target { ! avr_tiny } } } */
__attribute((noinline,noclone))
char to_ascii (unsigned i)
{
static const char __flash code_tab[] = "0123456789";
return code_tab[i];
}
int main()
{
if (to_ascii (2) != '2')
__builtin_abort();
return 0;
}
I am not sure if it's related to address-spaces, but there are fails that don't
have ASes like gcc.target/avr/torture/pr109907-2.c (but that has __int24
though).
Target: avr
Configured with: ../../source/gcc-master/configure --target=avr --disable-nls
--with-dwarf2 --with-gnu-as --with-gnu-ld --disable-shared
--with-fixed-point=no --with-long-double=64 --enable-languages=c,c++
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 14.0.1 20240118 (experimental) (GCC)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] [14 Regression] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
@ 2024-01-18 13:41 ` gjl at gcc dot gnu.org
2024-01-18 13:45 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-18 13:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
The ICE actially goes away when I remove the __flash from the test case posted
in comment #0.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] [14 Regression] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
2024-01-18 13:41 ` [Bug debug/113480] [14 Regression] " gjl at gcc dot gnu.org
@ 2024-01-18 13:45 ` rguenth at gcc dot gnu.org
2024-01-18 13:56 ` gjl at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-18 13:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
Target Milestone|--- |14.0
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
This is the assert looking we don't add duplicate attrs, only enabled with
-fchecking. Does it fail with GCC 13 as well (if you add -fchecking)?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] [14 Regression] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
2024-01-18 13:41 ` [Bug debug/113480] [14 Regression] " gjl at gcc dot gnu.org
2024-01-18 13:45 ` rguenth at gcc dot gnu.org
@ 2024-01-18 13:56 ` gjl at gcc dot gnu.org
2024-01-18 14:23 ` [Bug debug/113480] " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-18 13:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> Does it fail with GCC 13 as well (if you add -fchecking)?
Yes. And it goes away without -g.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2024-01-18 13:56 ` gjl at gcc dot gnu.org
@ 2024-01-18 14:23 ` rguenth at gcc dot gnu.org
2024-01-18 14:47 ` pinskia at gcc dot gnu.org
2024-01-18 17:57 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-18 14:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[14 Regression] avr: |avr: internal compiler
|internal compiler error: in |error: in add_dwarf_attr,
|add_dwarf_attr, at |at dwarf2out.cc:4503
|dwarf2out.cc:4503 |
Target Milestone|14.0 |---
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
So it's not clear to when it's a regression (the checking was added with GCC
8). There might be a duplicate for this bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
` (3 preceding siblings ...)
2024-01-18 14:23 ` [Bug debug/113480] " rguenth at gcc dot gnu.org
@ 2024-01-18 14:47 ` pinskia at gcc dot gnu.org
2024-01-18 17:57 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-18 14:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=100530
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely a dup of bug 100530.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/113480] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
` (4 preceding siblings ...)
2024-01-18 14:47 ` pinskia at gcc dot gnu.org
@ 2024-01-18 17:57 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-18 17:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes it is a dup of bug 100530.
*** This bug has been marked as a duplicate of bug 100530 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-01-18 17:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 13:35 [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 gjl at gcc dot gnu.org
2024-01-18 13:41 ` [Bug debug/113480] [14 Regression] " gjl at gcc dot gnu.org
2024-01-18 13:45 ` rguenth at gcc dot gnu.org
2024-01-18 13:56 ` gjl at gcc dot gnu.org
2024-01-18 14:23 ` [Bug debug/113480] " rguenth at gcc dot gnu.org
2024-01-18 14:47 ` pinskia at gcc dot gnu.org
2024-01-18 17:57 ` pinskia 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).