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]

[Xtensa]: revert a redundant portion of previous patch


While applying my previous patch to the 3.3 branch, I noticed that the __PIC__ 
and __pic__ macros are already defined in TARGET_CPU_CPP_BUILTINS.  I had 
incorrectly added them to linux.h based on a patch to the 3.2 version of the 
code.  The new definitions are completely redundant, so I've backed out that 
portion of the patch (on both mainline and 3.3 branch).

2003-04-25  Bob Wilson  <bob dot wilson at acm dot org>

	* config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
	addition of __PIC__ and __pic__ macros.
	* config/xtensa/xtensa.h: Clean up indentation.

Index: linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/linux.h,v
retrieving revision 1.8
diff -c -3 -r1.8 linux.h
*** linux.h	26 Apr 2003 00:06:50 -0000	1.8
--- linux.h	26 Apr 2003 00:35:50 -0000
***************
*** 26,33 ****
      builtin_define ("__ELF__");					\
      builtin_define ("__gnu_linux__");				\
      builtin_assert ("system=posix");				\
-     builtin_define ("__PIC__");					\
-     builtin_define ("__pic__");					\
    } while (0)
  
  #undef SUBTARGET_CPP_SPEC
--- 26,31 ----
Index: xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.29
diff -c -3 -r1.29 xtensa.h
*** xtensa.h	26 Apr 2003 00:06:50 -0000	1.29
--- xtensa.h	26 Apr 2003 00:35:50 -0000
***************
*** 214,220 ****
  #define SUBTARGET_CPP_SPEC ""
  #endif
  
! #define EXTRA_SPECS                                             \
    { "subtarget_cpp_spec", SUBTARGET_CPP_SPEC },
  
  #ifdef __XTENSA_EB__
--- 214,220 ----
  #define SUBTARGET_CPP_SPEC ""
  #endif
  
! #define EXTRA_SPECS							\
    { "subtarget_cpp_spec", SUBTARGET_CPP_SPEC },
  
  #ifdef __XTENSA_EB__

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