about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2024-02-02 12:11:57 -0500
committerGitHub <noreply@github.com>2024-02-02 12:11:57 -0500
commitb04824a3b2f280ec66a4e528ee2c15a75883ac10 (patch)
treeddb118efa7d711767f66ce97db1ad0cd0ed361a0 /src
parent2a36f58475ce6b2bcf7d5e619af2c4875698f9fb (diff)
parentad8e8201395b0c2a9dbacfde2c5aa7580a1cdb82 (diff)
downloadrust-b04824a3b2f280ec66a4e528ee2c15a75883ac10.tar.gz
rust-b04824a3b2f280ec66a4e528ee2c15a75883ac10.zip
Merge pull request #421 from rust-lang/update/gcc
Update for rebased gcc
Diffstat (limited to 'src')
-rw-r--r--src/consts.rs2
-rw-r--r--src/mono_item.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/consts.rs b/src/consts.rs
index d8a1fd315c0..2501c126faf 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -235,7 +235,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
 
             if !self.tcx.is_reachable_non_generic(def_id) {
                 #[cfg(feature = "master")]
-                global.add_attribute(VarAttribute::Visibility(Visibility::Hidden));
+                global.add_string_attribute(VarAttribute::Visibility(Visibility::Hidden));
             }
 
             global
diff --git a/src/mono_item.rs b/src/mono_item.rs
index 3322d56513b..fdeb2f96fe2 100644
--- a/src/mono_item.rs
+++ b/src/mono_item.rs
@@ -23,7 +23,7 @@ impl<'gcc, 'tcx> PreDefineMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
         let is_tls = attrs.flags.contains(CodegenFnAttrFlags::THREAD_LOCAL);
         let global = self.define_global(symbol_name, gcc_type, is_tls, attrs.link_section);
         #[cfg(feature="master")]
-        global.add_attribute(VarAttribute::Visibility(base::visibility_to_gcc(visibility)));
+        global.add_string_attribute(VarAttribute::Visibility(base::visibility_to_gcc(visibility)));
 
         // TODO(antoyo): set linkage.
         self.instances.borrow_mut().insert(instance, global);