X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=ld%2Ftestsuite%2Fld-elfcomm%2Fcommon1b.c;fp=ld%2Ftestsuite%2Fld-elfcomm%2Fcommon1b.c;h=a375c90247104ace6d20dc9b2a41ad5f76da6547;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hp=4ed9e039c0ed06841a306cd84dace623b3ead957;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10;p=msp430-binutils.git diff --git a/ld/testsuite/ld-elfcomm/common1b.c b/ld/testsuite/ld-elfcomm/common1b.c index 4ed9e03..a375c90 100644 --- a/ld/testsuite/ld-elfcomm/common1b.c +++ b/ld/testsuite/ld-elfcomm/common1b.c @@ -1,3 +1,7 @@ -static char dummy1 = 'X'; +static +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) + __attribute__((__used__)) +#endif /* __GNUC__ */ + char dummy1 = 'X'; char foo1 [] = "Aligned at odd byte."; char foo2 [4];