IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compiler warning will affect in compiler V4.3


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Karthikeyan Subbarayan

New User


Joined: 24 Feb 2008
Posts: 62
Location: Boston

PostPosted: Thu Mar 13, 2014 7:57 pm
Reply with quote

hi All,
There is an requirement to change Pl/I compiler version from V3.7 to V4.3 and in most of the programs we are getting the below WARNING. Do we really need to address this warning, what will cause if the below WARNING is not addressed

Quote:

IBM2634I W 172.2 Given the support for addressing arithmetic, basing a
FIXED BIN on a POINTER or OFFSET is unnecessary, and
it will also fail to work properly if the size of a
POINTER changes.


We also get this warning in some of the copy book, which really scars us since it affect most of the components.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Mar 13, 2014 8:17 pm
Reply with quote

why not read the PL/1 migration guide

Your support should look carefully at the customization to understand
if and when 64 bits pointers will/might be used
( all depends on the allocated storage range )

if that is the case ( 64 bits pointers )
You should consider reviewing Your programs to use the PL/1 provided pointer arithmetics
( which does not depend on the pointer size )
Back to top
View user's profile Send private message
Karthikeyan Subbarayan

New User


Joined: 24 Feb 2008
Posts: 62
Location: Boston

PostPosted: Thu Mar 13, 2014 10:00 pm
Reply with quote

Sure, I will read the PL/1 migration guide. Just to get brief idea so that i can understand clearly while reading.

All our programs use "FIXED BIN(31)" so it will not cause any impact in the output though we are not addressing the issue. Do my understanding is correct ?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Mar 13, 2014 10:26 pm
Reply with quote

Just the opposire; re-read the message.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Mar 13, 2014 11:10 pm
Reply with quote

oh my goodness ...

a 32 bits pointer will use 4 bytes
a fixed bin 31 thing will use 4 bytes

a 64 bits pointer will use 8 bytes
so a fixed bin 31 rebased/redefined on it will map only the leftmost 32 bits ...

scary isn' t it ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Warning in dataset message TSO/ISPF 18
No new posts Pre-Compiler Bug with DSNH520I message? DB2 1
No new posts pre-compiler for program in an HFS DB2 0
Search our Forums:

Back to Top