------- Comment #1 from ebotcazou at gcc dot gnu dot org 2008-02-18 17:51
-------
> I have reproduced this with gcc-4.1.2 and gcc-4.2.3. I cannot reproduce it
> using Sun Studio CC-5.7. I also could not reproduce it on RHEL-5 with its
> gcc-4.1.2, nor could a couple of other people who tried it on non-sparc
> platforms.
Thanks for the detailed report.
> I have also found that if I build everything else with "-g", but intervals.c
> with "-g -O2", then I can reproduce this problem. So, it seems specific to
> the optimisation of intervals.c and specific to Solaris. How could that be?
Some optimizations are target-dependent, so it's not uncommon.
> I appreciate that Emacs is not the smallest of test cases and I apologise in
> advance for this crime. Anything I can do to help determine the cause?
Are you familiar with src/intervals.c? If so, you could try to narrow down
the problem to a single function, if possible. Try first to compile it at
-O1 only, then add -fno-unit-at-a-time. What happens?
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35249