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]

[PATCH] profiledbootstrap


Hi Jan,

profiledbootstrap still does not work (at least on i386 and s390) due to
PR 14684. The patch proposed in the PR by Kelley Cook was not applied on mainline.

I've limited the patch to enable only -funroll-loops as you suggested in the PR. 
With the patch applied profiledbootstrap survives on i386 and s390.


OK?

Bye,

-Andreas-

2004-10-27  Andreas Krebbel  <krebbel@de.ibm.com>
            patch originally created by Kelley Cook  <kcook@gcc.gnu.org>

	PR middle-end/14684
	* opts.c (OPT_fprofile_generate): Default to -funroll-loops 
	to match -fprofile-use.

Index: gcc/opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.c,v
retrieving revision 1.83
diff -p -c -r1.83 opts.c
*** gcc/opts.c	14 Oct 2004 18:29:17 -0000	1.83
--- gcc/opts.c	27 Oct 2004 11:13:52 -0000
*************** common_handle_option (size_t scode, cons
*** 854,859 ****
--- 854,861 ----
          flag_profile_values = value;
        if (!flag_value_profile_transformations_set)
          flag_value_profile_transformations = value;
+       if (!flag_unroll_loops_set)
+ 	flag_unroll_loops = value;
  #ifdef HAVE_prefetch
        if (0 && !flag_speculative_prefetching_set)
  	flag_speculative_prefetching = value;


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