This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/6924: non-ansi compiler fails on gcc/tradcpp.c
- From: eric dot ladner at chevrontexaco dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 3 Jun 2002 17:58:40 -0000
- Subject: bootstrap/6924: non-ansi compiler fails on gcc/tradcpp.c
- Reply-to: eric dot ladner at chevrontexaco dot com
>Number: 6924
>Category: bootstrap
>Synopsis: non-ansi compiler fails on gcc/tradcpp.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Mon Jun 03 11:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Eric Ladner
>Release: 3.1
>Organization:
>Environment:
HP-UX 11.0
>Description:
HP's non-ansii compiler fails on the function fixup_newlines in tradcpp.c at line 2598.
The reason is that the function prototype for fixup_newlines is an ANSI prototype, not a K&R type prototype.
>How-To-Repeat:
>Fix:
This is the current definition:
static void
fixup_newlines (FILE_BUF *fp)
{
...
This is what it should be:
static void
fixup_newlines (fp)
FILE_BUF *fp;
{
...
>Release-Note:
>Audit-Trail:
>Unformatted: