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]

Enable -fomit-frame-pointer on i386


Hi,
in the case we are taking seriuosly the switch to omitting frame pointer this
time, I think we shall do it earlier than later.  This patch imitate what
x86-64 does already so there shall not be too many showstoppers.
I verified that with current CVS gdb I can debug without problems.
(most of older GDBs segfaults when seeing location lists)

Bootstrapped/regtested i386, OK?

Honza

2004-02-08  Jan Hubicka  <jh@suse.cz>
	* i386.c (override_options): Enable -fomit-frame-pointer and
	-fasynchronous-unwind-tables by default on i386.
Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.645
diff -c -3 -p -r1.645 i386.c
*** config/i386/i386.c	4 Feb 2004 20:27:02 -0000	1.645
--- config/i386/i386.c	7 Feb 2004 22:57:42 -0000
*************** override_options (void)
*** 1139,1161 ****
  
    int const pta_size = ARRAY_SIZE (processor_alias_table);
  
    /* Set the default values for switches whose default depends on TARGET_64BIT
       in case they weren't overwritten by command line options.  */
    if (TARGET_64BIT)
      {
-       if (flag_omit_frame_pointer == 2)
- 	flag_omit_frame_pointer = 1;
-       if (flag_asynchronous_unwind_tables == 2)
- 	flag_asynchronous_unwind_tables = 1;
        if (flag_pcc_struct_return == 2)
  	flag_pcc_struct_return = 0;
      }
    else
      {
-       if (flag_omit_frame_pointer == 2)
- 	flag_omit_frame_pointer = 0;
-       if (flag_asynchronous_unwind_tables == 2)
- 	flag_asynchronous_unwind_tables = 0;
        if (flag_pcc_struct_return == 2)
  	flag_pcc_struct_return = DEFAULT_PCC_STRUCT_RETURN;
      }
--- 1139,1157 ----
  
    int const pta_size = ARRAY_SIZE (processor_alias_table);
  
+   if (flag_omit_frame_pointer == 2)
+     flag_omit_frame_pointer = 1;
+   if (flag_asynchronous_unwind_tables == 2)
+     flag_asynchronous_unwind_tables = 1;
    /* Set the default values for switches whose default depends on TARGET_64BIT
       in case they weren't overwritten by command line options.  */
    if (TARGET_64BIT)
      {
        if (flag_pcc_struct_return == 2)
  	flag_pcc_struct_return = 0;
      }
    else
      {
        if (flag_pcc_struct_return == 2)
  	flag_pcc_struct_return = DEFAULT_PCC_STRUCT_RETURN;
      }


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