This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: New optimization, partitioning hot/cold basic blocks


On Saturday, April 10, 2004, at 02:00 PM, Andrew Pinski wrote:
This patch implements my suggestions and I tested on i686-openbsd3.1 which does not support .section.

@@ -221,15 +222,15 @@ unlikely_text_section (void)
&& (in_section != in_named
|| strcmp (in_named_name, UNLIKELY_EXECUTED_TEXT_SECTION_NAME) != 0))
{
-#ifdef TARGET_ASM_NAMED_SECTION
-
+ if (targetm.have_named_sections)
named_section (NULL_TREE, UNLIKELY_EXECUTED_TEXT_SECTION_NAME, 0);
-
-#else
+ else
+ {
in_section = in_unlikely_executed_text;
- fprintf (asm_out_file, SECTION_FORMAT_STRING,
- UNLIKELY_EXECUTED_TEXT_SECTION_NAME);
-#endif /* ifdef TARGET_ASM_NAMED_SECTION */
+ ASM_OUTPUT_ALIGN (asm_out_file, 2);
+ fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
+ }
+

I don't favor tracking this case in in_section. See readonly_data_section for an example of status quo. It it were to be tracked, it should be tracked when UNLIKELY_SECTION_ASM_OP is defined on the platform, and only then, just like all the other ones, see in_section for what I mean.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]