[cfe-commits] [PATCH] Merge function types is C.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Nov 26 21:03:21 PST 2012


> Why do you not merge functions with no prototype?

The idea was to ignore k&r functions. The rules there seem really
strange. For example, we get a null merge type with

char *rindex(s, c)
     register char *s, c;
{
  return 0;
}

and even if we ignore  those, codegen expects the type from the definition in

int svc_register (void (*dispatch) (int));
int svc_register (dispatch)
     void (*dispatch) ();
{
}

Cheers,
Rafael



More information about the cfe-commits mailing list