This is the mail archive of the gcc@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]

Java front-end on m68k-next-nextstep3: parse.y:3980: parse errorbefore `DIR'


Hi,

Here's the scoop:

/nfs/hoser/beer/java/egcs/gcc/java/parse.y: In function  
`read_import_entry':
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3980: parse error before `DIR'
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3979: warning: type of  
`dirp' defaults to `int'
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3985: warning: implicit  
declaration of function `readdir'
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3985: warning:  
initialization makes pointer from integer without a cast
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3993: dereferencing  
pointer to incomplete type
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:3994: dereferencing  
pointer to incomplete type
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:4037: warning: control  
reaches end of non-void function
/nfs/hoser/beer/java/egcs/gcc/java/parse.y: In function  
`read_import_dir':
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:4049: `DIR' undeclared  
(first use in this function)
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:4049: (Each undeclared  
identifier is reported only once
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:4049: for each function  
it appears in.)
/nfs/hoser/beer/java/egcs/gcc/java/parse.y:4049: `dirp' undeclared  
(first use in this function)

And - of course - my build (LANGUAGES="c f77") still fails on:

% stage2/xgcc -Bstage2/ -DIN_GCC -W -Wall -O2 -g -O2 -v -save-temps  
-DHAVE_CONFIG_H -I. -I../../egcs/gcc -I../../egcs/gcc/config  
-I../../egcs/gcc/../include  
-DGCC_INCLUDE_DIR=\"/usr/snp/lib/gcc-lib/m68k-next-nextstep3/egcs-2.92.04/include\"  
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/snp/include/g++-2\"  
-DOLD_GPLUSPLUS_INCLUDE_DIR=\"/usr/snp/lib/g++-include\"  
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\"  
-DCROSS_INCLUDE_DIR=\"/usr/snp/m68k-next-nextstep3/sys-include\"  
-DTOOL_INCLUDE_DIR=\"/usr/snp/m68k-next-nextstep3/include\" -c `echo  
../../egcs/gcc/cccp.c | sed 's,^\./,,'`
Reading specs from stage2/specs
gcc version egcs-2.92.04 19980912 (gcc2 ss-980609 experimental)
 stage2/cpp -lang-c -v -I. -I../../egcs/gcc -I../../egcs/gcc/config  
-I../../egcs/gcc/../include -isystem include -isystem  
stage2/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=92 -Dmc68000  
-Dm68k -DNeXT -Dunix -D__MACH__ -D__BIG_ENDIAN__  
-D__ARCHITECTURE__="m68k" -D_NEXT_SOURCE -D__mc68000__ -D__m68k__  
-D__NeXT__ -D__unix__ -D__MACH__ -D__BIG_ENDIAN__  
-D__ARCHITECTURE__="m68k" -D_NEXT_SOURCE -D__mc68000 -D__m68k  
-D__NeXT -D__unix -Asystem(unix) -Asystem(mach) -Acpu(m68k)  
-Amachine(m68k) -D__OPTIMIZE__ -g -W -Wall -D__STDC__ -D_NEXT_SOURCE  
-DIN_GCC -DHAVE_CONFIG_H  
-DGCC_INCLUDE_DIR="/usr/snp/lib/gcc-lib/m68k-next-nextstep3/egcs-2.92.04/include"  
-DGPLUSPLUS_INCLUDE_DIR="/usr/snp/include/g++-2"  
-DOLD_GPLUSPLUS_INCLUDE_DIR="/usr/snp/lib/g++-include"  
-DLOCAL_INCLUDE_DIR="/usr/local/include"  
-DCROSS_INCLUDE_DIR="/usr/snp/m68k-next-nextstep3/sys-include"  
-DTOOL_INCLUDE_DIR="/usr/snp/m68k-next-nextstep3/include"  
../../egcs/gcc/cccp.c cccp.i
GNU CPP version egcs-2.92.04 19980912 (gcc2 ss-980609 experimental)  
(68k, MIT syntax)
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../egcs/gcc
 ../../egcs/gcc/config
 ../../egcs/gcc/../include
 include
 /usr/local/include
 /NextDeveloper/Headers
 /NextDeveloper/Headers/ansi
 /NextDeveloper/Headers/bsd
 /NextDeveloper/2.0CompatibleHeaders
 /usr/include
 /usr/include/bsd
End of search list.
 stage2/cc1 cccp.i -quiet -dumpbase cccp.c -g -O2 -O2 -W -Wall  
-version -o cccp.s
GNU C version egcs-2.92.04 19980912 (gcc2 ss-980609 experimental)  
(m68k-next-nextstep3) compiled by GNU C version egcs-2.92.04  
19980912 (gcc2 ss-980609 experimental).
../../egcs/gcc/cccp.c: In function `safe_read':
../../egcs/gcc/cccp.c:1073: warning: implicit declaration of  
function `read'
../../egcs/gcc/cccp.c: In function `safe_write':
../../egcs/gcc/cccp.c:1108: warning: implicit declaration of  
function `write'
../../egcs/gcc/expr.c:1265: Internal compiler error in function  
convert_move

For which gdb shows:

(gdb) run cccp.i -quiet -dumpbase cccp.c -g -O2 -O2 -W -Wall  
-version -o cccp.s
Starting program:  
/Users/toon/Unix/compilers/snapshots/obj/gcc/stage2/cc1 cccp.i  
-quiet -dumpbase cccp.c -g -O2 -O2 -W -Wall -version -o cccp.s
GNU C version egcs-2.92.04 19980912 (gcc2 ss-980609 experimental)  
(m68k-next-nextstep3) compiled by GNU C version egcs-2.92.04  
19980912 (gcc2 ss-980609 experimental).
../../egcs/gcc/cccp.c: In function `safe_read':
../../egcs/gcc/cccp.c:1073: warning: implicit declaration of  
function `read'
../../egcs/gcc/cccp.c: In function `safe_write':
../../egcs/gcc/cccp.c:1108: warning: implicit declaration of  
function `write'
../../egcs/gcc/expr.c:1265: Internal compiler error in function  
convert_move

Breakpoint 2, 0x5056468 in exit ()
(gdb) bt
Reading in symbols for ../../egcs/gcc/expr.c...debug info mismatch  
between compiler and debugger...debug info mismatch between compiler  
and debugger...done.
Reading in symbols for ../../egcs/gcc/stmt.c...debug info mismatch  
between compiler and debugger...debug info mismatch between compiler  
and debugger...done.
Reading in symbols for ../../egcs/gcc/c-parse.c...debug info  
mismatch between compiler and debugger...debug info mismatch between  
compiler and debugger...done.
#0  0x5056468 in exit ()
#1  0x3ef1c in convert_move (to=0x1de47a, from=0x1de46e,  
unsignedp=?) at ../../egcs/gcc/expr.c:1265
#2  0x3f100 in convert_modes (mode=SImode, oldmode=QImode,  
x=0x1de46e, unsignedp=?) at ../../egcs/gcc/expr.c:1386
#3  0x3ef56 in convert_to_mode (mode=SImode, x=0x1de46e,  
unsignedp=?) at ../../egcs/gcc/expr.c:1284
#4  0x4694a in expand_expr (exp=0x133084, target=0x6,  
tmode=VOIDmode, modifier=EXPAND_NORMAL) at  
../../egcs/gcc/expr.c:6624
#5  0x3af4e in expand_end_case (orig_index=0x132710) at  
../../egcs/gcc/stmt.c:5014
#6  0x445a in yyparse () at c-parse.y:1789
#7  0x1d67a in compile_file (name=0x3fffc0c "cccp.i") at  
../../egcs/gcc/toplev.c:2773
#8  0x1f992 in main (argc=?, argv=0x74a50) at  
../../egcs/gcc/toplev.c:4846
(gdb) up
#1  0x3ef1c in convert_move (to=0x1de47a, from=0x1de46e,  
unsignedp=?) at ../../egcs/gcc/expr.c:1265
1265      abort ();
(gdb) p *to
$2 = {
  code = REG,
  mode = SImode,
  jump = 0,
  call = 0,
  unchanging = 0,
  volatil = 0,
  in_struct = 0,
  used = 0,
  integrated = 0,
  frame_related = 0,
  fld =     {{
      rtwint = ?,
      rtint = ?,
      rtstr = 0x141Error reading memory address 0x141: No such file  
or directory.
(gdb) p *from
$3 = {
  code = MEM,
  mode = QImode,
  jump = 0,
  call = 0,
  unchanging = 0,
  volatil = 0,
  in_struct = 1,
  used = 0,
  integrated = 0,
  frame_related = 0,
  fld =     {{
      rtwint = ?,
      rtint = ?,
      rtstr = 0x1de462 "",
      rtx = 0x1de462,
      rtvec = 0x1de462,
      rttype = 1959010,
      rt_addr_diff_vec_flags = void,
      rtbit = 0x1de462,
      rttree = 0x1de462
    }}
}
(gdb) p unsignedp
$4 = ?
(gdb) l
1260          emit_move_insn (to, temp);
1261          return;
1262        }
1263
1264      /* Mode combination is not recognized.  */
1265      abort ();
1266    }
1267
1268    /* Return an rtx for a value that would result
1269       from converting X to mode MODE.
(gdb)

It's beyond me why a move from a QImode memory location to an  
SImode register would cause any problems on the m68k ... but perhaps  
someone in the know could point it out to me ...

Cheers,
Toon.


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