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]

1.1.1 coredump; known bug?


Compiling the following routine with EGCS 1.1.1 on an AIX 4.3.1 system
results in an eventual coredump (after 'cc1' consumes all available
memory.)  Is this something that's fixed in 1.1.2?


	/*
	 * compile with 'gcc -O -c source.c'
	 * using egcs 2.91.60 on rs6000-ibm-aix4.3.1.0
	 *
	 * EGCS doesn't break if '-O' is not used
	 */
	void
	foo(int *g)
	{
	  /* EGCS doesn't break if 'd' isn't a pointer */
	  static const int *d;
	  int i;

	  /* EGCS doesn't break if subtracted value is less than this */
	  g -= 16385;

	  /* EGCS doesn't break if the next two lines are changed to
	   * either 'i = 0; g[i] = d;' or 'g[0] = *d;'
	   */
	  for (i = 0; i < 1; i++)
	    g[i] = *d;
	}

(Sorry, I don't read this mailing list.  I'd appreciate it if you would
 forward any replies to me...)


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