From owner-freebsd-bugs Thu Jun 25 09:30:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA05602 for freebsd-bugs-outgoing; Thu, 25 Jun 1998 09:30:26 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA05592 for ; Thu, 25 Jun 1998 09:30:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA02836; Thu, 25 Jun 1998 09:30:02 -0700 (PDT) Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA04066 for ; Thu, 25 Jun 1998 09:20:29 -0700 (PDT) (envelope-from cmascott@world.std.com) Received: from world.std.com by europe.std.com (8.7.6/BZS-8-1.0) id MAA27055; Thu, 25 Jun 1998 12:20:25 -0400 (EDT) Received: from europa.my.pc (world-f.std.com) by world.std.com (TheWorld/Spike-2.0) id AA23352; Thu, 25 Jun 1998 12:20:22 -0400 Received: (from cem@localhost) by europa.my.pc (8.8.8/8.8.8) id MAA00692; Thu, 25 Jun 1998 12:19:56 -0400 (EDT) (envelope-from cem) Message-Id: <199806251619.MAA00692@europa.my.pc> Date: Thu, 25 Jun 1998 12:19:56 -0400 (EDT) From: cmascott@world.std.com Reply-To: cmascott@world.std.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7066: xlint: "warning: integral constant too large" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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