This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/47626] internal compiler error: in print_reg (only for i686, and i486, not x86_64)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]