pa-gas.h (DBX_DEBUGGING_INFO): Remove all #define and #undef statements related to...
authorJeff Law <law@gcc.gnu.org>
Tue, 10 Sep 1996 16:43:47 +0000 (10:43 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 10 Sep 1996 16:43:47 +0000 (10:43 -0600)
        * pa/pa-gas.h (DBX_DEBUGGING_INFO): Remove all #define
        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.

From-SVN: r12694

gcc/config/pa/pa-gas.h
gcc/config/pa/pa-hpux.h
gcc/config/pa/pa-hpux7.h
gcc/config/pa/pa.c

index 44a4a748d8871edbc7045bfd05382a4441285b76..d7da9e733b129deb62306236edf7db2d06fc0dd8 100644 (file)
@@ -19,7 +19,3 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #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
index 3459982e9bc7629456b67c345c1042b98fbfe53c..e001ebe438c83f530ed9ad704db2e889511fc46e 100644 (file)
@@ -28,11 +28,6 @@ Boston, MA 02111-1307, USA.  */
 #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}}"
index 68e476e7caf9b815ecdc1313ba881d5e812b28a9..dc75ec28b109081ddc310db006dfc16f229d1a56 100644 (file)
@@ -29,11 +29,6 @@ Boston, MA 02111-1307, USA.  */
 #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}"
index c2d7058e48cf61f87ed6ac4e0bc502111be0d66b..e8647079612366135ae45d4480bceb32f6c10bfe 100644 (file)
@@ -131,6 +131,13 @@ override_options ()
       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;
+    }
 }