xlc@AIX problems building egcs-19980517. configure questions.
Jeffrey A Law
law@cygnus.com
Wed May 20 22:53:00 GMT 1998
In message < 199805201655.MAA12012@caip.rutgers.edu >you write:
> I don't think this problem should be fixed using platform
> specific CFLAGS. It might still be broken for other host's native
> stage1 compiler.
Right.
> What really needs to be done is to change the type of the
> parameter argument `c' in functions type_from_format and
> accessor_from_format in gengenrtl.c from `char' to `int'. Then the
> default promotion rules will make it work. That should cure the above
> error message.
Right. The code is actually incorrect -- ANSI does not allow a
prototype to specify an item smaller than an int if the function
uses an old-style definition.
GNU C allows this as an extension.
> Please try the following patch and let me know if it works for
> you.
I believe your patch is correct. Please install it.
jeff
More information about the Gcc-bugs
mailing list