Subject: toolchain/25933: gcc/toolchain minor bug
To: None <gnats-bugs@gnats.NetBSD.org>
From: Chris Ross <cross+netbsd@distal.com>
List: netbsd-bugs
Date: 06/15/2004 09:25:12
>Number: 25933
>Category: toolchain
>Synopsis: Typo (funtion decl. inconsistancy) in gcc sources
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 15 13:26:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Chris Ross
>Release: NetBSD 2.0F (20040614 cvs get of HEAD)
>Organization:
>Environment:
System: NetBSD snafu.distal.com 2.0F NetBSD 2.0F (GENERIC.MP) #0: Sun Jun 13 23:08:43 EDT 2004 cross@snafu.distal.com:/data/src/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
Despite the environment given above, this problem bit me on
a Solaris 10_b54 machine at work, while trying to build NetBSD from
cvs HEAD sources. It caused the compiler (gcc 3.4.0) to harf up
a lung about the inconsistancy in definition/declaration.
There is what I assume is a typo in gcc/f/com.h, where the
definition of a function (ffecom_gfrt_basictype) is different than
it's declaration (in gcc/f/com.c). The same error occurs in two
places, dist/toolchain and dist/gcc.
>How-To-Repeat:
Inspect gcc/f/com.c vs. gcc/f/com.h. The error is fairly
obvious.
>Fix:
Apply and commit the following patch.
Index: gnu/dist/gcc/gcc/f/com.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/gcc/gcc/f/com.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 com.h
--- gnu/dist/gcc/gcc/f/com.h 23 Jul 2003 02:41:20 -0000 1.1.1.1
+++ gnu/dist/gcc/gcc/f/com.h 15 Jun 2004 12:19:09 -0000
@@ -233,7 +233,7 @@
void ffecom_finish_progunit (void);
tree ffecom_get_invented_identifier (const char *pattern, ...)
ATTRIBUTE_PRINTF_1;
-ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
+ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt ix);
ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix);
void ffecom_init_0 (void);
void ffecom_init_2 (void);
Index: gnu/dist/toolchain/gcc/f/com.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/f/com.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 com.h
--- gnu/dist/toolchain/gcc/f/com.h 26 Jul 2000 00:17:57 -0000 1.1.1.1
+++ gnu/dist/toolchain/gcc/f/com.h 15 Jun 2004 12:19:44 -0000
@@ -310,7 +310,7 @@
void ffecom_finish_progunit (void);
tree ffecom_get_invented_identifier (const char *pattern, const char *text,
int number);
-ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
+ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt ix);
ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix);
void ffecom_init_0 (void);
void ffecom_init_2 (void);
>Release-Note:
>Audit-Trail:
>Unformatted: