2013/5/13 Joern Rennecke <joern.renne...@embecosm.com> > > All the gcc.c-torture/compile/limits-externdecl.c currently give an > error: size of array is too large, followed by an ICE in > avr_encode_section_info, which goes on to try to find the address space > of error_mark_node. > > Given the size of the array, it makes sense for the test to give an error > where POINTER_SIZE is 16 bit, but then, we should mark this as an expected > error for this target. > Moreover, we shouldn't ICE after the error. > > The attached patch implements both these changes. > > regression tested for i686-pc-linux-gnu X avr, Running target atmega128-sim > > 2013-05-13 Joern Rennecke <joern.renne...@embecosm.com> > > gcc: > * config/avr/avr.c (avr_encode_section_info): Bail out if the type > is error_mark_node. > gcc/testsuite: > * testsuite/gcc.c-torture/compile/limits-externdecl.c [target > avr-*-*]: > Expect "size of array is too large" error. >
Applied. Denis.