http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45478
--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> 2010-11-10 01:28:36 UTC --- Created attachment 22361 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22361 another testcase This was reduced from gcc.target/i386/funcspec-3.c Compiler output: $ gcc -O2 -fno-early-inlining -fno-inline-small-functions testcase.c ==13599== Invalid write of size 4 ==13599== at 0xFEE5BC: decompose_multiword_subregs (lower-subreg.c:51) ==13599== by 0xFEFFB8: rest_of_handle_lower_subreg (lower-subreg.c:1346) ==13599== by 0x799A9E: execute_one_pass (passes.c:1560) ==13599== by 0x799D44: execute_pass_list (passes.c:1615) ==13599== by 0x799D56: execute_pass_list (passes.c:1616) ==13599== by 0x8E6A25: tree_rest_of_compilation (tree-optimize.c:422) ==13599== by 0xAB6E01: cgraph_expand_function (cgraphunit.c:1493) ==13599== by 0xAB93C9: cgraph_optimize (cgraphunit.c:1552) ==13599== by 0xAB9929: cgraph_finalize_compilation_unit (cgraphunit.c:1016) ==13599== by 0x4AC9EB: c_write_global_declarations (c-decl.c:9831) ==13599== by 0x88D9C9: toplev_main (toplev.c:931) ==13599== by 0x6376BBC: (below main) (in /lib64/libc-2.11.2.so) ==13599== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==13599== testcase.c: In function 'foo': testcase.c:12:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Originally, the testcase crashed with: /mnt/svn/gcc-trunk/gcc/testsuite/gcc.target/i386/funcspec-3.c: In function 'main': /mnt/svn/gcc-trunk/gcc/testsuite/gcc.target/i386/funcspec-3.c:27:30: internal compiler error: in memory_address_addr_space, at explow.c:505 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
