* [PATCH] objc-runtime-shared-support.c - Identical code for different branches
@ 2017-05-14 9:59 Sylvestre Ledru
2017-05-16 3:02 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Sylvestre Ledru @ 2017-05-14 9:59 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
Hello,
Now that Coverity is up and running, I am trying to fix some errors.
Let's start a trivial one (same code in different branches)
S
[-- Attachment #2: 0001-2017-05-14-Sylvestre-Ledru-sylvestre-debian.org.patch --]
[-- Type: text/x-patch, Size: 1320 bytes --]
From 50248decd02bfac52ad64b64c972750489e2ffa0 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre@debian.org>
Date: Sun, 14 May 2017 10:55:24 +0200
Subject: [PATCH 1/5] 2017-05-14 Sylvestre Ledru <sylvestre@debian.org>
* objc-runtime-shared-support.c (build_module_descriptor):
Identical code for different branches (since 2012)
CID 1406758
---
gcc/objc/objc-runtime-shared-support.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/gcc/objc/objc-runtime-shared-support.c b/gcc/objc/objc-runtime-shared-support.c
index 8d35d27c031..5ead87078c6 100644
--- a/gcc/objc/objc-runtime-shared-support.c
+++ b/gcc/objc/objc-runtime-shared-support.c
@@ -500,11 +500,7 @@ build_module_descriptor (long vers, tree attr)
objc_finish_struct (objc_module_template, decls);
/* Create an instance of "_objc_module". */
- UOBJC_MODULES_decl = start_var_decl (objc_module_template,
- /* FIXME - why the conditional
- if the symbol is the
- same. */
- flag_next_runtime ? "_OBJC_Module" : "_OBJC_Module");
+ UOBJC_MODULES_decl = start_var_decl (objc_module_template, "_OBJC_Module");
/* This is the root of the metadata for defined classes and categories, it
is referenced by the runtime and, therefore, needed. */
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] objc-runtime-shared-support.c - Identical code for different branches
2017-05-14 9:59 [PATCH] objc-runtime-shared-support.c - Identical code for different branches Sylvestre Ledru
@ 2017-05-16 3:02 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2017-05-16 3:02 UTC (permalink / raw)
To: Sylvestre Ledru, gcc-patches
On 05/14/2017 03:58 AM, Sylvestre Ledru wrote:
> Hello,
>
> Now that Coverity is up and running, I am trying to fix some errors.
>
> Let's start a trivial one (same code in different branches)
>
> S
>
>
>
> 0001-2017-05-14-Sylvestre-Ledru-sylvestre-debian.org.patch
>
>
> From 50248decd02bfac52ad64b64c972750489e2ffa0 Mon Sep 17 00:00:00 2001
> From: Sylvestre Ledru<sylvestre@debian.org>
> Date: Sun, 14 May 2017 10:55:24 +0200
> Subject: [PATCH 1/5] 2017-05-14 Sylvestre Ledru<sylvestre@debian.org>
>
> * objc-runtime-shared-support.c (build_module_descriptor):
> Identical code for different branches (since 2012)
> CID 1406758
OK. BUt I would rewrite the ChangeLog as
* objc-runtime-shared-support.c (build_module_descriptor):
Remove unnecessary conditional when building instance of
objc_module.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-16 1:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-14 9:59 [PATCH] objc-runtime-shared-support.c - Identical code for different branches Sylvestre Ledru
2017-05-16 3:02 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).