Project

General

Profile

Feature #9420

need GCC options to disable function cloning

Added by Toomas Soome over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2018-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Work done by Richard Lowe. The idea has been circled around before...

History

#1

Updated by John Levon 11 months ago

  • Subject changed from Makefile.master: introduce GCCNEXT to guard options gcc 4 doesn't understand to need GCC options to disable function cloning
  • Assignee changed from Toomas Soome to John Levon

For newer GCCs, we need to specify -fno-clone-functions and -fno-ipa-icf as part of Makefile.master's
CCNOAUTOINLINE

These options prevent GCC from making copies of functions, and removing identical functions, so dtrace and friends can still find them as expected.

Because GCC4 doesn't understand them, we need to specify them as _gcc6=... etc.

#2

Updated by Electric Monk 11 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 6b544f0e850631b170bc4e905cf726275acfd586

commit  6b544f0e850631b170bc4e905cf726275acfd586
Author: John Levon <john.levon@joyent.com>
Date:   2018-10-09T15:20:47.000Z

    9420 need GCC options to disable function cloning
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF