Extra 4.0 -fpic/-fPIC testsuite failures on i686-unknown-linux-gnu

2005-01-01 Thread Kaveh R. Ghazi
Finally, here are the excess -fpic/-fPIC testsuite failures from
mainline on i686-pc-linux-gnu as noted here:
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00027.html

I'd like some assistance categorizing them please.

A. Fixable in the testcase.
B. Expected failures, use dg-skip-if or equiv.
C. Real bugs in the compiler, file a PR.

Mainline also has all of the excess -fpic/-fPIC failures from 3.4.x, I
didn't bother to repeat them.  The ones below are all from new
testcases.  Because of that, I don't know if they are regressions.
(If it turns out they are PR-worthy I'll check later.)

Thanks,
--Kaveh

FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -O2
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -O3 
-fomit-frame-pointer
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -O3 
-fomit-frame-pointer -funroll-loops
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -O3 
-fomit-frame-pointer -funroll-all-loops -finline-functions
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -O3 -g
(New testcase.)

FAIL: gcc.dg/assign-warn-3.c  (test for warnings, line 9)
FAIL: gcc.dg/assign-warn-3.c  (test for warnings, line 13)
(New testcase.)

gcc.dg/i386-asm-3.c: In function 'main':^M
gcc.dg/i386-asm-3.c:18: error: can't find a register in class 'GENERAL_REGS' 
while reloading 'asm'^M
FAIL: gcc.dg/i386-asm-3.c (test for excess errors)
(New testcase.)

FAIL: gcc.dg/tree-ssa/ssa-dce-2.c scan-tree-dump-times if  0
(New testcase.)

27_io/basic_istream/extractors_character/wchar_t/1.cc:52: void test01(): 
Assertion `i1 == i2' failed.
(New testcase.)

--
Kaveh R. Ghazi  [EMAIL PROTECTED]


Re: Extra 4.0 -fpic/-fPIC testsuite failures on i686-unknown-linux-gnu

2005-01-01 Thread Andrew Pinski
On Jan 1, 2005, at 2:54 PM, Kaveh R. Ghazi wrote:
FAIL: gcc.dg/tree-ssa/ssa-dce-2.c scan-tree-dump-times if  0
(New testcase.)
This is expected as the function might be overridden in a different
TU (yes this is a weird case but it can happen).
Thanks,
Andrew Pinski


Re: Extra 4.0 -fpic/-fPIC testsuite failures on i686-unknown-linux-gnu

2005-01-01 Thread Paolo Carlini
Hi Kaveh,
Finally, here are the excess -fpic/-fPIC testsuite failures from
mainline on i686-pc-linux-gnu as noted here:
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00027.html
I'd like some assistance categorizing them please.
 

I'm trying to help for the libstdc++-v3 failure: can you confirm that, in
order to reproduce, I should just add -fpic/-fPIC to the CXXFLAGS? Or,
please clarify, otherwise, thanks...
27_io/basic_istream/extractors_character/wchar_t/1.cc:52: void test01(): Assertion `i1 == i2' failed.
(New testcase.)
 

This is a rather new testcase that I adapted from the plain char 
counterpart.
I think it's just a bug in the testcases (present also in the char 
version actually):
In fact i1 is computed as:

   i1 = ctraits_type::length(array1);
but array1 is *not* zero terminated ;)
Paolo.


Re: Extra 4.0 -fpic/-fPIC testsuite failures on i686-unknown-linux-gnu

2005-01-01 Thread Paolo Carlini
Kaveh R. Ghazi wrote:
There's also a 3.4/4.0 failure listed here:
http://gcc.gnu.org/ml/gcc/2005-01/msg00034.html
Any thoughts on {char,wchar_t}/13189.cc ?
 

Yes, I'm working on it: something is messed up wrt the includes
necessary when _GLIBCXX_USE___ENC_TRAITS: in normal
builds you don't notice because PCHs (which drag in everything)
are used when running the testsuite, invalidated by -fpic/-fPIC.
I should have something pretty soon...
Thanks for posting the actual error,
Paolo.