This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

bootstrap/6924: non-ansi compiler fails on gcc/tradcpp.c


>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:


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