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.
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)
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)
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)
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)
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)
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)
*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)
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)
Discussion started by: Raja007
5 Replies
LEARN ABOUT HPUX
feraiseexcept
feraiseexcept(3M)feraiseexcept(3M)NAME
feraiseexcept() - raise floating-point exceptions
SYNOPSIS
HP Integrity Server Only
PA-RISC Only
DESCRIPTION
The function raises the floating-point exceptions represented by its argument. The argument can be constructed as a bitwise OR of the
exception macros: and represents all the exceptions.
Any traps enabled for the specified exceptions will be taken.
USAGE
To use this function, compile either with the default option or with the and options. Make sure your program includes
For Integrity servers, specify on the compiler command line or place the call to this function under the effect of an affirmative pragma:
If the pragma is placed outside of any top-level declarations in a file, the pragma will apply to all declarations in the compilation fol-
lowing the pragma until another pragma is encountered or until the end of the file is reached.
If the pragma is placed at the beginning of a block (compound statement), the pragma will apply until another pragma is encountered or
until the end of the block is reached.
For PA-RISC, you might need to use the compiler option in order to prevent optimizations that can undermine the specified behavior of this
function.
Link in the math library by specifying on the compiler or linker command line.
For more information, see the at the following site:
RETURN VALUE
Integrity Server Only
This function always returns 0, indicating that all the specified exceptions were successfully raised.
PA-RISC Only
None.
ERRORS
No errors are defined.
EXAMPLES
Raise the underflow and inexact exceptions:
Raise all exceptions:
SEE ALSO feclearexcept(3M), fegetexceptflag(3M), fegettrapenable(3M), fesetexceptflag(3M), fesettrapenable(3M), fetestexcept(3M), fenv(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic")
feraiseexcept(3M)