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++/36391] Compilation never ends



------- Comment #2 from ivan at cvut dot cz  2008-06-05 14:35 -------
This bug is related to x86_64 target. When generating 32bit .o file,
compilations succeds even with 64bit version of g++.
See:

ivan@brezina:/tmp$ g++ -m32 trotl_parser.i 
In file included from /usr/include/c++/4.2/ext/new_allocator.h:38,
                 from
/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++allocator.h:40,
                 from /usr/include/c++/4.2/bits/allocator.h:54,
                 from /usr/include/c++/4.2/memory:55,
                 from /usr/include/c++/4.2/string:49,
                 from ../../src/trotl_parser.h:38,
                 from ../../src/trotl_parser.cpp:35:
/usr/include/c++/4.2/new:95: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:96: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:99: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:100: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:105: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:106: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
ivan@brezina:/tmp$ 
ivan@brezina:/tmp$ time g++ -m32 trotl_parser.i 
In file included from /usr/include/c++/4.2/ext/new_allocator.h:38,
                 from
/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++allocator.h:40,
                 from /usr/include/c++/4.2/bits/allocator.h:54,
                 from /usr/include/c++/4.2/memory:55,
                 from /usr/include/c++/4.2/string:49,
                 from ../../src/trotl_parser.h:38,
                 from ../../src/trotl_parser.cpp:35:
/usr/include/c++/4.2/new:95: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:96: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:99: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:100: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:105: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter
/usr/include/c++/4.2/new:106: error: ?operator new? takes type ?size_t?
(?unsigned int?) as first parameter

real                          0m2.807s
user                          0m2.588s
sys                           0m0.212s
ivan@brezina:/tmp$ time g++ -m64 trotl_parser.i 
Terminated

real    81m2.005s
user    0m0.000s
sys     0m0.004s


-- 


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


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