Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 1996 17:47:57 -0700 (PDT)
From:      Andrew Moore <alm@slewsys.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/1416: cflow(1) doesn't parse GNU C __attribute__ syntax
Message-ID:  <199607220047.RAA19465@woops.slewsys.org>
Resent-Message-ID: <199607220050.RAA06106@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1416
>Category:       ports
>Synopsis:       cflow(1) doesn't parse GNU C __attribute__ syntax
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 21 17:50:00 PDT 1996
>Last-Modified:
>Originator:     Andrew L. Moore
>Organization:
SlewSys Research
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

	GNU C >= 2.6

>Description:

	The cflow(1) parser does not understand the GNU C __attribute__
	syntax.

>How-To-Repeat:

	Run cflow(1) on source that uses the __attribute__ syntax
	-- e.g., include <sys/cdefs.h>

>Fix:
	
	In the cflow shell script, change the preprocessor
	command line from "cc -E" to "cc -E -D__attribute__(x)="
	This strips both function and variable attributes from the
	input and makes the cflow(1) parser happy.


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607220047.RAA19465>