public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63907] New: libitm/config/posix/rwlock.cc doesn't compile
@ 2014-11-17  9:19 lts-rudolph at gmx dot de
  2015-01-28 12:41 ` [Bug c++/63907] " redi at gcc dot gnu.org
  2021-08-24 21:22 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: lts-rudolph at gmx dot de @ 2014-11-17  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63907
           Summary: libitm/config/posix/rwlock.cc doesn't compile
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lts-rudolph at gmx dot de
            Target: powerpc-unknown-linux-gnu

While compiling gcc for target powerpc-unknown-linux-gnu I got:

This seems to be an already fixed bug #52510.



libtool: compile: 
/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/./gcc/xg++
-B/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/./gcc/
-nostdinc++ -nostdinc++
-I/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu
-I/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/libstdc++-v3/include
-I/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/libstdc++-v3/libsupc++
-I/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/libstdc++-v3/include/backward
-I/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/libstdc++-v3/testsuite/util
-L/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/libstdc++-v3/src
-L/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/krud/own_components/gcc_install/gccinst013ma/gcc-4.9.2/build_powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/opt/powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/bin/
-B/opt/powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/lib/ -isystem
/opt/powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/include -isystem
/opt/powerpc-unknown-linux-gnu_4.9.2/powerpc-unknown-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I../../../libitm -I../../../libitm/config/powerpc
-I../../../libitm/config/posix -I../../../libitm/config/generic
-I../../../libitm -mhtm -Wall -pthread -Werror -std=gnu++0x -funwind-tables
-fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -D_GNU_SOURCE -MT rwlock.lo
-MD -MP -MF .deps/rwlock.Tpo -c ../../../libitm/config/posix/rwlock.cc  -fPIC
-DPIC -o .libs/rwlock.o
../../../libitm/config/posix/rwlock.cc: In constructor
‘GTM::gtm_rwlock::gtm_rwlock()’:
../../../libitm/config/posix/rwlock.cc:40:17: error: no matching function for
call to ‘pthread_cond_t::pthread_cond_t(<brace-enclosed initializer list>)’
     w_writers (0)
>From gcc-bugs-return-467003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 17 09:22:24 2014
Return-Path: <gcc-bugs-return-467003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30955 invoked by alias); 17 Nov 2014 09:22:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30919 invoked by uid 48); 17 Nov 2014 09:22:19 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/63894] [5 Regression] ICE in inline_call, at ipa-inline-transform.c:339 building Firefox
Date: Mon, 17 Nov 2014 09:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status component resolution
Message-ID: <bug-63894-4-TqvJ03P6yY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63894-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg01475.txt.bz2
Content-length: 493

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc894

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|lto                         |ipa
         Resolution|---                         |FIXED

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
fixed.


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

* [Bug c++/63907] libitm/config/posix/rwlock.cc doesn't compile
  2014-11-17  9:19 [Bug c++/63907] New: libitm/config/posix/rwlock.cc doesn't compile lts-rudolph at gmx dot de
@ 2015-01-28 12:41 ` redi at gcc dot gnu.org
  2021-08-24 21:22 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-28 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-28
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Similar problem to PR 49894 but I don't think the fix is usable by libitm as it
depends on a C++11 language feature.


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

* [Bug c++/63907] libitm/config/posix/rwlock.cc doesn't compile
  2014-11-17  9:19 [Bug c++/63907] New: libitm/config/posix/rwlock.cc doesn't compile lts-rudolph at gmx dot de
  2015-01-28 12:41 ` [Bug c++/63907] " redi at gcc dot gnu.org
@ 2021-08-24 21:22 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-24 21:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED
      Known to work|                            |11.1.0
   Target Milestone|---                         |11.0
          Component|libitm                      |c++

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 11+ accepts this code now:
#define PTHREAD_COND_INITIALIZER {{ 0, 0 }, 0, "", 0}
struct _pthread_fastlock
{
  long int __status;
  int __spinlock;

};
typedef struct _pthread_descr_struct *_pthread_descr;
__extension__ typedef long long __pthread_cond_align_t;
typedef struct
{
  struct _pthread_fastlock __c_lock;
  _pthread_descr __c_waiting;
  char __padding[48 - sizeof (struct _pthread_fastlock)
   - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)];
  __pthread_cond_align_t __align;
} pthread_cond_t;


struct S{
    pthread_cond_t x;
    /* g++ 7.3: error: no matching function for call to
'pthread_cond_t::pthread_cond_t(<brace-enclosed initializer list>)'
     * g++ 4.5.3: error: could not convert '{{0, 0}, 0, "", 0}' to
'pthread_cond_t'
     */
    S() : x (PTHREAD_COND_INITIALIZER) {}
};

So I think we can close this as fixed for GCC 11.
Also I doubt anyone has the older glibc around either.

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

end of thread, other threads:[~2021-08-24 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  9:19 [Bug c++/63907] New: libitm/config/posix/rwlock.cc doesn't compile lts-rudolph at gmx dot de
2015-01-28 12:41 ` [Bug c++/63907] " redi at gcc dot gnu.org
2021-08-24 21:22 ` pinskia 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).