public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/18787] New: sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: can’t find a register in class ‘R1_REGS’ while reloading ‘asm’
@ 2015-08-07 17:16 danglin at gcc dot gnu.org
  2015-08-07 17:54 ` [Bug libc/18787] [hppa] " jsm28 at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2015-08-07 17:16 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18787

            Bug ID: 18787
           Summary: sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6:
                    error: can’t find a register in class ‘R1_REGS’ while
                    reloading ‘asm’
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
                CC: carlos at redhat dot com, roland at gnu dot org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

hppa-linux-gnu-gcc-4.8 gethstbyad.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall
-Wer
ror -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants
-frounding-ma
th -g -Wstrict-prototypes   -fPIC -fexceptions  -ftls-model=initial-exec     
-I
../include -I/home/dave/gnu/glibc/objdir1/inet  -I/home/dave/gnu/glibc/objdir1  
-I../sysdeps/unix/sysv/linux/hppa  -I../sysdeps/hppa/nptl 
-I../sysdeps/unix/sys
v/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl 
-I../sysdeps/pt
hread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv 
-I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/hppa/hppa1.1 
-I../sysdeps/wordsize
-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64 
-I../sysdeps/hppa
/fpu  -I../sysdeps/hppa  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
-I../l
ibio -I. -nostdinc -isystem /usr/lib/gcc/hppa-linux-gnu/4.8/include -isystem
/us
r/lib/gcc/hppa-linux-gnu/4.8/include-fixed -isystem /usr/include 
-D_LIBC_REENTR
ANT -include /home/dave/gnu/glibc/objdir1/libc-modules.h -DMODULE_NAME=libc
-inc
lude ../include/libc-symbols.h  -DPIC -DSHARED     -o
/home/dave/gnu/glibc/objdir1/inet/gethstbyad.os -MD -MP -MF
/home/dave/gnu/glibc/objdir1/inet/gethstbyad.o
s.dt -MT /home/dave/gnu/glibc/objdir1/inet/gethstbyad.os
In file included from ../include/sys/cdefs.h:3:0,
                 from ../include/features.h:365,
                 from ../resolv/netdb.h:25,
                 from ../include/netdb.h:2,
                 from gethstbyad.c:19:
../nss/getXXbyYY.c: In function ‘gethostbyaddr’:
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: can’t find a
register in class ‘R1_REGS’ while reloading ‘asm’
      asm volatile(       \
      ^
../misc/sys/cdefs.h:385:52: note: in definition of macro ‘__glibc_unlikely’
 # define __glibc_unlikely(cond) __builtin_expect ((cond), 0)
                                                    ^
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:100:12: note: in expansion of
macro ‘atomic_compare_and_exchange_val_acq’
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../sysdeps/nptl/lowlevellock.h:94:11: note: in expansion of macro
‘atomic_compare_and_exchange_bool_acq’
          (atomic_compare_and_exchange_bool_acq (__futex, 1, 0)))        \
           ^
../sysdeps/nptl/lowlevellock.h:103:3: note: in expansion of macro ‘__lll_lock’
   __lll_lock (&(futex), private)
   ^
../sysdeps/nptl/bits/libc-lockP.h:176:6: note: in expansion of macro ‘lll_lock’
   ({ lll_lock (NAME, LLL_PRIVATE); 0; })
      ^
../nss/getXXbyYY.c:97:3: note: in expansion of macro ‘__libc_lock_lock’
   __libc_lock_lock (lock);
   ^
In file included from ../include/atomic.h:50:0,
                 from ../sysdeps/nptl/lowlevellock.h:22,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/hppa/nptl/tls.h:57,
                 from ../include/link.h:45,
                 from ../include/dlfcn.h:4,
                 from ../nss/nsswitch.h:28,
                 from ../include/nsswitch.h:1,
                 from ../inet/netgroup.h:22,
                 from ../include/netdb.h:193,
                 from gethstbyad.c:19:
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: can’t find a
register in class ‘R1_REGS’ while reloading ‘asm’
      asm volatile(       \
      ^
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:100:12: note: in expansion of
macro ‘atomic_compare_and_exchange_val_acq’
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../include/atomic.h:189:7: note: in expansion of macro
‘atomic_compare_and_exchange_bool_acq’
      (atomic_compare_and_exchange_bool_acq (__atg5_memp, __atg5_value, \
       ^
../include/atomic.h:196:45: note: in expansion of macro ‘atomic_exchange_acq’
 # define atomic_exchange_rel(mem, newvalue) atomic_exchange_acq (mem,
newvalue)
                                             ^
../sysdeps/nptl/lowlevellock.h:199:21: note: in expansion of macro
‘atomic_exchange_rel’
      int __oldval = atomic_exchange_rel (__futex, 0);   \
                     ^
../sysdeps/nptl/lowlevellock.h:204:3: note: in expansion of macro
‘__lll_unlock’
   __lll_unlock (&(futex), private)
   ^
../sysdeps/nptl/bits/libc-lockP.h:210:3: note: in expansion of macro
‘lll_unlock’
   lll_unlock (NAME, LLL_PRIVATE)
   ^
../nss/getXXbyYY.c:144:3: note: in expansion of macro ‘__libc_lock_unlock’
   __libc_lock_unlock (lock);
   ^
In file included from ../include/sys/cdefs.h:3:0,
                 from ../include/features.h:365,
                 from ../resolv/netdb.h:25,
                 from ../include/netdb.h:2,
                 from gethstbyad.c:19:
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: ‘asm’ operand has
impossible constraints
      asm volatile(       \
      ^
../misc/sys/cdefs.h:385:52: note: in definition of macro ‘__glibc_unlikely’
 # define __glibc_unlikely(cond) __builtin_expect ((cond), 0)
                                                    ^
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:100:12: note: in expansion of
macro ‘atomic_compare_and_exchange_val_acq’
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../sysdeps/nptl/lowlevellock.h:94:11: note: in expansion of macro
‘atomic_compare_and_exchange_bool_acq’
          (atomic_compare_and_exchange_bool_acq (__futex, 1, 0)))        \
           ^
../sysdeps/nptl/lowlevellock.h:103:3: note: in expansion of macro ‘__lll_lock’
   __lll_lock (&(futex), private)
   ^
../sysdeps/nptl/bits/libc-lockP.h:176:6: note: in expansion of macro ‘lll_lock’
   ({ lll_lock (NAME, LLL_PRIVATE); 0; })
      ^
../nss/getXXbyYY.c:97:3: note: in expansion of macro ‘__libc_lock_lock’
   __libc_lock_lock (lock);
   ^
In file included from ../include/atomic.h:50:0,
                 from ../sysdeps/nptl/lowlevellock.h:22,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/hppa/nptl/tls.h:57,
                 from ../include/link.h:45,
                 from ../include/dlfcn.h:4,
                 from ../nss/nsswitch.h:28,
                 from ../include/nsswitch.h:1,
                 from ../inet/netgroup.h:22,
                 from ../include/netdb.h:193,
                 from gethstbyad.c:19:
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: ‘asm’ operand has
impossible constraints
      asm volatile(       \
      ^
../sysdeps/unix/sysv/linux/hppa/bits/atomic.h:100:12: note: in expansion of
macro ‘atomic_compare_and_exchange_val_acq’
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../include/atomic.h:189:7: note: in expansion of macro
‘atomic_compare_and_exchange_bool_acq’
      (atomic_compare_and_exchange_bool_acq (__atg5_memp, __atg5_value, \
       ^
../include/atomic.h:196:45: note: in expansion of macro ‘atomic_exchange_acq’
 # define atomic_exchange_rel(mem, newvalue) atomic_exchange_acq (mem,
newvalue)
                                             ^
../sysdeps/nptl/lowlevellock.h:199:21: note: in expansion of macro
‘atomic_exchange_rel’
      int __oldval = atomic_exchange_rel (__futex, 0);   \
                     ^
../sysdeps/nptl/lowlevellock.h:204:3: note: in expansion of macro
‘__lll_unlock’
   __lll_unlock (&(futex), private)
   ^
../sysdeps/nptl/bits/libc-lockP.h:210:3: note: in expansion of macro
‘lll_unlock’
   lll_unlock (NAME, LLL_PRIVATE)
   ^
../nss/getXXbyYY.c:144:3: note: in expansion of macro ‘__libc_lock_unlock’
   __libc_lock_unlock (lock);
   ^
../o-iterator.mk:9: recipe for target
'/home/dave/gnu/glibc/objdir1/inet/gethstbyad.os' failed
make[2]: *** [/home/dave/gnu/glibc/objdir1/inet/gethstbyad.os] Error 1
make[2]: Leaving directory '/home/dave/gnu/glibc/glibc/inet'
Makefile:213: recipe for target 'inet/subdir_lib' failed
make[1]: *** [inet/subdir_lib] Error 2
make[1]: Leaving directory '/home/dave/gnu/glibc/glibc'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

The asm clobbers register %r1.  When generating PIC code, register %r1
is needed to reload an operand from static memory.  The operand needs to
be copied first to a register as is done on arm.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-29189-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Aug 07 17:54:13 2015
Return-Path: <glibc-bugs-return-29189-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 81931 invoked by alias); 7 Aug 2015 17:54:12 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 81265 invoked by uid 48); 7 Aug 2015 17:54:09 -0000
From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/18674] [i386] trunk/sysdeps/i386/tst-auditmod3b.c:84: possible missing break ?
Date: Fri, 07 Aug 2015 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.21
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jsm28 at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc component cf_gcchost short_desc
Message-ID: <bug-18674-131-L23Ob6marf@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18674-131@http.sourceware.org/bugzilla/>
References: <bug-18674-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00229.txt.bz2
Content-length: 912

https://sourceware.org/bugzilla/show_bug.cgi?id\x18674

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drepper.fsp at gmail dot com
          Component|ports                       |libc
               Host|                            |i?86-*-*
            Summary|trunk/sysdeps/i386/tst-audi |[i386]
                   |tmod3b.c:84: possible       |trunk/sysdeps/i386/tst-audi
                   |missing break ?             |tmod3b.c:84: possible
                   |                            |missing break ?

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
The ports component is obsolete and only for closed bugs, not new ones.

--
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-10-29 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 17:16 [Bug ports/18787] New: sysdeps/unix/sysv/linux/hppa/bits/atomic.h:71:6: error: can’t find a register in class ‘R1_REGS’ while reloading ‘asm’ danglin at gcc dot gnu.org
2015-08-07 17:54 ` [Bug libc/18787] [hppa] " jsm28 at gcc dot gnu.org
2015-08-08  5:12 ` cvs-commit at gcc dot gnu.org
2015-08-08  5:14 ` cvs-commit at gcc dot gnu.org
2015-08-08  5:14 ` vapier at gentoo dot org
2015-10-29 16:41 ` jsm28 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).