Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 1999 02:31:35 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, peter@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/ppbus immio.c ppbconf.h vpoio.c
Message-ID:  <199904051631.CAA09841@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    sys/dev/ppbus        immio.c ppbconf.h vpoio.c 
>  Log:
>  Make ppbus compile under egcs.  I'm not sure about this casting-to-union-
>  -containing-the-type stuff, but gcc seemed to do it implicitly..

That was a bug in gcc.  Tendra rejects it, e.g.:

tcc: Warning: Unknown option, -pipe.
...
tcc: Warning: Unknown option, -mprofiler-epilogue.
"/usr/local/lib/TenDRA/lib/startup/Bounds.ansi/default.pf", line 12: Error:
  [ISO 6.8.2]: Can't open included file, 'lf'.

"../../dev/ppbus/immio.c", line 1: Error:
  [ISO 6.8.2]: Can't open included file, 'format-extensions'.

"./machine/ansi.h", line 106: Error:
  [ISO 6.5.2]: Illegal type specifier, 'long long', assuming 'long'.

"./machine/ansi.h", line 107: Error:
  [ISO 6.5.2]: Illegal type specifier, 'unsigned long long', assuming 'unsigned long'.

"../../dev/ppbus/immio.c", line 414: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'char *' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 3 is converted to parameter type.

"../../dev/ppbus/immio.c", line 414: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 4 is converted to parameter type.

"../../dev/ppbus/immio.c", line 414: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 5 is converted to parameter type.

"../../dev/ppbus/immio.c", line 430: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'char *' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 3 is converted to parameter type.

"../../dev/ppbus/immio.c", line 430: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 4 is converted to parameter type.

"../../dev/ppbus/immio.c", line 430: Error:
  [ISO 6.3.2.2]: In call of function 'ppb_MS_exec'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.16]: Can't perform this conversion by assignment.
  [ISO 6.3.2.2]: Argument 5 is converted to parameter type.

"../../dev/ppbus/immio.c", line 599: Error:
  [ISO 6.3.1]: The identifier '__FUNCTION__' hasn't been declared in this scope.

"../../dev/ppbus/immio.c", line 614: Error:
  [ISO 6.3.1]: The identifier '__FUNCTION__' hasn't been declared in this scope.

tcc: Warning: Input file 'opt_global.h' not processed.

>  Revision  Changes    Path
>  1.7       +5 -3      src/sys/dev/ppbus/immio.c
>  1.14      +2 -1      src/sys/dev/ppbus/ppbconf.h
>  1.7       +7 -5      src/sys/dev/ppbus/vpoio.c

Tendra rejects the fix, e.g.:

tcc: Warning: Unknown option, -pipe.
...
tcc: Warning: Unknown option, -mprofiler-epilogue.
"/usr/local/lib/TenDRA/lib/startup/Bounds.ansi/default.pf", line 12: Error:
  [ISO 6.8.2]: Can't open included file, 'lf'.

"../../dev/ppbus/immio.c", line 1: Error:
  [ISO 6.8.2]: Can't open included file, 'format-extensions'.

"./machine/ansi.h", line 106: Error:
  [ISO 6.5.2]: Illegal type specifier, 'long long', assuming 'long'.

"./machine/ansi.h", line 107: Error:
  [ISO 6.5.2]: Illegal type specifier, 'unsigned long long', assuming 'unsigned long'.

"../../dev/ppbus/immio.c", line 414: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'char *' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 415: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 415: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 431: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'char *' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 432: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 432: Error:
  [ISO 6.3.4]: Can't cast to the non-scalar type 'union ppb_insarg'.
  [ISO 6.3.4]: Illegal conversion from type 'int' to type 'union ppb_insarg'.
  [ISO 6.3.4]: Can't perform this conversion using an explicit cast.

"../../dev/ppbus/immio.c", line 601: Error:
  [ISO 6.3.1]: The identifier '__FUNCTION__' hasn't been declared in this scope.

"../../dev/ppbus/immio.c", line 616: Error:
  [ISO 6.3.1]: The identifier '__FUNCTION__' hasn't been declared in this scope.

tcc: Warning: Input file 'opt_global.h' not processed.

`gcc -pedantic' also rejects it.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904051631.CAA09841>