This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47626] internal compiler error: in print_reg (only for i686, and i486, not x86_64)
- From: "it at psika dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 11:07:24 +0000
- Subject: [Bug target/47626] internal compiler error: in print_reg (only for i686, and i486, not x86_64)
- Auto-submitted: auto-generated
- References: <bug-47626-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47626
Tomas Psika <it at psika dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |it at psika dot cz
--- Comment #3 from Tomas Psika <it at psika dot cz> ---
Another minimal code using GCC 4.6.3 (gcc47626.cpp) on Gentoo:
#include <cstdlib>
int main() {
int size = atoi("4");
return 1;
double array[size];
}
Does trigger ICE using GCC 4.6.3 without optimization (-O0), no errors using
optimization (-O[1-3]). Newer GCC 4.8.2 does not trigger ICE at all.
# g++-4.6.3 -O0 gcc47626.cpp -o /dev/null && echo "OK"
gcc47626.cpp: In function âint main()â:
gcc47626.cpp:7:1: internal compiler error: in print_reg, at
config/i386/i386.c:13694
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
# g++-4.6.3 -O1 gcc47626.cpp -o /dev/null && echo "OK"
OK
# g++-4.8.2 -O0 gcc47626.cpp -o /dev/null && echo "OK"
OK
# g++-4.8.2 -O0 gcc47626.cpp -o /dev/null && echo "OK"
OK