Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
GCC 4.3 build
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Seo Sanghyeon  
View profile  
 More options Sep 2 2008, 4:25 pm
From: Seo Sanghyeon <sanx...@gmail.com>
Date: Tue, 2 Sep 2008 13:25:50 -0700 (PDT)
Local: Tues, Sep 2 2008 4:25 pm
Subject: GCC 4.3 build
Hello, everybody,

I had to do the following to build V8 on Debian unstable, with GCC
4.3.

$ scons -j2 sample=shell

Resulting shell calculated 1+1. That's all for now.

Index: src/objects-inl.h
===================================================================
--- src/objects-inl.h   (revision 110)
+++ src/objects-inl.h   (working copy)
@@ -246,7 +246,7 @@
 }

-template <> static inline bool Is<JSFunction>(Object* obj) {
+template <> inline bool Is<JSFunction>(Object* obj) {
   return obj->IsJSFunction();
 }

@@ -293,7 +293,7 @@
 }

-template <> static inline bool Is<JSArray>(Object* obj) {
+template <> inline bool Is<JSArray>(Object* obj) {
   return obj->IsJSArray();
 }

Index: SConstruct
===================================================================
--- SConstruct  (revision 110)
+++ SConstruct  (working copy)
@@ -89,7 +89,7 @@
   'gcc': {
     'all': {
       'CXXFLAGS':     [], #['-fvisibility=hidden'],
-      'WARNINGFLAGS': ['-pedantic', '-Wall', '-Werror', '-W',
+      'WARNINGFLAGS': ['-pedantic', '-Wall', '-W',
           '-Wno-unused-parameter']
     },
     'arch:arm': {


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kodanders...@gmail.com  
View profile  
 More options Sep 2 2008, 5:49 pm
From: kodanders...@gmail.com
Date: Tue, 2 Sep 2008 14:49:25 -0700 (PDT)
Local: Tues, Sep 2 2008 5:49 pm
Subject: Re: GCC 4.3 build
The warning is:
src/platform-linux.cc:304: error: array subscript is above array
bounds

On Sep 2, 10:25 pm, Seo Sanghyeon <sanx...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kodanders...@gmail.com  
View profile  
 More options Sep 2 2008, 6:15 pm
From: kodanders...@gmail.com
Date: Tue, 2 Sep 2008 15:15:30 -0700 (PDT)
Local: Tues, Sep 2 2008 6:15 pm
Subject: Re: GCC 4.3 build
To get rid of the warning, I suggest:

Index: src/platform-linux.cc
===================================================================
--- src/platform-linux.cc       (revision 110)
+++ src/platform-linux.cc       (working copy)
@@ -295,7 +295,7 @@
     int bytes_read = -1;
     do {
       bytes_read++;
-      if (bytes_read > MAP_LENGTH - 1)
+      if (bytes_read >= MAP_LENGTH - 1)
         break;
       int result = read(fd, buffer + bytes_read, 1);
       // A read error means that -1 is returned.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google