public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-20  6:05 ` kurt at intricatesoftware dot com
  2011-11-20  7:11 ` kurt at intricatesoftware dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: kurt at intricatesoftware dot com @ 2011-11-20  6:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Kurt Miller <kurt at intricatesoftware dot com> 2011-11-20 03:29:51 UTC ---
Created attachment 25864
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25864
PCH Supoort for OpenBSD

Attached is a patch against gcc-4.6.2 which uses brk/sbrk for PCH support.
Since malloc uses mmap the heap is unused and at a fixed address (so long as
PIE is not enabled on gcc). I originally wrote this in 2008 for 4.2 and has
been in use


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

* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
  2011-11-20  6:05 ` [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support kurt at intricatesoftware dot com
@ 2011-11-20  7:11 ` kurt at intricatesoftware dot com
  2012-01-28  5:50 ` [Bug pch/39618] " pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: kurt at intricatesoftware dot com @ 2011-11-20  7:11 UTC (permalink / raw)
  To: gcc-bugs

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

Kurt Miller <kurt at intricatesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kurt at intricatesoftware
                   |                            |dot com

--- Comment #3 from Kurt Miller <kurt at intricatesoftware dot com> 2011-11-20 03:31:22 UTC ---
... since then without issues.

OpenBSD uses random mmap() return addresses. malloc uses mmap and the runtime
linker randomizes shared library load addresses, thus using mmap as a fixed
address is rather difficult on OpenBSD.


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

* [Bug pch/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
  2011-11-20  6:05 ` [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support kurt at intricatesoftware dot com
  2011-11-20  7:11 ` kurt at intricatesoftware dot com
@ 2012-01-28  5:50 ` pinskia at gcc dot gnu.org
  2012-02-04 21:10 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-28  5:50 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Target|i386-unknown-openbsd4.5     |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-28
          Component|bootstrap                   |pch
     Ever Confirmed|0                           |1
              Build|i386-unknown-openbsd4.5     |

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 05:34:14 UTC ---
Confirmed.


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

* [Bug pch/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2012-01-28  5:50 ` [Bug pch/39618] " pinskia at gcc dot gnu.org
@ 2012-02-04 21:10 ` pinskia at gcc dot gnu.org
  2012-09-09  8:44 ` kettenis at gnu dot org
  2012-09-09 12:03 ` redi at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-04 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsg at openbsd dot org

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-04 21:09:13 UTC ---
*** Bug 49246 has been marked as a duplicate of this bug. ***


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

* [Bug pch/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-02-04 21:10 ` pinskia at gcc dot gnu.org
@ 2012-09-09  8:44 ` kettenis at gnu dot org
  2012-09-09 12:03 ` redi at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: kettenis at gnu dot org @ 2012-09-09  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

kettenis at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kettenis at gnu dot org

--- Comment #6 from kettenis at gnu dot org 2012-09-09 08:44:02 UTC ---
This is fixed by the following commit.  

Turns out it is possible to use a carefully chosen address to get PCH working
reliably, so I did go for that approach since it has a chance to work if GCC
is compiled as a position independent executable as well.


2012-09-02  Mark Kettenis  <kettenis@openbsd.org>

        * config.gcc (x86_64-*-openbsd*): New target.
        * config.host (*-*-openbsd*): New target.
        * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
        * config/i386/openbsdelf.h: Remove some superfluous defines and
        group things together in a more logical fashion.
        (DBX_REGISTER_NUMBER): Provide a
        definition that works on both 32-bit and 64-bit targets.
        (WCHAR_TYPE_SIZE): Hardcode as 32.
        (NO_DOLLAR_IN_LABEL): Remove undef.
        (TARGET_DEFAULT): Remove.
        (SET_ASM_OP): Remove.
        (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
        (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
        (DWARF2_UNWIND_INFO): Remove define.
        (HAVE_ENABLE_EXECUTE_STACK): Define.
        * config/host-openbsd.c: New file.
        * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
        * config/x-openbsd: New file.


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

* [Bug pch/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2012-09-09  8:44 ` kettenis at gnu dot org
@ 2012-09-09 12:03 ` redi at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-09-09 12:03 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.8.0

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-09-09 12:02:53 UTC ---
Thanks, closing then


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

end of thread, other threads:[~2012-09-09 12:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
2011-11-20  6:05 ` [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support kurt at intricatesoftware dot com
2011-11-20  7:11 ` kurt at intricatesoftware dot com
2012-01-28  5:50 ` [Bug pch/39618] " pinskia at gcc dot gnu.org
2012-02-04 21:10 ` pinskia at gcc dot gnu.org
2012-09-09  8:44 ` kettenis at gnu dot org
2012-09-09 12:03 ` redi at gcc dot gnu.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).