This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix alpha gcc.dg/inline-2.c
- From: Richard Henderson <rth at twiddle dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 6 Mar 2004 22:31:07 -0800
- Subject: fix alpha gcc.dg/inline-2.c
Latent bug exposed by
2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
r~
* config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
Index: alpha.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.c,v
retrieving revision 1.356
diff -c -p -d -r1.356 alpha.c
*** alpha.c 6 Mar 2004 18:48:50 -0000 1.356
--- alpha.c 7 Mar 2004 06:28:55 -0000
*************** alpha_in_small_data_p (tree exp)
*** 1595,1600 ****
--- 1595,1604 ----
if (TREE_CODE (exp) == STRING_CST)
return false;
+ /* Functions are never in the small data area. Duh. */
+ if (TREE_CODE (exp) == FUNCTION_DECL)
+ return false;
+
if (TREE_CODE (exp) == VAR_DECL && DECL_SECTION_NAME (exp))
{
const char *section = TREE_STRING_POINTER (DECL_SECTION_NAME (exp));