Date: Thu, 25 Jun 1998 12:19:56 -0400 (EDT) From: cmascott@world.std.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/7066: xlint: "warning: integral constant too large" Message-ID: <199806251619.MAA00692@europa.my.pc>
next in thread | raw e-mail | index | archive | help
>Number: 7066 >Category: bin >Synopsis: xlint: "warning: integral constant too large" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 25 09:30:01 PDT 1998 >Last-Modified: >Originator: Carl Mascott >Organization: >Release: FreeBSD 2.2.6-RELEASE i386 >Environment: N/A >Description: Xlint appears to have a bug. It issues many of these: warning: integral constant too large when in fact there is no such problem. >How-To-Repeat: Run xlint (lint) on virtually any C source file. >Fix: It turns out that this is really a bug in gcc 2.7.2.1. Gcc -O fails to compile toicon() in lint1/cgram.c correctly. To work around this: 1. Build xlint normally. 2. Delete lint1/cgram.o. 3. In the top-level xlint directory say make CFLAGS= (define CFLAGS to be empty). This will recompile just lint1/cgram.c without optimization, giving you a new lint1/lint1. NOTE: You MUST do this from the top-level xlint directory, not from the lint1 subdirectory. 4. Install the new lint1 in /usr/libexec. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806251619.MAA00692>