[PTLsim-devel] error while compiling gcc benchmark with ptlcall_switch_to_sim()

Manabi
Mon Mar 24 04:04:49 EDT 2008


Hello,
I want to compile benchmark gcc with ptlcall_switch_to_sim(). I have
inserted this call in toplev.c at line 2217
  // Instrumented for PTLsim:
  ptlcall_switch_to_sim();

  /* Initialize yet another pass.  */

  if (!output_bytecode)
    init_final (main_input_filename);

But when I compile including ptlcalls.h I get this error
c-typeck.c:42:21: error: macro "strchr" requires 2 arguments, but only 1
given
c-typeck.c:42: error: 'strchr' redeclared as different kind of symbol


By the way it compiles fine without the ptlcall_switch_to_sim() call.  Other
benchmarks also compile fine. Can anyone help me with this matter?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://ptlsim.org/pipermail/ptlsim-devel/attachments/20080324/62aba46b/attachment.html 


More information about the PTLsim-devel mailing list