r185597 - in /branches/google/gcc-4_6: ./ gcc/C...

singhai@gcc.gnu.org singhai@gcc.gnu.org
Wed Mar 21 07:10:00 GMT 2012


Author: singhai
Date: Wed Mar 21 07:09:57 2012
New Revision: 185597

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185597
Log:
2012-03-21   Harshit Chopra  <harshit@google.com>
        Backport from google/main r183548, r183888.

        2012-01-25   Harshit Chopra  <harshit@google.com>

        Introduce a new option -mpatch-functions-for-instrumentation to
        generate Nops at function prologue and epilogue for dynamic
        instrumentation.
        * gcc/config/i386/i386-protos.h: Added function and macro definitions
        for function patch sections used globally.
        * gcc/config/i386/i386.c (check_should_patch_current_function): Check
        if the current function should be patched with Nops.
        (ix86_output_function_prologue): Output Nops for function prologue.
        (ix86_output_function_nops_prologue_epilogue): Helper function which
        outputs Nops for function prologue and epilogue.
        (ix86_elf_asm_named_section): Generate the name of the function patch
        section.
        (ix86_output_call_insn): Generate nops for sibling calls.
        * gcc/config/i386/i386.md: Generate nops for returns.
        * gcc/config/i386/i386.opt: Commandline options to control nops
        generation for function patching.
        * gcc/params.def (DEFPARAM): Define parameter to control generation
        of nops based on number of instructions in a function
        * gcc/testsuite/gcc.target/i386/patch-functions-1.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-2.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-3.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-4.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-5.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-6.c: New testcase
        * gcc/testsuite/gcc.target/i386/patch-functions-7.c: New testcase

        2012-02-03   Harshit Chopra  <harshit@google.com>
  
        Restricting the tests to run for 64-bit target since function patching
        is only supported for 64-bit targets.
        
        * gcc.target/i386/patch-functions-1.c: Restrict to 64-bit targets.
        * gcc.target/i386/patch-functions-2.c: Likewise
        * gcc.target/i386/patch-functions-3.c: Likewise
        * gcc.target/i386/patch-functions-4.c: Likewise
        * gcc.target/i386/patch-functions-5.c: Likewise
        * gcc.target/i386/patch-functions-6.c: Likewise
        * gcc.target/i386/patch-functions-7.c: Likewise

Added:
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-1.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-1.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-2.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-2.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-3.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-3.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-4.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-4.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-5.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-5.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-6.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-6.c
    branches/google/gcc-4_6/gcc/testsuite/gcc.target/i386/patch-functions-7.c
      - copied, changed from r183548, branches/google/main/gcc/testsuite/gcc.target/i386/patch-functions-7.c
Modified:
    branches/google/gcc-4_6/   (props changed)
    branches/google/gcc-4_6/gcc/ChangeLog.google-4_6
    branches/google/gcc-4_6/gcc/config/i386/i386-protos.h
    branches/google/gcc-4_6/gcc/config/i386/i386.c
    branches/google/gcc-4_6/gcc/config/i386/i386.md
    branches/google/gcc-4_6/gcc/config/i386/i386.opt
    branches/google/gcc-4_6/gcc/params.def
    branches/google/gcc-4_6/gcc/testsuite/ChangeLog.google-4_6

Propchange: branches/google/gcc-4_6/
            ('svn:mergeinfo' modified)

Propchange: branches/google/gcc-4_6/
            ('svnmerge-integrated' modified)




More information about the Gcc-cvs mailing list