aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-19 19:01:42 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-19 19:01:42 -0400
commit7bd7a75601476a02198e84dbc3c270c7af968cdf (patch)
tree8e357fa96dddda565e29554c17470fbb198e0261 /gcc
parentc3647fe082f202dd4b648e72ab483f23c5107c68 (diff)
downloadgcc-7bd7a75601476a02198e84dbc3c270c7af968cdf.zip
gcc-7bd7a75601476a02198e84dbc3c270c7af968cdf.tar.gz
gcc-7bd7a75601476a02198e84dbc3c270c7af968cdf.tar.bz2
(ASM_SPEC): If GNU as is the default, then pass -g to the assembler if -malpha-as.
(ASM_SPEC): If GNU as is the default, then pass -g to the assembler if -malpha-as. If GNU as is not the default, then pass -g to the assembler is not -mgas. From-SVN: r10478
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index 27ccb50..d8ace7a 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -42,15 +42,6 @@ Boston, MA 02111-1307, USA. */
#define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
-/* No point in running CPP on our assembler output. */
-/* In OSF/1 v3.2c, the assembler by default does not output file names which
- causes mips-tfile to fail. Passing -g to the assembler fixes this problem.
- ??? Stricly speaking, we only need -g if the user specifies -g. Passing
- it always means that we get slightly larger than necessary object files
- if the user does not specify -g. If we don't pass -g, then mips-tfile
- will need to be fixed to work in this case. */
-#define ASM_SPEC "-g -nocpp %{pg}"
-
/* Under OSF/1, -p and -pg require -lprof1. */
#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} %{a:-lprof2} -lc"
@@ -2022,6 +2013,20 @@ do { \
#define PUT_SDB_EPILOGUE_END(NAME)
+/* No point in running CPP on our assembler output. */
+#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GAS) != 0
+/* Don't pass -g to GNU as, because some versions don't accept this option. */
+#define ASM_SPEC "%{malpha-as:-g} -nocpp %{pg}"
+#else
+/* In OSF/1 v3.2c, the assembler by default does not output file names which
+ causes mips-tfile to fail. Passing -g to the assembler fixes this problem.
+ ??? Stricly speaking, we only need -g if the user specifies -g. Passing
+ it always means that we get slightly larger than necessary object files
+ if the user does not specify -g. If we don't pass -g, then mips-tfile
+ will need to be fixed to work in this case. */
+#define ASM_SPEC "%{!mgas:-g} -nocpp %{pg}"
+#endif
+
/* Specify to run a post-processor, mips-tfile after the assembler
has run to stuff the ecoff debug information into the object file.
This is needed because the Alpha assembler provides no way