*.mk configuration files modified for compatibility with latest version

of Mentor Sourcery CodeBench Lite toolchain
(https://sourcery.mentor.com/GNUToolchain/release2641).
All detected issues fixed.
This commit is contained in:
Serge Vakulenko
2014-04-24 21:06:37 -07:00
parent 1b15bcff49
commit b98de3368e
14 changed files with 95 additions and 71 deletions

View File

@@ -83,6 +83,7 @@ enum {
LIDENT, /* .ident */
LWEAK, /* .weak */
LLOCAL, /* .local */
LNAN, /* .nan */
};
/*
@@ -731,6 +732,9 @@ int lookacmd ()
case 'm':
if (! strcmp (".mask", name)) return (LMASK);
break;
case 'n':
if (! strcmp (".nan", name)) return (LNAN);
break;
case 'p':
if (! strcmp (".previous", name)) return (LPREVIOUS);
break;
@@ -2212,6 +2216,12 @@ void pass1 ()
uerror ("bad parameter of .end");
cval = lookname();
break;
case LNAN:
/* .nan name */
clex = getlex (&cval);
if (clex != LNAME)
uerror ("bad parameter of .nan");
break;
case LTYPE:
/* .type name,type */
if (getlex (&cval) != LNAME)
@@ -2661,8 +2671,12 @@ int main (argc, argv)
break;
case 'I': /* include dir */
// TODO
while (*++cp);
--cp;
if (cp[1] == 0) {
i++;
} else {
while (*++cp);
--cp;
}
break;
case 'O': /* optimization level */
// TODO

View File

@@ -226,7 +226,7 @@ RDHWR Read Hardware Register Allows unprivileged acce
RDPGPR Read GPR from Previous Shadow Set Rt = SGPR[SRSCtl.PSS, Rd]
RESTORE Restore registers and deallocate stack See Architecture Reference Manual
frame (MIPS16eª only)
frame (MIPS16e only)
ROTR Rotate Word Right Rd = Rt[sa-1..0] || Rt[31..sa]

View File

@@ -1534,7 +1534,7 @@ int get_value()
value = get_num();
else {
++cmdptr;
switch (c) {
switch ((int)c) {
case '(': /* nesting */
value = eval_sub();
break;

View File

@@ -92,7 +92,7 @@ SECTIONS
*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)
}
.sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
/* Adjust the address for the data segment. */

View File

@@ -13,7 +13,7 @@ OBJS = battlestar.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o
init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \
_globals.o _dayfile.o _nightfile.o dayobjs.o nightobjs.o words.o \
curses.o doprnt.o
LIBS =
LIBS = -lc
MAN = battlestar.0
MANSRC = battlestar.6

View File

@@ -12,7 +12,7 @@ CFLAGS += -Os -mips16 -Werror -Wall
OBJS = main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \
dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \
assorted.o game.o globals.o misc.o parties.o sync.o version.o doprnt.o
LIBS = -lcurses -ltermcap
LIBS = -lcurses -ltermcap -lc
MAN = sail.0
MANSRC = sail.6

View File

@@ -357,7 +357,7 @@ Sync()
switch (*p++ = getc(sync_fp)) {
case '\n':
p--;
case EOF:
case (char)EOF:
break;
default:
if (p >= buf + sizeof buf)

View File

@@ -17,7 +17,7 @@ OBJS = abandon.o attack.o autover.o capture.o check_out.o checkcond.o
ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
shield.o snova.o srscan.o systemname.o torped.o utility.o \
visual.o warp.o win.o
LIBS = -lm
LIBS = -lm -lc
MAN = trek.0
MANSRC = trek.6

View File

@@ -120,8 +120,6 @@ main(argc, argv)
char **argv;
{
long vect;
/* extern FILE *f_log; */
register char opencode;
int prio;
register int ac;
register char **av;
@@ -132,7 +130,6 @@ main(argc, argv)
av++;
time(&vect);
srand(vect);
opencode = 'w';
prio = PRIO;
if (ioctl(1, TIOCGETP, &argp) == 0)
{
@@ -143,10 +140,6 @@ main(argc, argv)
{
switch (av[0][1])
{
case 'a': /* append to log file */
opencode = 'a';
break;
case 'f': /* set fast mode */
Etc.fast++;
break;
@@ -179,10 +172,6 @@ main(argc, argv)
}
if (ac > 2)
syserr(0, "arg count");
/*
if (ac > 1)
f_log = fopen(av[0], opencode);
*/
printf("\n * * * S T A R T R E K * * *\n\nPress return to continue.\n");