(CC1_SPEC): Don't output implicit -gstabs or -gcoff option
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 24 Feb 1995 22:42:30 +0000 (14:42 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 24 Feb 1995 22:42:30 +0000 (14:42 -0800)
if user gave an explicit one.

From-SVN: r9065

gcc/config/i960/i960.h

index dc4ca45cee61e38eabd8c39bf0f90089f28937bc..f140f7f2188bf21c31045bad7074116bf313f596 100644 (file)
@@ -53,12 +53,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define SIGNED_CHAR_SPEC "%{!fsigned-char:%{!mic*:-D__CHAR_UNSIGNED__}}"
 #endif
 
-/* Specs for the compiler, to handle processor variations.  */
+/* Specs for the compiler, to handle processor variations. 
+   If the user gives an explicit -gstabs or -gcoff option, then do not
+   try to add an implicit one, as this will fail.  */
 #define CC1_SPEC \
        "%{!mka:%{!mkb:%{!msa:%{!msb:%{!mmc:%{!mca:%{!mcc:%{!mcf:-mkb}}}}}}}}\
-       %{mbout:%{g*:-gstabs}}\
-       %{mcoff:%{g*:-gcoff}}\
-       %{!mbout:%{!mcoff:%{g*:-gstabs}}}"
+        %{!gs*:%{!gc*:%{mbout:%{g*:-gstabs}}\
+                      %{mcoff:%{g*:-gcoff}}\
+                      %{!mbout:%{!mcoff:%{g*:-gstabs}}}}}"
 
 /* Specs for the assembler, to handle processor variations.
    For compatibility with Intel's gnu960 tool chain, pass -A options to