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 bootstrap/53728] [4.6 regression] Bootstrap comparison failure (gcc/varasm.o differs) with CFLAGS="-O2 -march=pentium3"


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

--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2013-03-11 22:43:38 UTC ---
Testcase:

--cut here--
extern int global_options;
extern unsigned char *mode_size;

extern int printf (const char *, ...);

void mergeable_constant_section (int mode, unsigned long long align)
{
  unsigned int modesize = mode_size[mode] * 8;

  if (global_options && modesize <= align && (align & (align - 1)) == 0)
    {
      unsigned int flags;

      printf ("%d", (int) (align / 8));
      flags = align / 8;
      printf ("%u", (unsigned int) flags);
    }
}
--cut here--

$ ~/gcc-build-46/gcc/xgcc -B ~/gcc-build-46/gcc -O2 -m32 -march=pentium3 \
-fcompare-debug pr53728.c
xgcc: error: pr53728.c: -fcompare-debug failure (length)


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