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] Fix PR target/6032


Hi!

Instead of conditioning all -K PIC or -k in ASM_SPEC in all headers
with %{!p:%{fprofile-arcs:   }}, the following looks far easier.

2002-03-22  Jakub Jelinek  <jakub@redhat.com>

	PR target/6032
	* config/sparc/sparc.h (OVERRIDE_OPTIONS): Disable
	profiling, not pic, if both are used together.

--- gcc/config/sparc/sparc.h.jj	Wed Mar 20 23:26:43 2002
+++ gcc/config/sparc/sparc.h	Fri Mar 22 16:25:20 2002
@@ -384,10 +384,9 @@ Unrecognized value in TARGET_CPU_DEFAULT
       {									\
 	if (flag_pic)							\
 	  {								\
-	    const char *const pic_string = (flag_pic == 1) ? "-fpic" : "-fPIC";\
-	    warning ("%s and profiling conflict: disabling %s",		\
-		     pic_string, pic_string);				\
-	    flag_pic = 0;						\
+	    warning ("%s and profiling conflict: disabling profiling",	\
+		     (flag_pic == 1) ? "-fpic" : "-fPIC");		\
+	    profile_flag = profile_arc_flag = 0;			\
 	  }								\
 	flag_omit_frame_pointer = 0;					\
       }									\

	Jakub


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