and #undef statements related to debugging information.
* pa/pa-hpux.h, pa-hpux7.h: Likewise
* pa/pa.c (override_options): Disable "-g" and issue a warning
if it's used when !TARGET_GAS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12694
138bc75d-0d04-0410-961f-
82ee72b054a4
#undef TARGET_DEFAULT
#define TARGET_DEFAULT 0x88 /* TARGET_GAS + TARGET_JUMP_IN_DELAY */
-
-#define DBX_DEBUGGING_INFO
-#undef DEFAULT_GDB_EXTENSIONS
-#define DEFAULT_GDB_EXTENSIONS 1
#define SIZE_TYPE "unsigned int"
#define PTRDIFF_TYPE "int"
-/* HPUX doesn't use any debugging format that GCC knows about. */
-#undef DBX_DEBUGGING_INFO
-#undef DEFAULT_GDB_EXTENSIONS
-#define DEFAULT_GDB_EXTENSIONS 0
-
/* Like the default, except no -lg. */
#undef LIB_SPEC
#define LIB_SPEC "%{!shared:%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}}"
#define SIZE_TYPE "unsigned int"
#define PTRDIFF_TYPE "int"
-/* HPUX doesn't use any debugging format that GCC knows about. */
-#undef DBX_DEBUGGING_INFO
-#undef DEFAULT_GDB_EXTENSIONS
-#define DEFAULT_GDB_EXTENSIONS 0
-
/* Like the default, except no -lg. */
#undef LIB_SPEC
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}"
warning ("Out of line entry/exit sequences are not compatable\n");
warning ("with PIC or profiling\n");
}
+
+ if (! TARGET_GAS && write_symbols != NO_DEBUG)
+ {
+ warning ("-g is only supported when using GAS on this processor,");
+ warning ("-g option disabled.");
+ write_symbols = NO_DEBUG;
+ }
}