re PR target/25376 (section attribute doesn't work on darwin)
authorJosh Conner <jconner@apple.com>
Mon, 13 Feb 2006 18:12:17 +0000 (18:12 +0000)
committerJosh Conner <jconner@gcc.gnu.org>
Mon, 13 Feb 2006 18:12:17 +0000 (18:12 +0000)
commit4c553323a6f4d90e48002ea23b7f779c106ad620
tree6029d89fb50bcba47971911b85b26ad5671431a7
parente98aa197b7f0810908fd4f8504fe87cb615eaeea
re PR target/25376 (section attribute doesn't work on darwin)

PR target/25376
* varasm.c (function_section): Check for section name before
calling select_section on targets that define
USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
unlikely_text_section instead of hot_function_section if
first_function_block_is_cold.
* gcc.dg/pr25376.c: New test.

* gcc.c-torture/compile/pr23237.c: Only compile test -- don't
assemble.
* lib/target-supports.exp (check_named_sections_available):
Only compile named-sections test -- don't assemble.

From-SVN: r110917
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr23237.c
gcc/testsuite/gcc.dg/pr25376.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp
gcc/varasm.c