[Bug 789031] Re: Built-in ASM constraint rm does not work (i386)
afaiu, there is no way to say to use all free register's, and for the rest memory. the r constraint cannot be fulfilled for all operands. use a m constraint for the last to operands, and the code builds. ** Changed in: gcc-4.5 (Ubuntu) Status: Triaged = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work (i386) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/789031/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 789031] Re: Built-in ASM constraint rm does not work
** Package changed: gcc-defaults (Ubuntu) = gcc-4.5 (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/789031/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 789031] Re: Built-in ASM constraint rm does not work
Seems to be present in 4.6 (from oneiric) also: (oneiric-i386)$ gcc-4.6 -O2 -g -o test2 test2.c test2.c: In function 'main': test2.c:7:3: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' test2.c:7:3: error: 'asm' operand has impossible constraints and in 4.4 (from lucid): (oneiric-i386)$ gcc-4.6 -O2 -g -o test2 test2.c test2.c: In function 'main': test2.c:7:3: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' test2.c:7:3: error: 'asm' operand has impossible constraints -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/789031/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 789031] Re: Built-in ASM constraint rm does not work
Since this bug also can generate faulty code with this file: http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/pulsecore/svolume_sse.c - it allocates the rm into the same register as another r, I'm marking this as high priority. ** Changed in: gcc-4.5 (Ubuntu) Importance: Undecided = High ** Changed in: gcc-4.5 (Ubuntu) Status: New = Triaged ** Summary changed: - Built-in ASM constraint rm does not work + Built-in ASM constraint rm does not work (i386) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work (i386) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/789031/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 789031] Re: Built-in ASM constraint rm does not work
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 789031] Re: Built-in ASM constraint rm does not work
** Attachment added: test.c https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/789031/+attachment/2144437/+files/test.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/789031 Title: Built-in ASM constraint rm does not work -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs