This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6747: PPC: C++ rejects inline assembly, C works



>Number:         6747
>Category:       c++
>Synopsis:       PPC: C++ rejects inline assembly, C works
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon May 20 11:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Franz.Sirl-kernel@lauterbach.com
>Release:        gcc-3.1.x
>Organization:
>Environment:
powerpc-linux-gnu

Reading specs from /usr/lib/gcc-lib/ppc-linux/3.1.1/specs
Configured with: /home/fsirl/TC/gcc/BUILD/gcc-3.1.1/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads --enable-checking=gc,misc,tree --enable-languages=c,c++,f77,objc --with-system-zlib ppc-linux
Thread model: posix
gcc version 3.1.1 20020519 (prerelease)
>Description:
The attached testcase fails if compiled with C++, compiling with C works fine. This is a regression from at least gcc-2.95.x and breaks OpenOffice builds on PPC.
>How-To-Repeat:
g++ -c -O2 test.cc -save-temps
test.cc: In function `void glibc_setfpucw(unsigned int)':
test.cc:21: output number 0 not directly addressable
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.ii"

IyAxICJ0ZXN0LmNjIgojIDEgIjxidWlsdC1pbj4iCiMgMSAiPGNvbW1hbmQgbGluZT4iCiMgMSAi
dGVzdC5jYyIKIyAxNCAidGVzdC5jYyIKIyAxICIvdXNyL2luY2x1ZGUvZnB1X2NvbnRyb2wuaCIg
MSAzCiMgNDkgIi91c3IvaW5jbHVkZS9mcHVfY29udHJvbC5oIiAzCnR5cGVkZWYgdW5zaWduZWQg
aW50IGZwdV9jb250cm9sX3QgX19hdHRyaWJ1dGVfXyAoKF9fbW9kZV9fIChfX1NJX18pKSk7CiMg
NjUgIi91c3IvaW5jbHVkZS9mcHVfY29udHJvbC5oIiAzCmV4dGVybiBmcHVfY29udHJvbF90IF9f
ZnB1X2NvbnRyb2w7CiMgMTUgInRlc3QuY2MiIDIKCnZvaWQgZ2xpYmNfc2V0ZnB1Y3coIGZwdV9j
b250cm9sX3Qgc2V0ICkKewogICAgICAgIGZwdV9jb250cm9sX3QgY3c7CgoKICAgICAgICAoIHsg
dW5pb24geyBkb3VibGUgZDsgZnB1X2NvbnRyb2xfdCBjd1syXTsgfSB0bXAgX19hdHRyaWJ1dGVf
XygoX19hbGlnbmVkX18oOCkpKTsgX19hc21fXyAoIm1mZnMgMDsgc3RmZCVVMCAwLCUwIiA6ICI9
bSIgKHRtcC5kKSA6IDogImZyMCIpOyAoY3cpPXRtcC5jd1sxXTsgdG1wLmN3WzFdOyB9ICk7CgoK
CiAgICAgICAgY3cgJj0gMHhmZmZmZmYwMDsKICAgICAgICBjdyB8PSBzZXQgJiB+MHhmZmZmZmYw
MDsKCiAgICAgICAgeyB1bmlvbiB7IGRvdWJsZSBkOyBmcHVfY29udHJvbF90IGN3WzJdOyB9IHRt
cCBfX2F0dHJpYnV0ZV9fKChfX2FsaWduZWRfXyg4KSkpOyB0bXAuY3dbMF0gPSAweEZGRjgwMDAw
OyB0bXAuY3dbMV0gPSBjdzsgX19hc21fXyAoImxmZCVVMCAwLCUwOyBtdGZzZiAyNTUsMCIgOiA6
ICJtIiAodG1wLmQpIDogImZyMCIpOyB9Owp9Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]