On Wed, Dec 16, 2009 at 01:35:12PM +0100, ????? ???????????? wrote:
> I need help with E_INIT_SIGN_EXTEND.
> Can anyone provide an example statement which triggers this compiler
> warning, please?
] cat -n usign.c
1 unsigned u1 = 1LL << 31;
2 unsigned u2 = 1L << 31;
] suncc usign.c -v -c -errtags
"usign.c", line 2: warning: integer overflow detected: op "<<"
(E_INTEGER_OVERFLOW_DETECTED)
"usign.c", line 2: warning: initializer will be sign-extended: -2147483648
(E_INIT_SIGN_EXTEND)
]
Note, that first line does not get these warnings.
regards,
Fedor.
>
> ---------- Forwarded message ----------
> From: <bugmail-sender at sun.com>
> Date: Thu, Dec 10, 2009 at 10:52 PM
> Subject: [ksh93-integration-discuss] CR 6909375 Updated, P2
> shell/korn93 Sparc: aten build14.0 acomp failed to build new
> OpenSolaris snv_128 sources
> To:
>
>
> *Synopsis*: Sparc: aten build14.0 acomp failed to build new
> OpenSolaris snv_128 sources
>
> CR 6909375 changed on Dec 10 2009 by <User 1-5Q-4028>
>
> === Field ============ === New Value ============= === Old Value =============
>
> Category shell library
> SubCategory korn93 other
> ====================== =========================== ===========================
>
>
> *Change Request ID*: 6909375
>
> *Synopsis*: Sparc: aten build14.0 acomp failed to build new
> OpenSolaris snv_128 sources
>
> Product: solaris
> Category: shell
> Subcategory: korn93
> Type: Defect
> Subtype:
> Status: 1-Dispatched
> Substatus:
> Priority: 2-High
> Introduced In Release:
> Introduced In Build:
> Responsible Engineer:
> Keywords: s11-cbe-ceres
>
> === *Description* ============================================================
> This failure does not look like a regression versus previous uiweekly
> build. Most likely Solaris people introduced in snv_128 some new
> code and acomp does not like it.
>
> Error message from compilation of:
>
> usr/src/lib/libast/common/comp/setlocale.c
>
> is:
>
> "../common/comp/setlocale.c", line 767: initializer will be
> sign-extended: -2147483648 (E_INIT_SIGN_EXTEND)
>
> It seems points to the bug in OpenSolaris itself.
> The only issue here is that Mars-patch compiler which we shipped
> to Solaris does not report this bug.
>
> The whole *.log file of that build is currently
> located under
>
> /net/venus-2500/export/home/sprs/bld_onnv_128_aten_bwk_build14.0/log/log.2009-12-10.00:31/nightly.log
>
> but will be deleted in a ~ 2weeks from now.
>
> How to reproduce
> =================
>
> >From your Sparc machine do the following:
>
> cd /net/clpt41/export/home/isvs/acomp_bug_in_os_aten_14
> do_wrk.sh
>
> *** (#1 of 1): 2009-12-10 20:14:48 GMT+00:00 <User 1-5Q-13874>
>
>
> === *Public Comments* ========================================================
>
> === *Workaround* =============================================================
>
> === *Additional Details* =====================================================
> Targeted Release:
> Commit To Fix In Build:
> Fixed In Build:
> Integrated In Build:
> Verified In Build:
> See Also:
> Duplicate of:
> Hooks:
> Hook1:
> Hook2:
> Hook3:
> Hook4:
> Hook5:
> Hook6:
> Program Management:
> Root Cause:
> Fix Affects Documentation: No
> Fix Affects Localization: No
>
> === *History* ================================================================
> Date Submitted: 2009-12-10 20:14:47 GMT+00:00
> Submitted By: <User 1-5Q-13874>
>
> Status Changed Date Updated Updated By
>
>
> === *Service Request* ========================================================
> Impact: Significant
> Functionality: Primary
> Severity: 2
> Product Name: compilers-tools
> Product Release: aten
> Product Build:
> Operating System: 5.11
> Hardware: ultrasparc
> Submitted Date: 2009-12-10 20:14:48 GMT+00:00
>
>
> === *Multiple Release (MR) Cluster* - 0 ======================================
>
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
>
>
>
> --
> , _ _ ,
> { \/`o;====- Olga Kryzhanovska -====;o`\/ }
> .----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
> `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'`
> /\/\ /\/\
> `--` `--`
> _______________________________________________
> tools-compilers mailing list
> tools-compilers at opensolaris.org