]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
authorDavid O'Brien <obrien@FreeBSD.org>
Fri, 1 Nov 2002 22:21:31 +0000 (22:21 +0000)
committerDavid O'Brien <obrien@gcc.gnu.org>
Fri, 1 Nov 2002 22:21:31 +0000 (22:21 +0000)
2002-11-01  David O'Brien  <obrien@FreeBSD.org>
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
Add comment.

Approved by:  Mark Mitchell <mark@codesourcery.com>
              Message-ID: <15490000.1036182355@warlock.codesourcery.com>

From-SVN: r58731

gcc/ChangeLog
gcc/config/sparc/freebsd.h

index 6ee80175b474c32041ecf0356c1a3585abffcc4c..f7b390f88bbb4bc1250773471a22a72896ed4467 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-01  David O'Brien  <obrien@FreeBSD.org>
+
+       * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
+       Add comment.
+
 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
 
        * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
index 67f17d036aa0573ffff96ce917d7d7ace6b582a3..8c641368e6b60d253ab1ec6f8c9ed91e810b713b 100644 (file)
@@ -18,11 +18,13 @@ You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-/* FreeBSD needs's the platform name (sparc64) defined.  */
+/* FreeBSD needs's the platform name (sparc64) defined.
+   Emacs needs to know if the arch is 64 or 32-bits.  */
 
 #undef  CPP_CPU64_DEFAULT_SPEC
-#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__"
+#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__ -D__arch64__"
 
+/* Because we include sparc/sysv4.h.  */
 #undef  CPP_PREDEFINES
 #define CPP_PREDEFINES FBSD_CPP_PREDEFINES