public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/68127] New: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault
@ 2015-10-28  7:56 Joost.VandeVondele at mat dot ethz.ch
  2015-10-28  8:23 ` [Bug middle-end/68127] " trippels at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2015-10-28  7:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68127

            Bug ID: 68127
           Summary: [6 Regression] ICE: error: incompatible types in PHI
                    argument 0 / Segmentation fault
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch
  Target Milestone: ---

trunk started failing between r229401 and r229470 to build CP2K with -flto and
-fprofile-generate with the following ICE:

/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F: In function
‘get_ddapc’:
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error:
incompatible types in PHI argument 0
   RECURSIVE SUBROUTINE get_ddapc(qs_env, calc_force, density_fit_section,&
^
long int

long unsigned int

__var_8_do_2091 = PHI <0(572), _1994(574)>
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error:
invalid PHI argument
<<< error >>>
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: internal
compiler error: Segmentation fault
0xa007df crash_signal
        ../../gcc/gcc/toplev.c:353
0x79c588 tree_class_check
        ../../gcc/gcc/tree.h:3041
0x79c588 useless_type_conversion_p(tree_node*, tree_node*)
        ../../gcc/gcc/gimple-expr.c:91
0xa47489 verify_gimple_phi
        ../../gcc/gcc/tree-cfg.c:4673
0xa47489 verify_gimple_in_cfg(function*, bool)
        ../../gcc/gcc/tree-cfg.c:4967
0x93764c execute_function_todo
        ../../gcc/gcc/passes.c:1967
0x9380c3 execute_todo
        ../../gcc/gcc/passes.c:2022
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [/tmp/ccTSnvhv.ltrans15.ltrans.o] Error 1
make[3]: Target `all' not remade because of errors.
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/data/vjoost/gnu/binutils-2.23.2/install/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

No reduced testcase, as this involves LTO.
>From gcc-bugs-return-500758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 28 08:03:48 2015
Return-Path: <gcc-bugs-return-500758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81757 invoked by alias); 28 Oct 2015 08:03:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81709 invoked by uid 48); 28 Oct 2015 08:03:43 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67929] [4.9/5/6 Regression][arm] Wrong code for FP mult-by-power-of-2 + int conversion
Date: Wed, 28 Oct 2015 08:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67929-4-ay4Cvd0SMI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67929-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67929-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg02313.txt.bz2
Content-length: 856

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg929

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> ---
I think the testcase or check_effective_target_arm_vfp3_ok needs an adjustment:
when GCC is configured for arm-none-linux-gnueabihf, since the test is compiled
with -mfloat-abi=softfp, there is an error at link time because the crt*.o
files are compiled with float-abi=hard, and thus conflict with pr67929_1.o.

This is because check_effective_target_arm_vfp3_ok only checks whether a
*compilation* with -mfloat-abi=soffp works, and does not check that a link
actually works.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/68127] [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault
  2015-10-28  7:56 [Bug middle-end/68127] New: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault Joost.VandeVondele at mat dot ethz.ch
@ 2015-10-28  8:23 ` trippels at gcc dot gnu.org
  2015-10-28 11:48 ` rguenth at gcc dot gnu.org
  2015-10-31  6:38 ` Joost.VandeVondele at mat dot ethz.ch
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-10-28  8:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68127

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Might be related to PR68117.

For LTO testcase reduction see:
https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/68127] [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault
  2015-10-28  7:56 [Bug middle-end/68127] New: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault Joost.VandeVondele at mat dot ethz.ch
  2015-10-28  8:23 ` [Bug middle-end/68127] " trippels at gcc dot gnu.org
@ 2015-10-28 11:48 ` rguenth at gcc dot gnu.org
  2015-10-31  6:38 ` Joost.VandeVondele at mat dot ethz.ch
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-28 11:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68127

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/68127] [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault
  2015-10-28  7:56 [Bug middle-end/68127] New: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault Joost.VandeVondele at mat dot ethz.ch
  2015-10-28  8:23 ` [Bug middle-end/68127] " trippels at gcc dot gnu.org
  2015-10-28 11:48 ` rguenth at gcc dot gnu.org
@ 2015-10-31  6:38 ` Joost.VandeVondele at mat dot ethz.ch
  2 siblings, 0 replies; 4+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2015-10-31  6:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68127

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch

--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
Interestingly, this issue is intermittent, i.e. didn't fail for two nightly
builds. Does the code generated vary if e.g. -flto=jobserver is given and
various number of tasks might be avaiable for the build ?

Meanwhile, the error message has slightly improved, not a segfault but:

cp_ddapc_util.F:201:0: error: incompatible types in PHI argument 0
   RECURSIVE SUBROUTINE get_ddapc(qs_env, calc_force, density_fit_section,&
^
long int

long unsigned int

__var_6_do_683 = PHI <0(447), _637(449)>
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error:
invalid PHI argument
__gcov0.__cp_ddapc_util_MOD_get_ddapc_I.7397_6405
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error:
incompatible types in PHI argument 0
void

bool

.MEM_663 = PHI <__gcov0.__cp_ddapc_util_MOD_get_ddapc_I.7397_6405(447),
.MEM_554(449)>
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: internal
compiler error: verify_gimple failed
0xa4e139 verify_gimple_in_cfg(function*, bool)
        ../../gcc/gcc/tree-cfg.c:5082
0x93c1cc execute_function_todo
        ../../gcc/gcc/passes.c:1940
0x93cc43 execute_todo
        ../../gcc/gcc/passes.c:1995
Please submit a full bug report,


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-31  6:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28  7:56 [Bug middle-end/68127] New: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault Joost.VandeVondele at mat dot ethz.ch
2015-10-28  8:23 ` [Bug middle-end/68127] " trippels at gcc dot gnu.org
2015-10-28 11:48 ` rguenth at gcc dot gnu.org
2015-10-31  6:38 ` Joost.VandeVondele at mat dot ethz.ch

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).