Revision 147596:

http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00572.html

breaks bootstrap on ia64. A testcase:

[...@gnu-12 prev-gcc]$ cat /tmp/x.i
struct rtx_def;
typedef struct rtx_def *rtx; 

extern int foo;
extern int bar;

extern int test (void);
extern int xxx;

int
test (void)
{
  if (((rtx) 0 != (rtx) 0) && xxx ? foo : bar)
    return 1;
  else
  return 0;
}
[...@gnu-12 prev-gcc]$ ./xgcc -B./ -Wall -W -O2 -Werror -S /tmp/x.i
cc1: warnings being treated as errors
/tmp/x.i: In function ‘test’:
/tmp/x.i:13: error: logical ‘and’ of mutually exclusive tests is always false
[...@gnu-12 prev-gcc]$


-- 
           Summary: [4.5 Regression]  Revision 147596 breaks bootstrap ia
                    ia64
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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

Reply via email to