public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20496] New: "-1" is inconsistently printed in tree dumps
@ 2005-03-16 14:58 kazu at cs dot umass dot edu
2005-03-16 15:02 ` [Bug tree-optimization/20496] " pinskia at gcc dot gnu dot org
2005-06-15 2:59 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 5+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-03-16 14:58 UTC (permalink / raw)
To: gcc-bugs
Consider:
int
foo (void)
{
return -1;
}
int
bar (void)
{
unsigned int a = 0xffffffff;
return a;
}
Here is what I get:
;; Function foo (foo)
foo ()
{
int D.1132;
<bb 0>:
return -1;
}
;; Function bar (bar)
bar ()
{
unsigned int a;
int D.1137;
<bb 0>:
return -000000001;
}
It would be nice to see -1 printed in a consistent way.
--
Summary: "-1" is inconsistently printed in tree dumps
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20496
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/20496] "-1" is inconsistently printed in tree dumps
2005-03-16 14:58 [Bug tree-optimization/20496] New: "-1" is inconsistently printed in tree dumps kazu at cs dot umass dot edu
@ 2005-03-16 15:02 ` pinskia at gcc dot gnu dot org
2005-06-15 2:59 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-16 15:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-16 15:02 -------
Yes this is because TREE_OVERFLOW is set.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20496
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/20496] "-1" is inconsistently printed in tree dumps
2005-03-16 14:58 [Bug tree-optimization/20496] New: "-1" is inconsistently printed in tree dumps kazu at cs dot umass dot edu
2005-03-16 15:02 ` [Bug tree-optimization/20496] " pinskia at gcc dot gnu dot org
@ 2005-06-15 2:59 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-15 2:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-15 02:59 -------
Confirmed, now that TREE_OVERFLOW should not matter, we should change how we dump out
INTEGER_CST whos TREE_OVERFLOW is set.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-15 02:59:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20496
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/20496] "-1" is inconsistently printed in tree dumps
[not found] <bug-20496-4@http.gcc.gnu.org/bugzilla/>
2024-03-10 5:54 ` pinskia at gcc dot gnu.org
@ 2024-03-10 5:55 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-10 5:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20496
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh the TREE_OVERFLOW part was fixed much earlier than that though.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/20496] "-1" is inconsistently printed in tree dumps
[not found] <bug-20496-4@http.gcc.gnu.org/bugzilla/>
@ 2024-03-10 5:54 ` pinskia at gcc dot gnu.org
2024-03-10 5:55 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-10 5:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20496
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Known to work|4.7.1 |5.1.0
Status|NEW |RESOLVED
Target Milestone|--- |5.0
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r5-424-g807e902eea17f3 .
Which does:
print_dec (node, file, TYPE_SIGN (TREE_TYPE (node)));
always instead of dependent on the TREE_INT_CST_HIGH/TREE_INT_CST_LOW parts
being different.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-10 5:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-16 14:58 [Bug tree-optimization/20496] New: "-1" is inconsistently printed in tree dumps kazu at cs dot umass dot edu
2005-03-16 15:02 ` [Bug tree-optimization/20496] " pinskia at gcc dot gnu dot org
2005-06-15 2:59 ` pinskia at gcc dot gnu dot org
[not found] <bug-20496-4@http.gcc.gnu.org/bugzilla/>
2024-03-10 5:54 ` pinskia at gcc dot gnu.org
2024-03-10 5:55 ` pinskia at gcc dot gnu.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).