From 2d66a8d3c1a82c617ca073400eeeb6766b64c768 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Fri, 14 Jan 2011 21:38:17 +0000 Subject: objc-act.c (generate_struct_by_value_array): Do not output a definition for struct_forward_array. 2011-01-14 Ben Elliston * objc-act.c (generate_struct_by_value_array): Do not output a definition for struct_forward_array. From-SVN: r168823 --- gcc/objc/ChangeLog | 5 +++++ gcc/objc/objc-act.c | 10 +--------- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'gcc/objc') diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 5298cfb..780553a 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-14 Ben Elliston + + * objc-act.c (generate_struct_by_value_array): Do not output a + definition for struct_forward_array. + 2011-01-08 Iain Sandoe * objc-act.c (objc_finish_foreach_loop): Mark collection expression diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 6e69070..cfbdb6f 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -558,15 +558,7 @@ generate_struct_by_value_array (void) for (i = 31; i >= 0; i--) if (!aggregate_in_mem[i]) break; - printf ("#define OBJC_MAX_STRUCT_BY_VALUE %d\n\n", i); - - /* The first member of the structure is always 0 because we don't handle - structures with 0 members */ - printf ("static int struct_forward_array[] = {\n 0"); - - for (j = 1; j <= i; j++) - printf (", %d", aggregate_in_mem[j]); - printf ("\n};\n"); + printf ("#define OBJC_MAX_STRUCT_BY_VALUE %d\n", i); } exit (0); -- cgit v1.1