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]

No Subject


Hi,
	just build a new compiler this was one of the two problems I found.
 It dissapears when compiling with the -O option.
However, if I do so other problems occur in other source files.
The whole project compiled fine under : gcc version egcs-2.91.10 980221 
(gcc-2.8.0 release) without -O option.

I extracted the piece of problem code from my soource file ( see below).

/***********************************************************************  
*******/
/*
FILE: test.c

COMPILING FROM:
Windows NT - Cygwin32 B20.1

COMPILING WITH:
Binutils-2.9.1 with patch binutils-2.9.1-coldfire-990206.diff, 
target=m68k-coff
EGCS-1.1.2, target=m68k-coff
newlib-1.8.0

COMMAND-LINE:
bash-2.02$ gcc68 -v -c -ansi -Wall -m5200 -mnobitfield test.c -o test.o
Reading specs from 
\\e\ProgramFiles\cygnus\cygwin-b20\gcc-m68k\lib\gcc-lib\m68k-coff\egcs-2  
.91.66\specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 
\\e\ProgramFiles\cygnus\cygwin-b20\gcc-m68k\lib\gcc-lib\m68k-coff\egcs-2  
.91.66\cpp.exe -lang-c89 -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 
-trigraphs -D__STRICT_ANSI__ -D__mc68000__ -D__embedded__ -D__mc68000 
-Asystem(embedded) -Amachine(mc68000) -Wall -D__mcf5200__ -D__mcf5200 
test.c D:\TEMP\ccDf9IOi.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (68k, Motorola 
syntax)
#include "..." search starts here:
#include <...> search starts here:
 
\\e\ProgramFiles\cygnus\cygwin-b20\gcc-m68k\lib\gcc-lib\m68k-coff\egcs-2  
.91.66\include
 \\e\ProgramFiles\cygnus\cygwin-b20\gcc-m68k\m68k-coff\include
End of search list.
 
\\e\ProgramFiles\cygnus\cygwin-b20\gcc-m68k\lib\gcc-lib\m68k-coff\egcs-2  
.91.66\cc1.exe D:\TEMP\ccDf9IOi.i -quiet -dumpbase test.c -m5200 
-mnobitfield -ansi -Wall -ansi -version -o D:\TEMP\ccsuLKvQ.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (m68k-coff) 
compiled by
 GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
expr.c:2568: Internal compiler error in function emit_move_insn_1
bash-2.02$

*/

typedef struct {
  int	cs [8];
} CS5206;

void
Init_CPU (void)
{
  register int	i;

#if 1
  /* this goes wrong :
	expr.c:2568: Internal compiler error in function emit_move_insn_1
  */
  for (i = 3; i < 8; i++) {
    ((CS5206 *) (0x04000064) ) ->cs [i] = 0 ;
  }
#else
  /* this compiles fine */
    ((CS5206 *) (0x04000000 +0x064) ) ->cs [3] = 0 ;
    ((CS5206 *) (0x04000000 +0x064) ) ->cs [4] = 0 ;
    ((CS5206 *) (0x04000000 +0x064) ) ->cs [5] = 0 ;
    ((CS5206 *) (0x04000000 +0x064) ) ->cs [6] = 0 ;
    ((CS5206 *) (0x04000000 +0x064) ) ->cs [7] = 0 ;
#endif
}
/***********************************************************************  
******/

============================================
Paul Janssen
Software Engineer

SPaSE bv.			http://www.spase.com
Kerkenbos 1021		tel.: +31 24 378 2882
6546 BB Nijmegen		fax.: +31 24 378 8388
The Netherlands		mailto:paulja@spase.nl
============================================




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