public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
@ 2011-02-15  9:52 ` ro at gcc dot gnu.org
  2011-02-15  9:58 ` ro at gcc dot gnu.org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-15  9:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #43 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-15 09:49:22 UTC ---
Author: ro
Date: Tue Feb 15 09:49:14 2011
New Revision: 170166

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170166
Log:
    PR pch/14940
    * config/alpha/host-osf.c: New file.
    * config/alpha/x-osf: New file.
    * config.host (alpha*-dec-osf*): Use it.

Added:
    trunk/gcc/config/alpha/host-osf.c
    trunk/gcc/config/alpha/x-osf
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config.host


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
  2011-02-15  9:52 ` [Bug pch/14940] PCH largefile test fails on various platforms ro at gcc dot gnu.org
@ 2011-02-15  9:58 ` ro at gcc dot gnu.org
  2011-02-15 10:09 ` ro at gcc dot gnu.org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-15  9:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #44 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-15 09:52:04 UTC ---
Author: ro
Date: Tue Feb 15 09:51:58 2011
New Revision: 170167

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170167
Log:
    PR pch/14940
    * config/alpha/host-osf.c: New file.
    * config/alpha/x-osf: New file.
    * config.host (alpha*-dec-osf*): Use it.

Added:
    branches/gcc-4_5-branch/gcc/config/alpha/host-osf.c
    branches/gcc-4_5-branch/gcc/config/alpha/x-osf
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/config.host


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
  2011-02-15  9:52 ` [Bug pch/14940] PCH largefile test fails on various platforms ro at gcc dot gnu.org
  2011-02-15  9:58 ` ro at gcc dot gnu.org
@ 2011-02-15 10:09 ` ro at gcc dot gnu.org
  2015-05-31  6:22 ` asmwarrior at gmail dot com
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-15 10:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #45 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-15 09:58:04 UTC ---
Author: ro
Date: Tue Feb 15 09:58:01 2011
New Revision: 170168

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170168
Log:
    PR pch/14940
    * config/alpha/host-osf.c: New file.
    * config/alpha/x-osf: New file.
    * config.host (alpha*-dec-osf*): Use it.

Added:
    branches/gcc-4_4-branch/gcc/config/alpha/host-osf.c
    branches/gcc-4_4-branch/gcc/config/alpha/x-osf
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config.host


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-02-15 10:09 ` ro at gcc dot gnu.org
@ 2015-05-31  6:22 ` asmwarrior at gmail dot com
  2015-06-27 18:28 ` xricht17 at stud dot fit.vutbr.cz
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: asmwarrior at gmail dot com @ 2015-05-31  6:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

asmwarrior <asmwarrior at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asmwarrior at gmail dot com

