Quick question for the community of GCC programmers.
I have code that uses:
(as an example).
Now this code has compiled for many years on a few different platforms and GCC versions.
Recently I got warning messages about it (using gcc 4.9.2 on Solaris) and I wondered why. Upon further investigation it turns out the GCC documented method is:
My question is, when did that change? I have no problem using pack(#) instead but I am wondering why I have never seen this warning until now if all the document cation going back to 4.2 3 refers to the pack() pragma.
Does anyone know the story here?
Is align just something the compiler accepted for backward compatibility?
Are there old GCC compilers that don't support the pragma pack()?
Just wondering.
Thanks!
Last edited by Don Cragun; 01-14-2016 at 03:19 AM..
Reason: Add CODE and ICODE tags.
Dear All,
I am in the beginning stage of learning shell scripting and preparing shell script on my own now.
I would like to get help from fellow mates here.
As I am trying to take O/P with space included from I/P table.
Kindly guide me to align given I/P table as Expected O/P.
... (5 Replies)
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
*1 flash read test(*do_test1*) PASS
*2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx
I want pass and Fail to be aligned
if each line uses printf or echo to print, is... (5 Replies)
I am not able to find warn-codes that should be used in
#pragma warn -<code>
directive!:wall:
Could anybody advise where I can see a list of warnings with codes that (as I understand) should be 3-letters code?
I have a pro-C program that produces some warnings.
(Do not advise,... (4 Replies)
Hi,
I am having a file with with format.
however, for longer xml, the xml code has been truncated like this.
F1 |###################### |String1 |<XML><REQ><MSGTYPE>DBDIRECT</MSGTYPE><SYNC>0</SYNC><CLIENT>C11</CLIENT>NAME=MYNAME|JOB=MYJOB|
| ... (3 Replies)
Hi,
I have a question regarding pragma page. What is the advantage of using this pragma? Also the description tells that it is a compiler directive to start of in a new page. Does the page here refer to the page in memory where the set of code under the pragma page will be starting in a new... (3 Replies)
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Dear Champs,
i have a file let a.txt having value
number text
00 123
012
145 456
...etc
i need number and text column vales should right align ??? how can i achive this ???
NOTE number is of max 3 char and text can take max 7 char...so if any records are less than above lengths... (2 Replies)
hello.
i use follow sentences in include files in SCO unix is ok.
#pragma pack(1)
struct dddd {
int iD1;
char cCh1;
...
};
#pragma pack()
but in hp-9000 unix , not ok when compiling, cc not support
#pragma pack(1)
how to settle the question ?
... (1 Reply)