Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Unknows Pragma
- Subject: [Frama-c-discuss] Unknows Pragma
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Wed, 2 Jun 2010 16:27:56 +0200
- In-reply-to: <AANLkTil11ZhTiw5o2tngZvYTfyxwDyaJyprUSvMjKuBp@mail.gmail.com>
- References: <4BFF8109.10903@tke.fi> <AANLkTinL1AJ0k0C_7D6wqlIEe3uBWvLTy5IxzKzc7lIU@mail.gmail.com> <4C038E06.902@tke.fi> <20100531124550.4fa8f086@is010235> <4C05F087.8000300@tke.fi> <AANLkTil11ZhTiw5o2tngZvYTfyxwDyaJyprUSvMjKuBp@mail.gmail.com>
> Use frama-c with the option: > -cpp-command "gcc -C -E -I. - < ?%1 | gr > %2" Having eaten my own dogfood[1], I found that -cpp-command "gcc -C -E -I. %1 | gr > %2" gives much better results. With this syntax, gcc still sends the pre-processed file to its standard output, but since the name of the file is known, inserted in the pre-processed file, and taken advantage of by Frama-C, you get messages such as: [value] computing for function printf <-sizeof_enum1. Called from tests/misc/enum2.c:25. instead of: [value] computing for function printf <-sizeof_enum1. Called from <stdin>:25. Pascal [1] http://en.wikipedia.org/wiki/Eating_your_own_dog_food
- Follow-Ups:
- [Frama-c-discuss] Unknows Pragma
- From: patrik.nylund at tke.fi (Patrik Nylund)
- [Frama-c-discuss] Unknows Pragma
- References:
- [Frama-c-discuss] Unknows Pragma
- From: patrik.nylund at tke.fi (Patrik Nylund)
- [Frama-c-discuss] Unknows Pragma
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] Unknows Pragma
- Prev by Date: [Frama-c-discuss] Unknows Pragma
- Next by Date: [Frama-c-discuss] Unknows Pragma
- Previous by thread: [Frama-c-discuss] Unknows Pragma
- Next by thread: [Frama-c-discuss] Unknows Pragma
- Index(es):