This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22375] New: DOM (or fold_builtins) creates mis-matched types
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2005 16:18:54 -0000
- Subject: [Bug tree-optimization/22375] New: DOM (or fold_builtins) creates mis-matched types
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Take the following fortran code:
! { dg-do run }
! Option passed to avoid excess errors from obsolete warning
! { dg-options "-w" }
! PR18827
integer i,j
common /foo/ i,j
assign 1000 to j
j = 5
goto j
1000 continue
end
We get errors as __builtin_expect is foldded to 0 but someone forgot to cast the constant:
assign_2.f90:7: error: statement types mismatch
D.472_9 = 0;
<unnamed type>
logical4D.6
Patch in PR 22368 is used to find this.
--
Summary: DOM (or fold_builtins) creates mis-matched types
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 22368
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22375