Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common_elf Error out if we try to build with GCC 3.3...



details:   https://anonhg.NetBSD.org/src/rev/548cc52fe5b9
branches:  trunk
changeset: 569656:548cc52fe5b9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Aug 28 00:19:22 2004 +0000

description:
Error out if we try to build with GCC 3.3 or later; we should be using
the GCC-supplied crtbegin / crtend in the GCC 3.3 or later case.

diffstat:

 lib/csu/common_elf/crtbegin.c |  10 +++++++++-
 lib/csu/common_elf/crtend.c   |  10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 04d113882234 -r 548cc52fe5b9 lib/csu/common_elf/crtbegin.c
--- a/lib/csu/common_elf/crtbegin.c     Sat Aug 28 00:18:38 2004 +0000
+++ b/lib/csu/common_elf/crtbegin.c     Sat Aug 28 00:19:22 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crtbegin.c,v 1.25 2004/08/26 20:51:27 thorpej Exp $    */
+/*     $NetBSD: crtbegin.c,v 1.26 2004/08/28 00:19:22 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1998, 2001, 2002 The NetBSD Foundation, Inc.
@@ -52,6 +52,14 @@
 #include <sys/exec_elf.h>
 #include <stdlib.h>
 
+/*
+ * WE SHOULD BE USING GCC-SUPPLIED crtbegin.o FOR GCC 3.3 AND
+ * LATER!!!
+ */
+#if __GNUC_PREREQ__(3, 3)
+#error "Use GCC-supplied crtbegin.o"
+#endif
+
 #if __GNUC_PREREQ__(3, 0)
 #define        USED_NOINLINE __attribute__((__used__,__noinline__))
 #else
diff -r 04d113882234 -r 548cc52fe5b9 lib/csu/common_elf/crtend.c
--- a/lib/csu/common_elf/crtend.c       Sat Aug 28 00:18:38 2004 +0000
+++ b/lib/csu/common_elf/crtend.c       Sat Aug 28 00:19:22 2004 +0000
@@ -1,8 +1,16 @@
-/*     $NetBSD: crtend.c,v 1.10 2002/11/22 06:44:59 thorpej Exp $      */
+/*     $NetBSD: crtend.c,v 1.11 2004/08/28 00:19:22 thorpej Exp $      */
 
 #include <sys/cdefs.h>
 #include "dot_init.h"
 
+/* 
+ * WE SHOULD BE USING GCC-SUPPLIED crtend.o FOR GCC 3.3 AND      
+ * LATER!!!
+ */
+#if __GNUC_PREREQ__(3, 3)
+#error "Use GCC-supplied crtend.o"
+#endif
+
 static void (*__CTOR_LIST__[1]) __P((void))
     __attribute__((__unused__))
     __attribute__((section(".ctors"))) = { (void *)0 };                /* XXX */



Home | Main Index | Thread Index | Old Index