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]

[Bug c++/15420] New: g++ produce bad assembler code when using -O1


g++ manage to compile a file with -O0 whereas -O1 makes it fail.

I didn't try to isolate the problem. I hope you may excuse my laziness...

The problem appears when compiling xalan 1.8.0 which can be found at :
http://apache.fastorama.com/dist/xml/xalan-c/Xalan-C_1_8_0-src.tar.gz
(it may be useless I attach all the files ?)

When I try to compile src/xalanc/XalanEXSLT/XalanEXSLTString.cpp I get that
strange error :
lhuard ~/src/xml-xalan/c/src/xalanc % g++ -m64 -O1 -DNDEBUG     -m64
-DXML_BITSTOBUILD_64  -mcpu=v9   -fno-elide-constructors -Wall -fPIC -DSOLARIS
-D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/users/lhuard/src/xml-xalan/c/src
-I/users/lhuard/src/xml-xalan/c/include -I../../nls/include
-I/users/lhuard/src/xerces-c-src_2_5_0/src/
-I/users/lhuard/src/xerces-c-src_2_5_0/include/xercesc
-I/users/lhuard/src/xerces-c-src_2_5_0/include/  -o ../../obj/XalanEXSLTString.o
/users/lhuard/src/xml-xalan/c/src/xalanc/XalanEXSLT/XalanEXSLTString.cpp

/usr/ccs/bin/as: "/tmp/lhuard/ccB9twdG.s", line 887: error: invalid (misaligned)
register

whereas it works with -O0.

I hope those few informations will permit anybody to reproduce the problem. If
not, tell me, I might send the .s output of cc1 or give any helpfull information.
Let me know which information may be usefull.

-- 
           Summary: g++ produce bad assembler code when using -O1
           Product: gcc
           Version: 3.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nospam dot gccsolarix dot 20 dot lenex at spamgourmet
                    dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15420


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