public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45982] New: [4.3/4.4/4.5/4.6 Regression] PTA does not track integers
@ 2010-10-12 11:41 rguenth at gcc dot gnu.org
  2010-10-12 11:42 ` [Bug tree-optimization/45982] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-12 11:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45982

           Summary: [4.3/4.4/4.5/4.6 Regression] PTA does not track
                    integers
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


#include <stdint.h>

extern void abort (void);

uintptr_t __attribute__((pure,noinline,noclone))
foo (int *a)
{
  return (uintptr_t) a;
}

void __attribute__((noinline,noclone))
bar (uintptr_t a)
{
  int *p = (int *)a;
  *p = 1;
}

int main()
{
  int t = 0;
  bar (foo (&t));
  if (t != 1)
    abort ();
  return 0;
}


Related to PR45967.


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

end of thread, other threads:[~2012-03-13 16:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 11:41 [Bug tree-optimization/45982] New: [4.3/4.4/4.5/4.6 Regression] PTA does not track integers rguenth at gcc dot gnu.org
2010-10-12 11:42 ` [Bug tree-optimization/45982] " rguenth at gcc dot gnu.org
2010-10-12 11:55 ` rguenth at gcc dot gnu.org
2010-10-13 11:31 ` rguenth at gcc dot gnu.org
2010-10-13 11:34 ` rguenth at gcc dot gnu.org
2010-10-13 11:38 ` [Bug tree-optimization/45982] [4.3/4.4 " rguenth at gcc dot gnu.org
2011-06-27 10:42 ` rguenth at gcc dot gnu.org
2011-06-27 14:15 ` rguenth at gcc dot gnu.org
2012-03-13 16:54 ` [Bug tree-optimization/45982] [4.4 " jakub 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).