public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Make shift argument to eoshift0 be of type index_type
@ 2017-11-22 11:42 Janne Blomqvist
  2017-11-22 18:10 ` Thomas Koenig
  0 siblings, 1 reply; 6+ messages in thread
From: Janne Blomqvist @ 2017-11-22 11:42 UTC (permalink / raw)
  To: fortran, gcc-patches; +Cc: Janne Blomqvist

Regtested on x86_64-pc-linux-gnu, Ok for trunk?

libgfortran/ChangeLog:

2017-11-22  Janne Blomqvist  <jb@gcc.gnu.org>

	* intrinsics/eoshift0.c (eoshift0): Make shift an index_type.
---
 libgfortran/intrinsics/eoshift0.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libgfortran/intrinsics/eoshift0.c b/libgfortran/intrinsics/eoshift0.c
index 3dae88c..dd8c81d 100644
--- a/libgfortran/intrinsics/eoshift0.c
+++ b/libgfortran/intrinsics/eoshift0.c
@@ -26,12 +26,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "libgfortran.h"
 #include <string.h>
 
-/* TODO: make this work for large shifts when
-   sizeof(int) < sizeof (index_type).  */
 
 static void
 eoshift0 (gfc_array_char * ret, const gfc_array_char * array,
-	  int shift, const char * pbound, int which, index_type size,
+	  index_type shift, const char * pbound, int which, index_type size,
 	  const char *filler, index_type filler_len)
 {
   /* r.* indicates the return array.  */
-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-22 20:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22 11:42 [PATCH] Make shift argument to eoshift0 be of type index_type Janne Blomqvist
2017-11-22 18:10 ` Thomas Koenig
2017-11-22 20:18   ` [PATCH] Make shift argument to eoshift0 and eoshift2 " Janne Blomqvist
2017-11-22 20:25   ` [PATCH] Make shift argument to eoshift0 " Janne Blomqvist
2017-11-22 20:35     ` Thomas Koenig
2017-11-22 20:51       ` Janne Blomqvist

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).