|
From: Frederic T. <fre...@ca...> - 2005-03-31 09:58:56
|
Hi All,
When i try to make the valgrind distrib on my linux machine, with the
intel compiler (v8.1), it fails while compiling the vg_symtypes.c file :
vg_symtypes.c(751): error: expected a ";"
void newvar(Char *name, SymType *ty, Addr valuep, UInt size) {
^
vg_symtypes.c(772): warning #12: parsing restarts here after previous syntax error
v->name = VG_(arena_strdup)(VG_AR_SYMTAB, name);
It seem to not like this syntax of inline a c function in another.
Does anybody seen that before ?
Thanks
Fred
|
|
From: Julian S. <js...@ac...> - 2005-03-31 10:28:31
|
> vg_symtypes.c(751): error: expected a ";"
> void newvar(Char *name, SymType *ty, Addr valuep, UInt size) {
> ^
>
> vg_symtypes.c(772): warning #12: parsing restarts here after previous
> syntax error v->name = VG_(arena_strdup)(VG_AR_SYMTAB, name);
>
>
> It seem to not like this syntax of inline a c function in another.
>
> Does anybody seen that before ?
Yes :-)
You can't build valgrind using icc, unfortunately. We really ought
to get rid of those nested functions as it would be nice to be able
to use icc, but this never seems to get to a high-enough priority.
J
|
|
From: Tom H. <to...@co...> - 2005-03-31 10:32:10
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
>> vg_symtypes.c(751): error: expected a ";"
>> void newvar(Char *name, SymType *ty, Addr valuep, UInt size) {
>> ^
>>
>> vg_symtypes.c(772): warning #12: parsing restarts here after previous
>> syntax error v->name = VG_(arena_strdup)(VG_AR_SYMTAB, name);
>>
>>
>> It seem to not like this syntax of inline a c function in another.
>>
>> Does anybody seen that before ?
>
> Yes :-)
>
> You can't build valgrind using icc, unfortunately. We really ought
> to get rid of those nested functions as it would be nice to be able
> to use icc, but this never seems to get to a high-enough priority.
I thought I got rid of them all a few months back... Has somebody put
one back in again?
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Nicholas N. <nj...@cs...> - 2005-03-31 14:50:41
|
On Thu, 31 Mar 2005, Tom Hughes wrote: >> You can't build valgrind using icc, unfortunately. We really ought >> to get rid of those nested functions as it would be nice to be able >> to use icc, but this never seems to get to a high-enough priority. > > I thought I got rid of them all a few months back... Has somebody put > one back in again? There are two in vg_symtypes.c, at least one in hg_main.c. They should be removed. N |