--- Comment #46 from asmwarrior <asmwarrior at gmail dot com> ---
It looks like the windows host has the similar issue, see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56926


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-05-31  6:22 ` asmwarrior at gmail dot com
@ 2015-06-27 18:28 ` xricht17 at stud dot fit.vutbr.cz
  2015-06-28  8:53 ` asmwarrior at gmail dot com
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: xricht17 at stud dot fit.vutbr.cz @ 2015-06-27 18:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

Martin Richter <xricht17 at stud dot fit.vutbr.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xricht17 at stud dot fit.vutbr.cz

--- Comment #47 from Martin Richter <xricht17 at stud dot fit.vutbr.cz> ---
Patch for i386-mingw32:

diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c
index aa17378..7ee6d0b 100644
--- a/gcc/config/i386/host-mingw32.c
+++ b/gcc/config/i386/host-mingw32.c
@@ -42,9 +42,6 @@ static size_t mingw32_gt_pch_alloc_granularity (void);

 static inline void w32_error(const char*, const char*, int, const char*);

-/* FIXME: Is this big enough?  */
-static const size_t pch_VA_max_size  = 128 * 1024 * 1024;
-
 /* Granularity for reserving address space.  */
 static size_t va_granularity = 0x10000;

@@ -86,9 +83,6 @@ static void *
 mingw32_gt_pch_get_address (size_t size, int)
 {
   void* res;
-  size = (size + va_granularity - 1) & ~(va_granularity - 1);
-  if (size > pch_VA_max_size)
-    return NULL;

   /* FIXME: We let system determine base by setting first arg to NULL.
      Allocating at top of available address space avoids unnecessary
@@ -148,7 +142,7 @@ mingw32_gt_pch_use_address (void *addr, size_t size, int
fd,

   /* Offset must be also be a multiple of allocation granularity for
      this to work.  We can't change the offset. */ 
-  if ((offset & (va_granularity - 1)) != 0 || size > pch_VA_max_size)
+  if ((offset & (va_granularity - 1)) != 0)
     return -1;


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-06-27 18:28 ` xricht17 at stud dot fit.vutbr.cz
@ 2015-06-28  8:53 ` asmwarrior at gmail dot com
  2015-07-09 18:47 ` xricht17 at stud dot fit.vutbr.cz
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: asmwarrior at gmail dot com @ 2015-06-28  8:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #48 from asmwarrior <asmwarrior at gmail dot com> ---
Hi, Martin Richter, thanks, I have post this patch link in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56926.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-06-28  8:53 ` asmwarrior at gmail dot com
@ 2015-07-09 18:47 ` xricht17 at stud dot fit.vutbr.cz
  2020-11-11 15:30 ` julien.ruffin at ivu dot de
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: xricht17 at stud dot fit.vutbr.cz @ 2015-07-09 18:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #50 from Martin Richter <xricht17 at stud dot fit.vutbr.cz> ---
The following patch fixes segfault when gt_pch_use_address fails (returns -1).
fatal_error now correctly shows an error message and terminates the program.
I have basicly only reordered reads, and placed them after the file mapping
itself. Global pointers are changed only after gt_pch_use_address succeeds, so
in case of failure they still contain valid addresses.

This patch is meant for the master branch. However, it should not be hard to
modify it for others.


diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index 5096837..f741f2c 100644
--- a/gcc/ggc-common.c
+++ b/gcc/ggc-common.c
@@ -599,7 +599,9 @@ gt_pch_restore (FILE *f)
   size_t i;
   struct mmap_info mmi;
   int result;
-
+  long pch_tabs_off;
+  long pch_data_off;
+  
   /* Delete any deletable objects.  This makes ggc_pch_read much
      faster, as it can be sure that no GCable objects remain other
      than the ones just read in.  */
@@ -607,20 +609,24 @@ gt_pch_restore (FILE *f)
     for (rti = *rt; rti->base != NULL; rti++)
       memset (rti->base, 0, rti->stride);

-  /* Read in all the scalar variables.  */
+  /* We need to read tables after mapping, or fatal_error will
+     segfault when gt_pch_use_address returns -1. Skip them for now. */
+  pch_tabs_off = ftell(f);
+     
+  /* Skip all the scalar variables. */
   for (rt = gt_pch_scalar_rtab; *rt; rt++)
     for (rti = *rt; rti->base != NULL; rti++)
-      if (fread (rti->base, rti->stride, 1, f) != 1)
-       fatal_error (input_location, "can%'t read PCH file: %m");
+      if (fseek (f, rti->stride, SEEK_CUR) != 0)
+        fatal_error (input_location, "can%'t read PCH file: %m");

-  /* Read in all the global pointers, in 6 easy loops.  */
+  /* Skip all the global pointers. */
   for (rt = gt_ggc_rtab; *rt; rt++)
     for (rti = *rt; rti->base != NULL; rti++)
       for (i = 0; i < rti->nelt; i++)
-       if (fread ((char *)rti->base + rti->stride * i,
-                  sizeof (void *), 1, f) != 1)
-         fatal_error (input_location, "can%'t read PCH file: %m");
-
+        if (fseek (f, sizeof (void *), SEEK_CUR) != 0)
+          fatal_error (input_location, "can%'t read PCH file: %m");
+          
+  /* mmi still has to be read now. */          
   if (fread (&mmi, sizeof (mmi), 1, f) != 1)
     fatal_error (input_location, "can%'t read PCH file: %m");

@@ -631,12 +637,35 @@ gt_pch_restore (FILE *f)
   if (result == 0)
     {
       if (fseek (f, mmi.offset, SEEK_SET) != 0
-         || fread (mmi.preferred_base, mmi.size, 1, f) != 1)
-       fatal_error (input_location, "can%'t read PCH file: %m");
+          || fread (mmi.preferred_base, mmi.size, 1, f) != 1)
+        fatal_error (input_location, "can%'t read PCH file: %m");
     }
   else if (fseek (f, mmi.offset + mmi.size, SEEK_SET) != 0)
     fatal_error (input_location, "can%'t read PCH file: %m");
+    
+  /* File mapping done, read tables now. */
+  pch_data_off = ftell(f);
+  
+  if (fseek (f, pch_tabs_off, SEEK_SET) != 0)
+    fatal_error (input_location, "can%'t read PCH file: %m");

+  /* Read in all the scalar variables.  */
+  for (rt = gt_pch_scalar_rtab; *rt; rt++)
+    for (rti = *rt; rti->base != NULL; rti++)
+      if (fread (rti->base, rti->stride, 1, f) != 1)
+        fatal_error (input_location, "can%'t read PCH file: %m");
+
+  /* Read in all the global pointers, in 6 easy loops.  */
+  for (rt = gt_ggc_rtab; *rt; rt++)
+    for (rti = *rt; rti->base != NULL; rti++)
+      for (i = 0; i < rti->nelt; i++)
+        if (fread ((char *)rti->base + rti->stride * i,
+            sizeof (void *), 1, f) != 1)
+          fatal_error (input_location, "can%'t read PCH file: %m");
+
+  if (fseek (f, pch_data_off, SEEK_SET) != 0)
+    fatal_error (input_location, "can%'t read PCH file: %m");
+            
   ggc_pch_read (f, mmi.preferred_base);

   gt_pch_restore_stringpool ();


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2015-07-09 18:47 ` xricht17 at stud dot fit.vutbr.cz
@ 2020-11-11 15:30 ` julien.ruffin at ivu dot de
  2021-05-19 17:37 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: julien.ruffin at ivu dot de @ 2020-11-11 15:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

Julien Ruffin <julien.ruffin at ivu dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |julien.ruffin at ivu dot de

--- Comment #51 from Julien Ruffin <julien.ruffin at ivu dot de> ---
I can confirm Martin's patches in #49 and #50 work on GCC 9.2.0. They solve
silent segfaults when using large PCHs (> 128MB).

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2020-11-11 15:30 ` julien.ruffin at ivu dot de
@ 2021-05-19 17:37 ` redi at gcc dot gnu.org
  2022-05-10  4:52 ` lh_mouse at 126 dot com
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-19 17:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #52 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. patches need to be posted to the gcc-patches mailing list for review, not
here. https://gcc.gnu.org/contribute.html

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2021-05-19 17:37 ` redi at gcc dot gnu.org
@ 2022-05-10  4:52 ` lh_mouse at 126 dot com
  2022-05-10  4:59 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: lh_mouse at 126 dot com @ 2022-05-10  4:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

LIU Hao <lh_mouse at 126 dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lh_mouse at 126 dot com

--- Comment #53 from LIU Hao <lh_mouse at 126 dot com> ---
The patch no longer applies to GCC 12.

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2022-05-10  4:52 ` lh_mouse at 126 dot com
@ 2022-05-10  4:59 ` pinskia at gcc dot gnu.org
  2022-05-10  5:05 ` lh_mouse at 126 dot com
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-10  4:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #54 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to LIU Hao from comment #53)
> The patch no longer applies to GCC 12.

Right because I think this issue has been fixed by r12-5855-g747380f47da0da .

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2022-05-10  4:59 ` pinskia at gcc dot gnu.org
@ 2022-05-10  5:05 ` lh_mouse at 126 dot com
  2022-05-10  5:15 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 58+ messages in thread
From: lh_mouse at 126 dot com @ 2022-05-10  5:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #55 from LIU Hao <lh_mouse at 126 dot com> ---
(In reply to Andrew Pinski from comment #54)
> (In reply to LIU Hao from comment #53)
> > The patch no longer applies to GCC 12.
> 
> Right because I think this issue has been fixed by r12-5855-g747380f47da0da .

No, at least not completely. In 'gcc/config/i386/host-mingw32.cc' there is
still the 128MiB hard limit:

```
/* FIXME: Is this big enough?  */
static const size_t pch_VA_max_size  = 128 * 1024 * 1024;
```

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2022-05-10  5:05 ` lh_mouse at 126 dot com
@ 2022-05-10  5:15 ` pinskia at gcc dot gnu.org
  2022-05-10  8:51 ` jakub at gcc dot gnu.org
  2023-03-01 13:47 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-10  5:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #56 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to LIU Hao from comment #55)
