From: jakub Date: Sat, 10 Jan 2009 14:02:12 +0000 (+0000) Subject: PR target/38695 X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=a9467ac5467ebdb358df131c9df20ab467871b40 PR target/38695 * config/arm/arm.c (arm_is_long_call_p): Don't call arm_function_in_section_p if decl isn't a FUNCTION_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143246 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36c5e37a823..22b14d21b36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-10 Jakub Jelinek + + PR target/38695 + * config/arm/arm.c (arm_is_long_call_p): Don't call + arm_function_in_section_p if decl isn't a FUNCTION_DECL. + 2009-01-09 Steven Bosscher * regrename.c (regrename_optimize): Fix dumping. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index afaade0d1cd..dce0a523bd4 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -1,6 +1,7 @@ /* Output routines for GCC for ARM. Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) and Martin Simmons (@harleqn.co.uk). More major hacks by Richard Earnshaw (rearnsha@arm.com). @@ -3360,6 +3361,7 @@ arm_is_long_call_p (tree decl) /* For "f", be conservative, and only cater for cases in which the whole of the current function is placed in the same section. */ if (!flag_reorder_blocks_and_partition + && TREE_CODE (decl) == FUNCTION_DECL && arm_function_in_section_p (decl, current_function_section ())) return false;