This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35193] New: can't find a register in class 'R1_REGS' while reloading 'asm'
- From: "b dot gunreben at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2008 13:26:58 -0000
- Subject: [Bug c/35193] New: can't find a register in class 'R1_REGS' while reloading 'asm'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
when I try to compile a current glibc for hppa, I get the following error:
gcc -O2 -c dcigettext.i
dcigettext.c: In function ‘_nl_find_msg’:
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:220: error: can't
find a register in class 'R1_REGS' while reloading 'asm'
dcigettext.c:1102: error: can't find a register in class 'R1_REGS' while
reloading 'asm'
dcigettext.c:1164: error: can't find a register in class 'R1_REGS' while
reloading 'asm'
dcigettext.c:1194: error: can't find a register in class 'R1_REGS' while
reloading 'asm'
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:220: error: 'asm'
operand has impossible constraints
dcigettext.c:1102: error: 'asm' operand has impossible constraints
dcigettext.c:1164: error: 'asm' operand has impossible constraints
dcigettext.c:1194: error: 'asm' operand has impossible constraints
however, if I remove the lines with starting # signs in the preprocessed code
like:
grep -v "^#" dcigettext.i > x.i
it just compiles. The original error also vanishes if I use -O instead of -O2.
Adding preprocessed dcigettext.i, to reproduce, run
gcc -O2 -c dcigettext.i
--
Summary: can't find a register in class 'R1_REGS' while reloading
'asm'
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: b dot gunreben at web dot de
GCC host triplet: hppa-suse-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35193