public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34040] [4.3 Regression] ICE: in simplify_subreg, at simplify-rtx.c:4921 building libgfortran
Date: Mon, 12 Nov 2007 21:06:00 -0000	[thread overview]
Message-ID: <20071112210617.25990.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34040-14721@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from ebotcazou at gcc dot gnu dot org  2007-11-12 21:06 -------
Nothing to do with optimization, it's a Fortran front-end problem:

(gdb) p debug_tree(from)
 <call_expr 0x2a95a3a060
    type <real_type 0x2a959ec680 SF
        size <integer_cst 0x2a959cd8d0 constant invariant 32>
        unit size <integer_cst 0x2a959cd540 constant invariant 4>
        align 32 symtab 0 alias set -1 canonical type 0x2a959ec680 precision 32
        pointer_to_this <pointer_type 0x2a959ec8f0>>

    fn <addr_expr 0x2a9556d300
        type <pointer_type 0x2a95a36a90 type <function_type 0x2a95a01a90>
            unsigned SI size <integer_cst 0x2a959cd8d0 32> unit size
<integer_cst 0x2a959cd540 4>
            align 32 symtab 0 alias set -1 canonical type 0x2a95a36a90>
        readonly constant invariant
        arg 0 <function_decl 0x2a95a11700 __builtin_copysign type
<function_type 0x2a95a01a90>
            readonly public external built-in SI file pr34040.f95 line 0
            align 16 built-in BUILT_IN_NORMAL:BUILT_IN_COPYSIGN
            (mem:SI (symbol_ref:SI ("copysign") [flags 0x41] <function_decl
0x2a95a11700 __builtin_copysign>) [0 S4 A32]) chain <function_decl 0x2a95a11600
__builtin_copysignl>>>
    arg 0 <indirect_ref 0x2a9556d200
        type <real_type 0x2a959ec750 real8 DF
            size <integer_cst 0x2a959cda80 constant invariant 64>
            unit size <integer_cst 0x2a959cdab0 constant invariant 8>
            align 32 symtab 0 alias set -1 canonical type 0x2a959ec750
precision 64
            pointer_to_this <pointer_type 0x2a959ec9c0> reference_to_this
<reference_type 0x2a95a368f0>>

        arg 0 <parm_decl 0x2a959d2460 p1 type <reference_type 0x2a95a368f0>
            readonly used unsigned SI file pr34040.f95 line 1 size
<integer_cst0x2a959cd8d0 32> unit size <integer_cst 0x2a959cd540 4>
            align 32 context <function_decl 0x2a95a37200
_gfortran_specific__sign_r8> initial <reference_type 0x2a95a368f0>
            (reg/v/f:SI 161 [ p1 ]) arg-type <reference_type 0x2a95a368f0>
            incoming-rtl (reg:SI 4 r4 [ p1 ]) chain <parm_decl 0x2a959d2500
p2>>>
    arg 1 <indirect_ref 0x2a9556d280 type <real_type 0x2a959ec750 real8>

        arg 0 <parm_decl 0x2a959d2500 p2 type <reference_type 0x2a95a368f0>
            readonly used unsigned SI file pr34040.f95 line 1 size
<integer_cst0x2a959cd8d0 32> unit size <integer_cst 0x2a959cd540 4>
            align 32 context <function_decl 0x2a95a37200
_gfortran_specific__sign_r8> initial <reference_type 0x2a95a368f0>
            (reg/v/f:SI 162 [ p2 ]) arg-type <reference_type 0x2a95a368f0>
            incoming-rtl (reg:SI 5 r5 [ p2 ])>>
    pr34040.f95:4>

__builtin_copysign has got SFmode(*)(SFmode, SFmode) prototype and is invoked
on DFmode arguments.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|ebotcazou at gcc dot gnu dot|unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
          Component|rtl-optimization            |fortran


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


  parent reply	other threads:[~2007-11-12 21:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 10:42 [Bug middle-end/34040] New: " rask at gcc dot gnu dot org
2007-11-09 10:45 ` [Bug middle-end/34040] " rask at gcc dot gnu dot org
2007-11-09 18:49 ` [Bug rtl-optimization/34040] " pinskia at gcc dot gnu dot org
2007-11-12 19:21 ` ebotcazou at gcc dot gnu dot org
2007-11-12 19:21 ` ebotcazou at gcc dot gnu dot org
2007-11-12 21:06 ` ebotcazou at gcc dot gnu dot org [this message]
2007-11-13 12:28 ` [Bug fortran/34040] " fxcoudert at gcc dot gnu dot org
2007-11-14  4:02 ` kkojima at gcc dot gnu dot org
2007-11-16 23:43 ` fxcoudert at gcc dot gnu dot org
2007-11-17 17:10 ` [Bug fortran/34040] relation between kinds and C types (for math builtins) shouldn't be hardcoded fxcoudert at gcc dot gnu dot org
2007-11-18 10:27 ` kkojima at gcc dot gnu dot org
2008-03-30 20:00 ` pinskia at gcc dot gnu dot org
2008-06-15 15:12 ` fxcoudert at gcc dot gnu dot org
2009-04-10 20:44 ` dfranke at gcc dot gnu dot org
2009-05-05  8:18 ` [Bug fortran/34040] Support for DOUBLE_TYPE_SIZE != 64 targets fxcoudert at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071112210617.25990.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).