diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-11 17:01:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-11 17:01:13 +0000 |
commit | 5f016e2cb5d11daeb237544de1c5d59f20fe1a6e (patch) | |
tree | 8b6bfcb8783d16827f896d5facbd4549300e8a1e /INPUTS | |
parent | a5f182095bf2065ca94f1c86957ee91f9068964b (diff) |
Stage two of getting CFE top correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'INPUTS')
-rw-r--r-- | INPUTS/Cocoa_h.m | 2 | ||||
-rw-r--r-- | INPUTS/carbon_h.c | 4 | ||||
-rw-r--r-- | INPUTS/iostream.cc | 5 | ||||
-rw-r--r-- | INPUTS/macro_pounder_fn.c | 17 | ||||
-rw-r--r-- | INPUTS/macro_pounder_obj.c | 16 |
5 files changed, 44 insertions, 0 deletions
diff --git a/INPUTS/Cocoa_h.m b/INPUTS/Cocoa_h.m new file mode 100644 index 0000000000..e6ba59924d --- /dev/null +++ b/INPUTS/Cocoa_h.m @@ -0,0 +1,2 @@ + +#import <Cocoa/Cocoa.h> diff --git a/INPUTS/carbon_h.c b/INPUTS/carbon_h.c new file mode 100644 index 0000000000..599f123a36 --- /dev/null +++ b/INPUTS/carbon_h.c @@ -0,0 +1,4 @@ + +#include <Carbon/Carbon.h> + +//#import<vecLib/vecLib.h> diff --git a/INPUTS/iostream.cc b/INPUTS/iostream.cc new file mode 100644 index 0000000000..eb12fc9aaf --- /dev/null +++ b/INPUTS/iostream.cc @@ -0,0 +1,5 @@ +// clang -I/usr/include/c++/4.0.0 -I/usr/include/c++/4.0.0/powerpc-apple-darwin8 -I/usr/include/c++/4.0.0/backward INPUTS/iostream.cc -Eonly + +#include <iostream> + +#include <stdint.h> diff --git a/INPUTS/macro_pounder_fn.c b/INPUTS/macro_pounder_fn.c new file mode 100644 index 0000000000..73f40a1d6d --- /dev/null +++ b/INPUTS/macro_pounder_fn.c @@ -0,0 +1,17 @@ + +// This pounds on macro expansion for performance reasons. This is currently +// heavily constrained by darwin's malloc. + +// Function-like macros. +#define A0(A, B) A B +#define A1(A, B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) A0(A,B) +#define A2(A, B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) A1(A,B) +#define A3(A, B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) A2(A,B) +#define A4(A, B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) A3(A,B) +#define A5(A, B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) A4(A,B) +#define A6(A, B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) A5(A,B) +#define A7(A, B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) A6(A,B) +#define A8(A, B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) A7(A,B) + +A8(a, b) + diff --git a/INPUTS/macro_pounder_obj.c b/INPUTS/macro_pounder_obj.c new file mode 100644 index 0000000000..d2465f34ed --- /dev/null +++ b/INPUTS/macro_pounder_obj.c @@ -0,0 +1,16 @@ + +// This pounds on macro expansion for performance reasons. This is currently +// heavily constrained by darwin's malloc. + +// Object-like expansions +#define A0 a b +#define A1 A0 A0 A0 A0 A0 A0 +#define A2 A1 A1 A1 A1 A1 A1 +#define A3 A2 A2 A2 A2 A2 A2 +#define A4 A3 A3 A3 A3 A3 A3 +#define A5 A4 A4 A4 A4 A4 A4 +#define A6 A5 A5 A5 A5 A5 A5 +#define A7 A6 A6 A6 A6 A6 A6 +#define A8 A7 A7 A7 A7 A7 A7 + +A8 |