bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-cflow] how to handle redefines, in particular the ellipsis symb


From: Sergey Poznyakoff
Subject: Re: [bug-cflow] how to handle redefines, in particular the ellipsis symbol
Date: Mon, 09 Nov 2009 02:13:10 +0200

Larry Evans <address@hidden> ha escrit:

> address@hidden:~$ cflow --version
> cflow (GNU cflow) 1.2

That version is old, but it turned out that 1.3 performs poorly on
gcc sources as well. Thanks for reporting. This led me to fixing
a minor bug in the parser and improving performance on deeply nested
recursive calls. The fixed version is available here:

  ftp://download.gnu.org.ua/pub/alpha/cflow/cflow-1.3.1-20091109.tar.bz2

Please give it a try.
  
> This is given by the attached cflow.mk file.

Oh my :) That's clearly an overkill. You are trying to define
all preprocessor symbols instead of leaving this job to the cpp.

I used the following cflow.rc (of course, you would need to
adjust include paths):

# cflow.rc begins
-I /home/gray/src/gcc
-I /home/gray/src/gcc/gcc
-I /home/gray/src/gcc/include
-I /home/gray/src/gcc/host-i686-pc-linux-gnu/gcc
-I /home/gray/src/gcc/libcpp/include/
--symbol __const:type
--symbol __restrict:type
-D__extension__=
-D__attribute__\\(c\\)=
-D__asm__\\(c\\)=
-D__inline__
-D__inline
# cflow.rc ends

Cflow was called from /home/gray/src/gcc/gcc/cp this way:

  CFLOWRC=./cflow.rc cflow -b *.c > out.cf
  
The version 1.3.1 produced a flowchart without warnings.

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]