Description of problem: My broken & incomplete implementation of AES causes gcc-3.4.2-2 to ICE on both i386 and x86_64 with -O2 or -Os. -O1 does not ICE. [warren@fedora64 aes-crash-gcc]$ make gcc -Wall -O2 -c -g aes.c -o aes.o aes.c: In function `SubBytes': aes.c:267: internal compiler error: in find_function_data, at function.c:315 Version-Release number of selected component (if applicable): gcc-3.4.2-2
Created attachment 104169 [details] ICE.txt.gz Compressed text containing ICE dump.
Note that gcc4 survives.
Submitted upstream. Warren, please reconsider use of VLAs everywhere, it is IMHO not a good idea. Furthermore, please look at SubBytes routine, to me it looks like a nop.
http://gcc.gnu.org/PR17682 FYI.