Bug 77458 - nvptx offloading ICEs after "Implement C _FloatN, _FloatNx types"
Summary: nvptx offloading ICEs after "Implement C _FloatN, _FloatNx types"
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 7.0
: P3 normal
Target Milestone: ---
Assignee: Thomas Schwinge
URL:
Keywords: openacc
Depends on:
Blocks:
 
Reported: 2016-09-02 14:56 UTC by Thomas Schwinge
Modified: 2016-10-19 10:59 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schwinge 2016-09-02 14:56:23 UTC
As of the PR32187 commit r239625 "Implement C _FloatN, _FloatNx types", nvptx offloading is broken, ICEs in LTO stream-in.  Probably some kind of data-type mismatch that is not visible with Intel MIC offloading (using the same data types) but explodes with nvptx.  I'm having a look.
Comment 1 Thomas Schwinge 2016-10-19 10:49:18 UTC
Author: tschwinge
Date: Wed Oct 19 10:48:46 2016
New Revision: 241338

URL: https://gcc.gnu.org/viewcvs?rev=241338&root=gcc&view=rev
Log:
[PR lto/77458] Avoid ICE in offloading with differing _FloatN, _FloatNx types

	gcc/
	PR lto/77458
	* tree-core.h (enum tree_index): Put the complex types after their
	component types.
	* tree-streamer.c (verify_common_node_recorded): New function.
	(preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-core.h
    trunk/gcc/tree-streamer.c
Comment 2 Thomas Schwinge 2016-10-19 10:59:34 UTC
Fixed in r241338.