Patchwork [testsuite] : g++.dg/pr49718.C: Add "-mno-explicit-relocs" for alpha*-*-* targets.

login
register
mail settings
Submitter Uros Bizjak
Date Jan. 19, 2014, 7:23 p.m.
Message ID <CAFULd4ZGtRoAUyg9hRYXt3Ko4PKWekFYLO1Rz_f2035ASKR96w@mail.gmail.com>
Download mbox | patch
Permalink /patch/312390/
State New
Headers show

Comments

Uros Bizjak - Jan. 19, 2014, 7:23 p.m.
Hello!

Alpha needs "-mno-explicit-relocs" to count number of function calls properly.

2014-01-19  Uros Bizjak  <ubizjak@gmail.com>

    * g++.dg/pr49718.C: Add "-mno-explicit-relocs" for alpha*-*-* targets.

Tested on alphaev6-pc-linux-gnu and committed to mainline SVN.

Uros.

Patch

Index: g++.dg/pr49718.C
===================================================================
--- g++.dg/pr49718.C	(revision 206758)
+++ g++.dg/pr49718.C	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O2 -finstrument-functions" } */
+/* { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } } */
 /* { dg-final { scan-assembler-times "__cyg_profile_func_enter" 1} } */
 
 #define NOINSTR __attribute__((no_instrument_function))