diff mbox series

[4/6,ARC] Define LINK_GCC_C_SEQUENCE_SPEC.

Message ID 20180521101839.13288-4-claziss@gmail.com
State New
Headers show
Series [1/6,ARC] Add modes scheduler HS | expand

Commit Message

Claudiu Zissulescu Ianculescu May 21, 2018, 10:18 a.m. UTC
From: claziss <claziss@synopsys.com>

If no specs file is provided, default to nosys library.

Ok to apply?
Claudiu

gcc/
2017-05-03  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
---
 gcc/config/arc/elf.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andrew Burgess June 12, 2018, 7:32 p.m. UTC | #1
* Claudiu Zissulescu <claziss@gmail.com> [2018-05-21 13:18:37 +0300]:

> From: claziss <claziss@synopsys.com>
> 
> If no specs file is provided, default to nosys library.
> 
> Ok to apply?

Looks good.

Thanks,
Andrew


> Claudiu
> 
> gcc/
> 2017-05-03  Claudiu Zissulescu  <claziss@synopsys.com>
> 
> 	* config/arc/elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
> ---
>  gcc/config/arc/elf.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/gcc/config/arc/elf.h b/gcc/config/arc/elf.h
> index 43ced3b720f..66ee5b698ea 100644
> --- a/gcc/config/arc/elf.h
> +++ b/gcc/config/arc/elf.h
> @@ -73,3 +73,8 @@ along with GCC; see the file COPYING3.  If not see
>  
>  #undef TARGET_ASM_FILE_END
>  #define TARGET_ASM_FILE_END arc_file_end
> +
> +/* If no specs file is enforced, default to nosys libarary.  */
> +#undef LINK_GCC_C_SEQUENCE_SPEC
> +#define LINK_GCC_C_SEQUENCE_SPEC				\
> +  "--start-group %G %{!specs=*:-lc -lnosys} --end-group"
> -- 
> 2.14.3
>
Claudiu Zissulescu June 13, 2018, 8:42 a.m. UTC | #2
Done. Thank you for your review,
Claudiu
diff mbox series

Patch

diff --git a/gcc/config/arc/elf.h b/gcc/config/arc/elf.h
index 43ced3b720f..66ee5b698ea 100644
--- a/gcc/config/arc/elf.h
+++ b/gcc/config/arc/elf.h
@@ -73,3 +73,8 @@  along with GCC; see the file COPYING3.  If not see
 
 #undef TARGET_ASM_FILE_END
 #define TARGET_ASM_FILE_END arc_file_end
+
+/* If no specs file is enforced, default to nosys libarary.  */
+#undef LINK_GCC_C_SEQUENCE_SPEC
+#define LINK_GCC_C_SEQUENCE_SPEC				\
+  "--start-group %G %{!specs=*:-lc -lnosys} --end-group"