This is the mail archive of the gcc-patches@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]

Re: [PATCH] Overhaul __builtin_constant_p processing


Roger,

Here's a testcase which fails to compile with your __builtin_constant_p
overhual patch installed distilled from gdb/f-exp.tab.c

Your patch causes gcse.c:find_avail_set to loop forever on x86 at -O2.
I haven't analysed why it's looping yet.

-------------------------------------------------------------
static int parse_number (int);

static int
parse_number (int c)
{
  c = ({
        int __res;
        if (__builtin_constant_p (c))
          __res = c;
        __res;
       });

  return 257;
}
---------------------------------------------------------------

Cheers
Graham


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