This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44024] New: missed optimization


The commit
http://gcc.gnu.org/viewcvs?view=revision&revision=122551

changed gcc's behaviour in

-----------------------------
int bar();
int a = ((void *) bar) != 0;
--------------------------------

We used to accept it, but now we produce

test.c:2: error: initializer element is not constant

The new behaviour is actually the correct one, but it points out that the
change had unintentional effects. Richard asked me to create his bug for him to
investigate.


-- 
           Summary: missed optimization
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: rguenther at suse dot de
        ReportedBy: espindola at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]