Bugreport: Internal compiler error in function emit_move_insn_1

Job Ganzevoort job@ace.nl
Tue Nov 9 02:48:00 GMT 1999


Dear EGCS maintainers,

This sourcefile:
	struct control
	{
		int alloc[0x4000];
	};
	void memInit(void)
	{
		int i= 0;
		((struct control *)0x10000000)->alloc[i] = 1;
	}

Yields (gcc mem.c, with or without -g, but not with -O):
../../gcc/expr.c:2568: Internal compiler error in function emit_move_insn_1

Version of gcc used: egcs-2.91.66
Machine is Intel PII or Xeon runnin RedHat Linux 6.0

The code is from a shared memory handling routine.  I rewrote it to
	void memInit(void)
	{
		int i= 0;
		int *alloc= ((struct control *)0x10000000)->alloc;
		alloc[i] = 1;
	}
which helped my code to compile.


-- Regards,
	Job

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Job Ganzevoort                                  email: <job@ace.nl>
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
ACE Associated Compiler Experts bv
Van Eeghenstraat 100                            tel: +31 20 6646416
1071 GL  Amsterdam                              fax: +31 20 6750389
The Netherlands                                 www: http://www.ace.nl
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee




More information about the Gcc-bugs mailing list