https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81900
Yui NARUSE changed:
What|Removed |Added
CC||naruse at airemix dot jp
--- Comment #10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81954
Yui NARUSE changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: naruse at airemix dot jp
Target Milestone: ---
Created attachment 42032
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42032&action=edit
vm.i, generated from vm.c
Environments
gnu.org
Reporter: naruse at airemix dot jp
Folloing program is to verify func's argument is not larger than 3 at compile
time.
And this program uses valid argument 0.
Threfore I want the code is compiled without error.
This idea works on -O, -O1, -O2, -O3, -Os.
But on -Og, it fails
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
--- Comment #1 from Yui NARUSE 2012-01-15 01:25:57
UTC ---
Created attachment 26327
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26327
the preprocessed file
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
Bug #: 51862
Summary: Over optimization for assignments to char[] defined
inner than used
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED