This is the mail archive of the 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]

Re: [PATCH]: Fix PR 3120

Roger Sayle <> writes:

> This updates my previous patch "Resolve mainline builtin sqrt issues"
> so that it
> applies cleanly to current mainline sources.  It fixes high priority
> PR c/3120 which is a regression from the 3.0 branch.
> I've retested this updated patch with "make bootstrap" and "make -k
> check" on i686-pc-linux-gnu with no new regressions.  Its been approved
> by Gabriel Dos Reis in a private e-mail.  Andreas, could you please
> apply this patch and close the PR?

I've bootstrapped your patch and noticed that the test in libstdc++
for sqrt now fails!  I get for this small input file:

int main() {
; return 0; }

This error:

gromit:~:[1]$  /builds/gcc/gcc-3.1-devel/gcc/xgcc -B/builds/gcc/gcc-3.1-devel/gcc/ -nostdinc++  -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src -L/builds/gcc/gcc-3.1-devel/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/bin/ -B/opt/gcc-3.1-devel/i686-pc-linux-gnu/lib/ -isystem /opt/gcc-3.1-devel/i686-pc-linux-gnu/include -c -g -O2 -Wall t.c -O2 -g
t.c: In function `main':
t.c:3: unrecognizable insn:
(insn 19 17 20 (set (reg:DF 61)
        (sqrt:DF (reg:DF 62))) -1 (insn_list 17 (nil))
t.c:3: Internal compiler error in extract_insn, at recog.c:2129
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.

Apparently, your patch seems to be somehow broken :-(

I get this on i686-linux with glibc 2.2.4,
 Andreas Jaeger
  SuSE Labs

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