diff mbox

use build_function_type_list in the s390 backend

Message ID 20110420194329.GI6507@nightcrawler
State New
Headers show

Commit Message

Nathan Froyd April 20, 2011, 7:43 p.m. UTC
As $SUBJECT suggests.  Tested with cross to s390-linux-gnu.  OK to
commit?

-Nathan

	* config/s390/s390.c (s390_init_builtins): Call
	build_function_type_list instead of build_function_type.

Comments

Richard Biener April 21, 2011, 8:57 a.m. UTC | #1
On Wed, Apr 20, 2011 at 9:43 PM, Nathan Froyd <froydnj@codesourcery.com> wrote:
> As $SUBJECT suggests.  Tested with cross to s390-linux-gnu.  OK to
> commit?

Those kind of patches are pretty obvious, so if $target maintainers do not
comment within 48h consider them approved.

Thanks,
Richard.

> -Nathan
>
>        * config/s390/s390.c (s390_init_builtins): Call
>        build_function_type_list instead of build_function_type.
>
> diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
> index caee077..adacfa3 100644
> --- a/gcc/config/s390/s390.c
> +++ b/gcc/config/s390/s390.c
> @@ -9172,7 +9172,7 @@ s390_init_builtins (void)
>  {
>   tree ftype;
>
> -  ftype = build_function_type (ptr_type_node, void_list_node);
> +  ftype = build_function_type_list (ptr_type_node, NULL_TREE);
>   add_builtin_function ("__builtin_thread_pointer", ftype,
>                        S390_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
>                        NULL, NULL_TREE);
>
>
diff mbox

Patch

diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index caee077..adacfa3 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -9172,7 +9172,7 @@  s390_init_builtins (void)
 {
   tree ftype;
 
-  ftype = build_function_type (ptr_type_node, void_list_node);
+  ftype = build_function_type_list (ptr_type_node, NULL_TREE);
   add_builtin_function ("__builtin_thread_pointer", ftype,
 			S390_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
 			NULL, NULL_TREE);