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: Deprecate -funit-at-a-time


Jakub Jelinek wrote:
On Fri, Jul 18, 2008 at 10:15:22AM -0700, Mark Mitchell wrote:
Richard Guenther wrote:
However I will be happy to change the spec line I have to imply
-fno-toplevel-reorder -fno-section-anchors and output message (or not
output it and just silently accept it as alias).
Why -fno-section-anchors?

-fsection-anchors reorders variables, which causes e.g. glibc miscompilation. See http://sources.redhat.com/ml/libc-hacker/2008-04/msg00001.html

I see. Maybe -fno-toplevel-reorder should imply -fno-section-anchors directly, then, since the two seem fundamentally incompatible?


And, presumably -fno-toplevel-reorder -fsection-anchors should be an error. I don't think we can check that reliably in the specs; we probably need an explicit check in the code:

  if (!flag_toplevel_reorder && flag_section_anchors)
    error (...);

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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