Hello all,

  This is my first post to cfe-commits, so my apologies if I get
something wrong.
A while back I filed an issue on Bugzilla requesting support for
-fpcc-struct-return:
http://llvm.org/bugs/show_bug.cgi?id=13012

Recently I wrote a real patch for the issue and verified that Clang's
test suite still passes (at least on a 64-bit OSX host, which is
probably meaningless in this context). I don't know how to test the
option properly, and I believe I don't have the necessary credentials
to commit the patch anyway, so basically I'm looking for a patron to
adopt this patch. :)

To observe what the patch does:
  echo "struct S {int i;} foo() {return (struct S){42};}" >foo.c
  clang -m32 -O3 -fomit-frame-pointer foo.c -S -o reg.s
  clang -m32 -O3 -fomit-frame-pointer foo.c -S -o pcc.s -fpcc-struct-return
  diff reg.s pcc.s

The .diff is attached to this email. What should be my next step? Help!

Thanks,
-Arthur

Attachment: fpcc-struct-return-v2.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to