public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint
@ 2010-04-27 12:08 ailin dot nemui at gmail dot com
2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ailin dot nemui at gmail dot com @ 2010-04-27 12:08 UTC (permalink / raw)
To: gcc-bugs
../../g++-4.5.svn/gcc/tree-ssa-structalias.c: In function 'constraint_expr
get_function_part_constraint(variable_info*, unsigned int)':
../../g++-4.5.svn/gcc/tree-ssa-structalias.c:3644:29: error: enumeral and
non-enumeral type in conditional expression [-Werror]
cc1plus: all warnings being treated as errors
tree-ssa-structalias.c:3644: c.var = ai ? ai->id : anything_id;
this is a enum constant ^^^^^^^^^^^
causing a c++ warning that is being treated as fatal.
Maybe add an explicit cast to unsigned int?
--
Summary: trunk rev158780. compile with --enable-build-with-cxx
fails in get_function_part_constraint
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ailin dot nemui at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43909
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43909] trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint
2010-04-27 12:08 [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint ailin dot nemui at gmail dot com
@ 2010-04-27 12:12 ` rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-27 12:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-27 12:11 -------
Mine.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-04-27 12:11:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43909
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43909] trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint
2010-04-27 12:08 [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint ailin dot nemui at gmail dot com
2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
@ 2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-28 11:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-28 11:52 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43909
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43909] trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint
2010-04-27 12:08 [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint ailin dot nemui at gmail dot com
2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
@ 2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-28 11:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-28 11:51 -------
Subject: Bug 43909
Author: rguenth
Date: Wed Apr 28 11:51:31 2010
New Revision: 158825
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158825
Log:
2010-04-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43879
PR tree-optimization/43909
* tree-ssa-structalias.c (struct variable_info): Add
only_restrict_pointers flag.
(new_var_info): Initialize it. Increment stats.total_vars here.
(create_function_info_for): Do not increment stats.total_vars
here.
(get_function_part_constraint): Fix build with C++.
(insert_into_field_list): Remove.
(push_fields_onto_fieldstack): Properly merge fields.
(create_variable_info_for): Split and simplify.
(create_variable_info_for_1): New piece.
(intra_create_variable_infos): Properly make restrict constraints
from parameters.
* gcc.dg/ipa/ipa-pta-14.c: Adjust.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/ipa/ipa-pta-14.c
trunk/gcc/tree-ssa-structalias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43909
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-28 11:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 12:08 [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint ailin dot nemui at gmail dot com
2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
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).