This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR target/6032
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Mar 2002 16:24:30 +0100
- Subject: [PATCH] Fix PR target/6032
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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