> (In reply to Andrew Pinski from comment #54)
> > (In reply to LIU Hao from comment #53)
> > > The patch no longer applies to GCC 12.
> > 
> > Right because I think this issue has been fixed by r12-5855-g747380f47da0da .
> 
> No, at least not completely. In 'gcc/config/i386/host-mingw32.cc' there is
> still the 128MiB hard limit:
> 
> ```
> /* FIXME: Is this big enough?  */
> static const size_t pch_VA_max_size  = 128 * 1024 * 1024;
> ```

Right, some hosts need to be changed.
Looks like only darwin and linux was fixed.

See r12-5857-g0d5db1dd65b452 for the change done for darwin. Maybe a similar
change is needed for Mingw.

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2022-05-10  5:15 ` pinskia at gcc dot gnu.org
@ 2022-05-10  8:51 ` jakub at gcc dot gnu.org
  2023-03-01 13:47 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 58+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-10  8:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #57 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #56)
> Right, some hosts need to be changed.
> Looks like only darwin and linux was fixed.

Yeah, I said that clearly that other ports need to be changed if they want to
take advantage of it.  I don't have access to those targets, can't test and am
not familiar with them, it is up to the maintainers of those targets or anyone
that is willing to test it...

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2022-05-10  8:51 ` jakub at gcc dot gnu.org
@ 2023-03-01 13:47 ` cvs-commit at gcc dot gnu.org
  14 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-01 13:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940

--- Comment #58 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Yong <jyong@gcc.gnu.org>:

https://gcc.gnu.org/g:f769d22ab685671095525d09ef29eeeed0ae3cee

commit r13-6392-gf769d22ab685671095525d09ef29eeeed0ae3cee
Author: LIU Hao <lh_mouse@126.com>
Date:   Tue May 10 13:19:07 2022 +0800

    gcc: Remove size limit of PCH for *-*-mingw32 hosts

    PCHs can now be relocated, so the size limit makes no sense any more.

    This patch was submited to MSYS2 9 months ago for GCC 12. No issue has been
reported so far.

    Reference:
https://github.com/msys2/MINGW-packages/blob/717d5a5a09e2370e3bd7e12b393a26dbfbe48921/mingw-w64-gcc/0010-Fix-using-large-PCH.patch
    Signed-off-by: LIU Hao <lh_mouse@126.com>

    gcc/ChangeLog:

            PR pch/14940
            * config/i386/host-mingw32.cc (mingw32_gt_pch_get_address):
            Remove the size limit `pch_VA_max_size`

    Signed-off-by: Jonathan Yong <10walls@gmail.com>

^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2010-07-13  9:06 ` ro at gcc dot gnu dot org
@ 2010-07-13  9:07 ` ro at gcc dot gnu dot org
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-13  9:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #42 from ro at gcc dot gnu dot org  2010-07-13 09:07 -------
Subject: Bug 14940

Author: ro
Date: Tue Jul 13 09:07:18 2010
New Revision: 162128

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162128
Log:
        Backport from mainline:
        2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

        PR pch/14940
        * config/host-solaris.c (mmap_fixed): New function.
        (sol_gt_pch_get_address): Use it.
        (sol_gt_pch_use_address): Likewise.

Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/host-solaris.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2010-07-12 11:57 ` ro at gcc dot gnu dot org
@ 2010-07-13  9:06 ` ro at gcc dot gnu dot org
  2010-07-13  9:07 ` ro at gcc dot gnu dot org
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-13  9:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #41 from ro at gcc dot gnu dot org  2010-07-13 09:06 -------
Subject: Bug 14940

Author: ro
Date: Tue Jul 13 09:06:17 2010
New Revision: 162127

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162127
Log:
        Backport from mainline:
        2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

        PR pch/14940
        * config/host-solaris.c (mmap_fixed): New function.
        (sol_gt_pch_get_address): Use it.
        (sol_gt_pch_use_address): Likewise.

Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/config/host-solaris.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2010-06-02 17:29 ` ro at gcc dot gnu dot org
@ 2010-07-12 11:57 ` ro at gcc dot gnu dot org
  2010-07-13  9:06 ` ro at gcc dot gnu dot org
  2010-07-13  9:07 ` ro at gcc dot gnu dot org
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-07-12 11:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #40 from ro at gcc dot gnu dot org  2010-07-12 11:57 -------
Subject: Bug 14940

Author: ro
Date: Mon Jul 12 11:57:16 2010
New Revision: 162074

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162074
Log:
        PR pch/14940
        * config/host-solaris.c (mmap_fixed): New function.
        (sol_gt_pch_get_address): Use it.
        (sol_gt_pch_use_address): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/host-solaris.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-03-01 18:18 ` ro at gcc dot gnu dot org
@ 2010-06-02 17:29 ` ro at gcc dot gnu dot org
  2010-07-12 11:57 ` ro at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-06-02 17:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #39 from ro at gcc dot gnu dot org  2010-06-02 17:28 -------
Subject: Bug 14940

Author: ro
Date: Wed Jun  2 17:28:24 2010
New Revision: 160176

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160176
Log:
        Backport from mainline:
        2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

        PR pch/14940
        * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
        to sol_gt_pch_get_address.
        (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
        64-bit, SPARC and x86.
        (sol_gt_pch_get_address): New function.

Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/host-solaris.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pch/pch.exp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-03-01 14:07 ` ro at gcc dot gnu dot org
@ 2010-03-01 18:18 ` ro at gcc dot gnu dot org
  2010-06-02 17:29 ` ro at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 18:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #38 from ro at gcc dot gnu dot org  2010-03-01 18:17 -------
Fixed for Solaris 2 for 4.5.0:

http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00979.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-03-01 12:45 ` ro at gcc dot gnu dot org
@ 2010-03-01 14:07 ` ro at gcc dot gnu dot org
  2010-03-01 18:18 ` ro at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 14:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #37 from ro at gcc dot gnu dot org  2010-03-01 14:07 -------
Subject: Bug 14940

Author: ro
Date: Mon Mar  1 14:07:12 2010
New Revision: 157145

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157145
Log:
        PR pch/14940
        * gcc.dg/pch/pch.exp: Don't XFAIL largefile.c on i?86-*-solaris2.10.

Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-05-08 21:06 ` mmitchel at gcc dot gnu dot org
@ 2010-03-01 12:45 ` ro at gcc dot gnu dot org
  2010-03-01 14:07 ` ro at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 12:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #36 from ro at gcc dot gnu dot org  2010-03-01 12:44 -------
Subject: Bug 14940

Author: ro
Date: Mon Mar  1 12:44:33 2010
New Revision: 157141

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157141
Log:
        gcc:
        PR pch/14940
        * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
        to sol_gt_pch_get_address.
        (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
        64-bit, SPARC and x86.
        (sol_gt_pch_get_address): New function.

        gcc/testsuite:
        PR pch/14940
        * gcc.dg/pch/pch.exp: Don't XFAIL largefile.c on i?86-*-solaris2.10.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/host-solaris.c
    trunk/gcc/testsuite/gcc.dg/pch/pch.exp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
  2005-12-14 19:25 ` brett dot albertson at stratech dot com
  2007-03-27  3:32 ` mmitchel at gcc dot gnu dot org
@ 2007-05-08 21:06 ` mmitchel at gcc dot gnu dot org
  2010-03-01 12:45 ` ro at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-05-08 21:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #35 from mmitchel at gcc dot gnu dot org  2007-05-08 22:05 -------
Ian Taylor suggests:

The way to fix this is to add a HOST_HOOKS_GT_PCH_GET_ADDRESS to
host-solaris.c.  That hook should try to allocate the space in some
address area that is normally free on Solaris.  See the use of
TRY_EMPTY_VM_SPACE in host-linux.c.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
  2005-12-14 19:25 ` brett dot albertson at stratech dot com
@ 2007-03-27  3:32 ` mmitchel at gcc dot gnu dot org
  2007-05-08 21:06 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-03-27  3:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #34 from mmitchel at gcc dot gnu dot org  2007-03-27 04:31 -------
Just a confirmation that I see this test failing with GCC 4.1 on Solaris as
well.  As Eric says in Comment #11, the symptoms are that, in host-solaris.c
the first call to mmap succeeds (but at the wrong address).  Then, mincore
reports that the pages we want are already mapped, so we can't try the
MAP_FIXED approach.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
@ 2005-12-14 19:25 ` brett dot albertson at stratech dot com
  2007-03-27  3:32 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 58+ messages in thread
From: brett dot albertson at stratech dot com @ 2005-12-14 19:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #33 from brett dot albertson at stratech dot com  2005-12-14 19:24 -------
I think I'm seeing this same problem on Solaris x86.

Executing on host: /var/tmp/gcc_svn/gcc20051214/gcc/xgcc
-B/var/tmp/gcc_svn/gcc2
0051214/gcc/ largefile.c  -O0 -g -I. -S  -o largefile.s    (timeout = 300)
largefile.c:1: fatal error: had to relocate PCH^M
compilation terminated.^M
compiler exited with status 1
output is:
largefile.c:1: fatal error: had to relocate PCH^M
compilation terminated.^M

FAIL: largefile.c -O0 -g (test for excess errors)
Excess errors:
largefile.c:1: fatal error: had to relocate PCH

Should the SPARC fix apply for x86 also?

Brett Albertson


-- 

brett dot albertson at stratech dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brett dot albertson at
                   |                            |stratech dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (7 preceding siblings ...)
  2005-08-04 18:04 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-07  2:48 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-07  2:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-07 02:48 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	danglin@gcc.gnu.org	2005-08-07 02:48:04

Modified files:
	gcc            : ChangeLog config.host 
Added files:
	gcc/config/pa  : pa-host.c x-hpux x-linux 

Log message:
	PR pch/14940
	* config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
	and host_xmake_file using new host configuration files.
	* config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.901&r2=2.2326.2.902
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.host.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.7.12.1&r2=2.7.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/pa-host.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.4.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/x-hpux.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.42.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/x-linux.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.42.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (6 preceding siblings ...)
  2005-08-04 17:54 ` ian at airs dot com
@ 2005-08-04 18:04 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-07  2:48 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-04 18:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-04 18:04 -------
Subject: Re:  PCH largefile test fails on various platforms

> My patch added the largefile test to the 3.4 branch.  I don't think that failing
> a new test can be called a regression.  I expect that the compiler would have
> failed the test before, too, it's just that nobody knew about it.

Ok.

> I would be in favor of backporting to 3.4 any HP/UX fix which fixes the
> largefile test.  But since I don't think it's a regression I don't think it's on
> my plate to do that.  I will probably do it if nobody else does, but not very soon.

I'll try to find the time to test the change in the next few days.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (5 preceding siblings ...)
  2005-08-04 17:41 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-08-04 17:54 ` ian at airs dot com
  2005-08-04 18:04 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-07  2:48 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 58+ messages in thread
From: ian at airs dot com @ 2005-08-04 17:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2005-08-04 17:54 -------
My patch added the largefile test to the 3.4 branch.  I don't think that failing
a new test can be called a regression.  I expect that the compiler would have
failed the test before, too, it's just that nobody knew about it.

Failing the largefile test means that pre-compiled headers will fail
occasionally and effectively unpredictably.  That's why I added the test: so
that at least people will know for which targets PCH is unreliable.

I would be in favor of backporting to 3.4 any HP/UX fix which fixes the
largefile test.  But since I don't think it's a regression I don't think it's on
my plate to do that.  I will probably do it if nobody else does, but not very soon.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (4 preceding siblings ...)
  2005-08-02 19:04 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-04 17:41 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-08-04 17:54 ` ian at airs dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-08-04 17:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-08-04 17:41 -------
Subject: Re:  PCH largefile test fails on various platforms

> Log message:
> 	./
> 	PR pch/14400
> 	Backport from mainline:

With this change largefile.c now fails on hppa2.0w-hp-hpux11.00 on
3.4.  So, we now have a 3.4 regression.  I guess the 4.0 PA fix needs
to be backported.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (3 preceding siblings ...)
  2005-02-15 23:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-02 19:04 ` cvs-commit at gcc dot gnu dot org
  2005-08-04 17:41 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-02 19:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-02 19:03 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ian@gcc.gnu.org	2005-08-02 19:03:46

Modified files:
	gcc            : ChangeLog c-pch.c config.host ggc-common.c 
	                 hooks.c hooks.h hosthooks-def.h hosthooks.h 
	gcc/config/rs6000: host-darwin.c 
	gcc/doc        : hostconfig.texi 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg/pch: pch.exp 
Added files:
	gcc/config     : host-linux.c host-solaris.c x-linux x-solaris 

Log message:
	./
	PR pch/14400
	Backport from mainline:
	
	2005-08-01  Ian Lance Taylor  <ian@airs.com>
	
	* config/host-linux.c (linux_gt_pch_get_address): Add new name
	randomize_va_space for virtual address randomization control.
	
	2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
	
	PR pch/14940
	PR target/19300
	* config/host-linux.c (linux_gt_pch_use_address): Copy from
	config/pa/pa-host.c:pa_gt_pch_use_address.
	
	2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
	
	PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
	definitions.
	
	2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
	
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
	definition.
	
	2004-04-24  Ulrich Weigand  <uweigand@de.ibm.com>
	
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
	and __s390x__ hosts.
	
	2004-04-08  Ian Lance Taylor  <ian@wasabisystems.com>
	
	* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
	Return 1 if file was successfully mapped.
	
	2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
	
	* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
	Fix the check for abort and only do the mmap if we can.
	
	2004-03-12  Andrew Pinski  <apinski@apple.com>
	
	* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
	Use ret instead of result. Use addr instead of base.
	
	2004-03-10  Richard Henderson  <rth@redhat.com>
	
	* c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
	extra arguments.
	* config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
	and host_xmake_file fragments.
	* ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
	(gt_pch_restore): Similarly for gt_pch_use_address.
	(default_gt_pch_get_address): New.
	(mmap_gt_pch_get_address): Split out of gt_pch_save.
	(default_gt_pch_use_address): Split out of gt_pch_restore.
	(mmap_gt_pch_use_address): Likewise.
	* hooks.c (hook_voidp_size_t_null): Remove.
	(hook_bool_voidp_size_t_false): Remove.
	* hooks.h: Likewise.
	* hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
	default_ or mmap_ definitions.
	(HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
	* hosthooks.h (struct host_hooks): Update gt_pch_get_address
	and gt_pch_use_address.
	* config/host-linux.c, config/host-solaris.c: New files.
	* config/x-linux, config/x-solaris: New files.
	* config/rs6000/host-darwin.c darwin_rs6000_gt_pch_get_address):
	Update for changed definition.
	(darwin_rs6000_gt_pch_use_address): Likewise.
	* doc/hostconfig.texi: Update docs.
	testsuite/
	PR pch/14400
	Backport from mainline:
	
	2004-04-07  Ian Lance Taylor  <ian@wasabisystems.com>
	
	* gcc.dg/pch/pch.exp: Add largefile test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.893&r2=2.2326.2.894
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pch.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.19.4.1&r2=1.19.4.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.host.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.7&r2=2.7.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ggc-common.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.78&r2=1.78.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/hooks.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.22.10.2&r2=1.22.10.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/hooks.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.23.10.2&r2=1.23.10.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/hosthooks-def.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3&r2=1.3.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/hosthooks.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.4&r2=1.4.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-linux.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.11.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-solaris.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.3.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/x-linux.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.6.48.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/x-solaris.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.50.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/host-darwin.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.7&r2=1.7.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/hostconfig.texi.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.7&r2=1.7.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.416&r2=1.3389.2.417
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pch/pch.exp.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.8&r2=1.8.18.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
                   ` (2 preceding siblings ...)
  2005-02-13 20:05 ` ebotcazou at gcc dot gnu dot org
@ 2005-02-15 23:42 ` cvs-commit at gcc dot gnu dot org
  2005-08-02 19:04 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-15 23:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-15 20:52 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	phython@gcc.gnu.org	2005-02-15 20:52:14

Modified files:
	gcc            : ChangeLog 
	gcc/config     : host-linux.c 

Log message:
	2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
	
	PR pch/14940
	PR target/19300
	* config/host-linux.c (linux_gt_pch_use_address): Copy from
	config/pa/pa-host.c:pa_gt_pch_use_address.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7484&r2=2.7485
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-linux.c.diff?cvsroot=gcc&r1=1.6&r2=1.7



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
  2005-02-11 12:03 ` jsm28 at gcc dot gnu dot org
  2005-02-11 12:48 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-02-13 20:05 ` ebotcazou at gcc dot gnu dot org
  2005-02-15 23:42 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-13 20:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-13 11:52 -------
> This is now "fixed" on the PA.  You might look at pa-host.c to if the
> adopted work around might help other ports.

Alas, that doesn't work on SPARC/Solaris.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
  2005-02-11 12:03 ` jsm28 at gcc dot gnu dot org
@ 2005-02-11 12:48 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-02-13 20:05 ` ebotcazou at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-02-11 12:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-02-11 02:07 -------
Subject: Re:  PCH largefile test fails on various platforms

> ------- Additional Comments From jsm28 at gcc dot gnu dot org  2005-02-11
> 01:54 -------
> Also fails on ia64-hpux.

This is now "fixed" on the PA.  You might look at pa-host.c to if the
adopted work around might help other ports.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
       [not found] <20040413135721.14940.ian@airs.com>
@ 2005-02-11 12:03 ` jsm28 at gcc dot gnu dot org
  2005-02-11 12:48 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 58+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-02-11 12:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jsm28 at gcc dot gnu dot org  2005-02-11 01:54 -------
Also fails on ia64-hpux.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (22 preceding siblings ...)
  2004-11-27 16:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-30  3:11 ` cvs-commit at gcc dot gnu dot org
  23 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-30  3:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-30 03:11 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2004-11-30 03:11:29

Modified files:
	gcc            : ChangeLog config.host 
Added files:
	gcc/config/pa  : pa-host.c x-hpux x-linux 

Log message:
	PR pch/14940
	* config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
	* config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
	and host_xmake_file using new host configuration files.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6636&r2=2.6637
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.host.diff?cvsroot=gcc&r1=2.11&r2=2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/pa-host.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/x-hpux.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/x-linux.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (21 preceding siblings ...)
  2004-11-23  2:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-27 16:57 ` cvs-commit at gcc dot gnu dot org
  2004-11-30  3:11 ` cvs-commit at gcc dot gnu dot org
  23 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-27 16:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-27 16:57 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2004-11-27 16:57:06

Modified files:
	gcc            : ChangeLog 
	gcc/config     : host-linux.c 

Log message:
	PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6586&r2=2.6587
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-linux.c.diff?cvsroot=gcc&r1=1.5&r2=1.6



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (20 preceding siblings ...)
  2004-11-09 12:35 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-23  2:30 ` cvs-commit at gcc dot gnu dot org
  2004-11-27 16:57 ` cvs-commit at gcc dot gnu dot org
  2004-11-30  3:11 ` cvs-commit at gcc dot gnu dot org
  23 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-23  2:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-23 02:30 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2004-11-23 02:29:40

Modified files:
	gcc            : ChangeLog 
	gcc/config     : host-linux.c 

Log message:
	PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6476&r2=2.6477
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-linux.c.diff?cvsroot=gcc&r1=1.4&r2=1.5



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (19 preceding siblings ...)
  2004-11-04  7:09 ` ebotcazou at gcc dot gnu dot org
@ 2004-11-09 12:35 ` cvs-commit at gcc dot gnu dot org
  2004-11-23  2:30 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-09 12:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-09 12:35 -------
Subject: Bug 14940

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	phython@gcc.gnu.org	2004-11-09 12:35:16

Modified files:
	gcc            : ChangeLog 
	gcc/config     : host-linux.c 

Log message:
	2004-11-07  James A. Morrison  <phython@gcc.gnu.org>
	
	PR pch/14940
	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
	definitions.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6237&r2=2.6238
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/host-linux.c.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (18 preceding siblings ...)
  2004-11-04  4:57 ` phython at gcc dot gnu dot org
@ 2004-11-04  7:09 ` ebotcazou at gcc dot gnu dot org
  2004-11-09 12:35 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-11-04  7:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-11-04 07:09 -------
> + #elif defined(__sparc__)
> + # define TRY_EMPTY_VM_SPACE	0x60000000
> 
>  Also works for sparc-linux and largefile.c on sparc64-linux.  Unfortunatly,
> there are other pch failures on sparc64-linux.

I'm a bit skeptical about using the same value for the 32-bit and the 64-bit
flavors, but I'm not a specialist of Linux on the SPARC at all.  I'd suggest to
contact David S. Miller (see the MAINTAINERS file).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phython at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (17 preceding siblings ...)
  2004-10-12 19:56 ` jgrimm2 at us dot ibm dot com
@ 2004-11-04  4:57 ` phython at gcc dot gnu dot org
  2004-11-04  7:09 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-11-04  4:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2004-11-04 04:57 -------
+ #elif defined(__sparc__)
+ # define TRY_EMPTY_VM_SPACE	0x60000000

 Also works for sparc-linux and largefile.c on sparc64-linux.  Unfortunatly,
there are other pch failures on sparc64-linux.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (16 preceding siblings ...)
  2004-08-31 14:20 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-10-12 19:56 ` jgrimm2 at us dot ibm dot com
  2004-11-04  4:57 ` phython at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: jgrimm2 at us dot ibm dot com @ 2004-10-12 19:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jgrimm2 at us dot ibm dot com  2004-10-12 19:56 -------
patch for powerpc64-linux-gnu:
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01037.html


Index: gcc/config/host-linux.c
===================================================================
RCS file: /home/jgrimm/gcc-cvs/gcc/gcc/config/host-linux.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 host-linux.c
*** gcc/config/host-linux.c	24 Apr 2004 00:33:18 -0000	1.2
--- gcc/config/host-linux.c	12 Oct 2004 21:35:47 -0000
***************
*** 75,80 ****
--- 75,82 ----
  # define TRY_EMPTY_VM_SPACE	0x8000000000
  #elif defined(__s390__)
  # define TRY_EMPTY_VM_SPACE	0x60000000
+ #elif defined(__powerpc__)
+ # define TRY_EMPTY_VM_SPACE	0x60000000
  #else
  # define TRY_EMPTY_VM_SPACE	0
  #endif



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (15 preceding siblings ...)
  2004-08-21 17:05 ` pinskia at gcc dot gnu dot org
@ 2004-08-31 14:20 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-10-12 19:56 ` jgrimm2 at us dot ibm dot com
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-08-31 14:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-08-31 14:20 -------
Subject: Re:  PCH largefile test fails on various platforms

I have noted in testing in the past week that changing kernels on
hppa-linux can break PCH.  Rerunning the libstdc++-v3 testsuite
after a kernel change sometimes causes nearly all the tests to
fail.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (14 preceding siblings ...)
  2004-07-20 17:49 ` pinskia at gcc dot gnu dot org
@ 2004-08-21 17:05 ` pinskia at gcc dot gnu dot org
  2004-08-31 14:20 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-21 17:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-21 17:05 -------
*** Bug 17131 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cato at df dot lth dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (13 preceding siblings ...)
  2004-07-18 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-07-20 17:49 ` pinskia at gcc dot gnu dot org
  2004-08-21 17:05 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-20 17:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-20 17:49 -------
The freebsd problem is PR 16646.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (12 preceding siblings ...)
  2004-07-18 12:26 ` ian at wasabisystems dot com
@ 2004-07-18 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-07-20 17:49 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-07-18 16:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-07-18 16:03 -------
Subject: Re:  PCH largefile test fails on various platforms

> Btw, the test fails on PA/Linux too?

Yes.  I had one libstdc++ testsuite run recently where this problem
caused nearly all the tests to fail.  It's not just a problem with
largefile.c.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (11 preceding siblings ...)
  2004-07-18 10:00 ` ebotcazou at gcc dot gnu dot org
@ 2004-07-18 12:26 ` ian at wasabisystems dot com
  2004-07-18 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ian at wasabisystems dot com @ 2004-07-18 12:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at wasabisystems dot com  2004-07-18 12:25 -------
Subject: Re:  PCH largefile test fails on various platforms

"ebotcazou at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

> Btw, the test fails on PA/Linux too?

Add an appropriate definition of TRY_EMPTY_VM_SPACE in
gcc/config/host-linux.c.

Ian


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (10 preceding siblings ...)
  2004-07-17 17:10 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-07-18 10:00 ` ebotcazou at gcc dot gnu dot org
  2004-07-18 12:26 ` ian at wasabisystems dot com
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-18 10:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-07-18 10:00 -------
> Is that because a page is mapped in the PCH memory region, or because
> the mmap call with MAP_FIXED fails to return the desired address?

The former IIRC.

> HP-UX doesn't have mincore.  It might be possible to write a routine
> to probe the region.  However, it's not going to fix the problem if
> extant pages can be mapped in the PCH memory region.

Btw, the test fails on PA/Linux too?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (9 preceding siblings ...)
  2004-07-17 15:43 ` ebotcazou at gcc dot gnu dot org
@ 2004-07-17 17:10 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-07-18 10:00 ` ebotcazou at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-07-17 17:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-07-17 17:10 -------
Subject: Re:  PCH largefile test fails on various platforms

> ------- Additional Comments From ebotcazou at gcc dot gnu dot org
> 2004-07-17 15:43 -------
> Note also that, although the mincore() trick is functional on Solaris, it
> doesn't solve the problem in general because the largefile test fails on all
> versions I tested (Solaris 2.5.1, 2.6, 7, 8 and 9).

Is that because a page is mapped in the PCH memory region, or because
the mmap call with MAP_FIXED fails to return the desired address?

HP-UX doesn't have mincore.  It might be possible to write a routine
to probe the region.  However, it's not going to fix the problem if
extant pages can be mapped in the PCH memory region.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (8 preceding siblings ...)
  2004-07-17 14:43 ` ian at wasabisystems dot com
@ 2004-07-17 15:43 ` ebotcazou at gcc dot gnu dot org
  2004-07-17 17:10 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-17 15:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-07-17 15:43 -------
Note also that, although the mincore() trick is functional on Solaris, it
doesn't solve the problem in general because the largefile test fails on all
versions I tested (Solaris 2.5.1, 2.6, 7, 8 and 9).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (7 preceding siblings ...)
  2004-07-17 14:20 ` ian at wasabisystems dot com
@ 2004-07-17 14:43 ` ian at wasabisystems dot com
  2004-07-17 15:43 ` ebotcazou at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ian at wasabisystems dot com @ 2004-07-17 14:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at wasabisystems dot com  2004-07-17 14:43 -------
I should add that always using MAP_FIXED will cause the new mmap to clobber any
existing memory maps, which will lead to silent failure if the GC code (or the
library malloc code) happens to have mapped any portion of that memory space. 
So using MAP_FIXED does not work in general.  For an example of how it can be
used on some systems, see gcc/config/host-solaris.c, which uses mincore() to
explicitly check whether anything else is mapped in that address space.  But
note that that code does not work on, e.g., GNU/Linux, because mincore() does
not work as expected--it does not detect anonymous maps.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (6 preceding siblings ...)
  2004-07-17  4:21 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-07-17 14:20 ` ian at wasabisystems dot com
  2004-07-17 14:43 ` ian at wasabisystems dot com
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ian at wasabisystems dot com @ 2004-07-17 14:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at wasabisystems dot com  2004-07-17 14:20 -------
Subject: Re:  PCH largefile test fails on various platforms

Some hosts override the default mmap call.  See, e.g.,
config/host-linux.c.  So whether this works is indeed host dependent.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (5 preceding siblings ...)
  2004-07-17  4:10 ` pinskia at gcc dot gnu dot org
@ 2004-07-17  4:21 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-07-17 14:20 ` ian at wasabisystems dot com
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-07-17  4:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-07-17 04:21 -------
Subject: Re:  PCH largefile test fails on various platforms

> Actually this is target independent and only host dependent.

Do you think we could set or fallback to MAP_FIXED?  If we can't, the
mmap call can fail on all hosts and the problem is not host dependent.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (4 preceding siblings ...)
  2004-07-17  4:09 ` pinskia at gcc dot gnu dot org
@ 2004-07-17  4:10 ` pinskia at gcc dot gnu dot org
  2004-07-17  4:21 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-17  4:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-17 04:10 -------
Actually this is target independent and only host dependent.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|                            |i386-unknown-netbsdelf1.6.1,
                   |                            |hppa*-hp-hpux*, hppa*-
                   |                            |unknown-linux
 GCC target triplet|i386-unknown-netbsdelf1.6.1 |
                   |hppa*-hp-hpux*, hppa*-      |
                   |unknown-linux-              |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (3 preceding siblings ...)
  2004-04-14 18:49 ` ljrittle at gcc dot gnu dot org
@ 2004-07-17  4:09 ` pinskia at gcc dot gnu dot org
  2004-07-17  4:10 ` pinskia at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-17  4:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-17 04:09 -------
*** Bug 16599 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
                   ` (2 preceding siblings ...)
  2004-04-13 19:48 ` geoffk at gcc dot gnu dot org
@ 2004-04-14 18:49 ` ljrittle at gcc dot gnu dot org
  2004-07-17  4:09 ` pinskia at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ljrittle at gcc dot gnu dot org @ 2004-04-14 18:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ljrittle at gcc dot gnu dot org  2004-04-14 17:52 -------
Confirmed on i386-unknown-freebsd4.9 with yesterday's tree-ssa build.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
  2004-04-13 16:35 ` [Bug pch/14940] " ebotcazou at gcc dot gnu dot org
  2004-04-13 16:55 ` pinskia at gcc dot gnu dot org
@ 2004-04-13 19:48 ` geoffk at gcc dot gnu dot org
  2004-04-14 18:49 ` ljrittle at gcc dot gnu dot org
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2004-04-13 19:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From geoffk at gcc dot gnu dot org  2004-04-13 18:56 -------
The Cygwin problems are 11341.

I've added the two BSD maintainers to the CC.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thorpej at wasabisystems dot
                   |                            |com, ljrittle at acm dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
  2004-04-13 16:35 ` [Bug pch/14940] " ebotcazou at gcc dot gnu dot org
@ 2004-04-13 16:55 ` pinskia at gcc dot gnu dot org
  2004-04-13 19:48 ` geoffk at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-13 16:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-13 16:09 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   GCC host triplet|i386-unknown-netbsdelf1.6.1 |
 GCC target triplet|                            |i386-unknown-netbsdelf1.6.1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-13 16:09:15
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug pch/14940] PCH largefile test fails on various platforms
  2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
@ 2004-04-13 16:35 ` ebotcazou at gcc dot gnu dot org
  2004-04-13 16:55 ` pinskia at gcc dot gnu dot org
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 58+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-04-13 16:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940


^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2023-03-01 13:47 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14940-4@http.gcc.gnu.org/bugzilla/>
2011-02-15  9:52 ` [Bug pch/14940] PCH largefile test fails on various platforms ro at gcc dot gnu.org
2011-02-15  9:58 ` ro at gcc dot gnu.org
2011-02-15 10:09 ` ro at gcc dot gnu.org
2015-05-31  6:22 ` asmwarrior at gmail dot com
2015-06-27 18:28 ` xricht17 at stud dot fit.vutbr.cz
2015-06-28  8:53 ` asmwarrior at gmail dot com
2015-07-09 18:47 ` xricht17 at stud dot fit.vutbr.cz
2020-11-11 15:30 ` julien.ruffin at ivu dot de
2021-05-19 17:37 ` redi at gcc dot gnu.org
2022-05-10  4:52 ` lh_mouse at 126 dot com
2022-05-10  4:59 ` pinskia at gcc dot gnu.org
2022-05-10  5:05 ` lh_mouse at 126 dot com
2022-05-10  5:15 ` pinskia at gcc dot gnu.org
2022-05-10  8:51 ` jakub at gcc dot gnu.org
2023-03-01 13:47 ` cvs-commit at gcc dot gnu.org
     [not found] <bug-14940-1313@http.gcc.gnu.org/bugzilla/>
2005-12-14 19:25 ` brett dot albertson at stratech dot com
2007-03-27  3:32 ` mmitchel at gcc dot gnu dot org
2007-05-08 21:06 ` mmitchel at gcc dot gnu dot org
2010-03-01 12:45 ` ro at gcc dot gnu dot org
2010-03-01 14:07 ` ro at gcc dot gnu dot org
2010-03-01 18:18 ` ro at gcc dot gnu dot org
2010-06-02 17:29 ` ro at gcc dot gnu dot org
2010-07-12 11:57 ` ro at gcc dot gnu dot org
2010-07-13  9:06 ` ro at gcc dot gnu dot org
2010-07-13  9:07 ` ro at gcc dot gnu dot org
     [not found] <20040413135721.14940.ian@airs.com>
2005-02-11 12:03 ` jsm28 at gcc dot gnu dot org
2005-02-11 12:48 ` dave at hiauly1 dot hia dot nrc dot ca
2005-02-13 20:05 ` ebotcazou at gcc dot gnu dot org
2005-02-15 23:42 ` cvs-commit at gcc dot gnu dot org
2005-08-02 19:04 ` cvs-commit at gcc dot gnu dot org
2005-08-04 17:41 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-04 17:54 ` ian at airs dot com
2005-08-04 18:04 ` dave at hiauly1 dot hia dot nrc dot ca
2005-08-07  2:48 ` cvs-commit at gcc dot gnu dot org
2004-04-13 14:48 [Bug pch/14940] New: " ian at wasabisystems dot com
2004-04-13 16:35 ` [Bug pch/14940] " ebotcazou at gcc dot gnu dot org
2004-04-13 16:55 ` pinskia at gcc dot gnu dot org
2004-04-13 19:48 ` geoffk at gcc dot gnu dot org
2004-04-14 18:49 ` ljrittle at gcc dot gnu dot org
2004-07-17  4:09 ` pinskia at gcc dot gnu dot org
2004-07-17  4:10 ` pinskia at gcc dot gnu dot org
2004-07-17  4:21 ` dave at hiauly1 dot hia dot nrc dot ca
2004-07-17 14:20 ` ian at wasabisystems dot com
2004-07-17 14:43 ` ian at wasabisystems dot com
2004-07-17 15:43 ` ebotcazou at gcc dot gnu dot org
2004-07-17 17:10 ` dave at hiauly1 dot hia dot nrc dot ca
2004-07-18 10:00 ` ebotcazou at gcc dot gnu dot org
2004-07-18 12:26 ` ian at wasabisystems dot com
2004-07-18 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
2004-07-20 17:49 ` pinskia at gcc dot gnu dot org
2004-08-21 17:05 ` pinskia at gcc dot gnu dot org
2004-08-31 14:20 ` dave at hiauly1 dot hia dot nrc dot ca
2004-10-12 19:56 ` jgrimm2 at us dot ibm dot com
2004-11-04  4:57 ` phython at gcc dot gnu dot org
2004-11-04  7:09 ` ebotcazou at gcc dot gnu dot org
2004-11-09 12:35 ` cvs-commit at gcc dot gnu dot org
2004-11-23  2:30 ` cvs-commit at gcc dot gnu dot org
2004-11-27 16:57 ` cvs-commit at gcc dot gnu dot org
2004-11-30  3:11 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).