+2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * varasm.c (do_assemble_alias): Follow transparent alias
+ chain for target.
+ (default_assemble_visibility): Follow transparent alias
+ chain for decl name.
+
2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR middle-end/62103
+2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * gcc.target/i386/chkp-hidden-def.c: New.
+
2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR middle-end/62103
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target mpx } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
+/* { dg-final { scan-assembler-not "test.chkp" } } */
+
+int test (int *p);
+extern __typeof (test) test __asm__ ("" "__test") __attribute__ ((visibility ("hidden")));
+
+int test (int *p)
+{
+ return *p;
+}
+
+extern __typeof (test) __test1 __asm__("" "test");
+extern __typeof (test) __test1 __attribute__((alias ("" "__test")));
id = DECL_ASSEMBLER_NAME (decl);
ultimate_transparent_alias_target (&id);
+ ultimate_transparent_alias_target (&target);
/* We must force creation of DECL_RTL for debug info generation, even though
we don't use it here. */
if (lookup_attribute ("weakref", DECL_ATTRIBUTES (decl)))
{
- ultimate_transparent_alias_target (&target);
-
if (!TREE_SYMBOL_REFERENCED (target))
weakref_targets = tree_cons (decl, target, weakref_targets);
};
const char *name, *type;
+ tree id;
+
+ id = DECL_ASSEMBLER_NAME (decl);
+ ultimate_transparent_alias_target (&id);
+ name = IDENTIFIER_POINTER (id);
- name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
type = visibility_types[vis];
fprintf (asm_out_file, "\t.%s\t", type);