Bug 109616 - internal compiler error: in dwarf2out_var_location, at dwarf2out.c:26371 (GreenLiant)
Summary: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:26371 (Gre...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 7.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-25 01:30 UTC by Zhengfeng Zhu
Modified: 2023-04-25 17:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-04-25 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhengfeng Zhu 2023-04-25 01:30:18 UTC
When compile one c program, we using the '-Os2:Optimize more for size', then we compile occur this issue.
Comment 1 Sam James 2023-04-25 02:07:11 UTC Comment hidden (obsolete)
Comment 2 Sam James 2023-04-25 02:07:32 UTC
Please include the full preprocessed source and other information listed at https://gcc.gnu.org/bugs/#need.
Comment 3 Zhengfeng Zhu 2023-04-25 02:53:03 UTC
-D__RISC_V__=1 -D__arm__ -D__FW_BCU__ -I"/cygdrive/F/Include" -Os2 -mcmodel=medium -g3 -Wall -mcpu=n25 -ffunction-sections -fdata-sections -c -fmessage-length=0 -msmall-data-limit=0

The .i file we can't show it here.
Comment 4 Andrew Pinski 2023-04-25 03:01:47 UTC
GCC does not have an option called -Os2 .
Comment 5 Zhengfeng Zhu 2023-04-25 03:06:28 UTC
OK. Thanks. Let me confirm this issue.
Comment 6 Richard Biener 2023-04-25 06:34:47 UTC
Also note that GCC 7.3.0 which you report against is no longer supported.  The oldest compiler still receiving patches is GCC 10.4.  You can also try GCC 7.5.0, the last release from the GCC 7 branch.
Comment 7 Zhengfeng Zhu 2023-04-25 07:16:15 UTC
OK. Thanks.
Comment 8 Andrew Pinski 2023-04-25 17:06:23 UTC
.