develooper Front page | perl.perl5.porters | Postings from February 2012

Re: Possible misalign problem in HvKEYS (HV *)

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
February 28, 2012 23:32
Subject:
Re: Possible misalign problem in HvKEYS (HV *)
Message ID:
20120229083220.4d1c9e75@pc09.procura.nl
Ping. Nobody vented any opinion. Do we (have to) care?

On Fri, 3 Feb 2012 11:46:15 +0100, "H.Merijn Brand"
<h.m.brand@xs4all.nl> wrote:

> HP-UX 11.31/64 U  rx2660/64 Itanium 2 9100/1710(2) ia64
> 
> This is perl 5, version 14, subversion 2 (v5.14.2) built for IA64.ARCHREV_0-LP64-ld
> 
> config_args='-Dusedevel -Duselongdouble -Duse64bitall -Uversiononly -Dinc_version_list=none -des';
> 
> 
> Building DBI using HP C-ANSI-C:
> 
> HV *hv = (HV*)SvRV(*svp);
> 
> "DBI.xs", line 1469: warning #4232-D: conversion from "XPVHV *" to a more
>           strictly aligned type "XPVMG *" may cause misaligned access
>               PerlIO_printf(DBILOGFP,"%s CachedKids %d\n", pad, (int)HvKEYS(hv));
>                                                                      ^
> 
> "DBI.xs", line 2582: warning #4232-D: conversion from "XPVHV *" to a more
>           strictly aligned type "XPVMG *" may cause misaligned access
>               if (HvKEYS(hv)) {
>                   ^
> 
> "DBI.xs", line 2587: warning #4232-D: conversion from "XPVHV *" to a more
>           strictly aligned type "XPVMG *" may cause misaligned access
>                           meth_name, neatsvpv(h,0), (int)HvKEYS(hv));
>                                                          ^
> 
> 
> 
> perl-5.14.2 > perl Porting/expand-macro.pl HvKEYS
> `sh  cflags "optimize='+O2 +Onolimit'" try.c` -E try.c > try.i
>           CCCMD =  cc -DPERL_CORE -c  -Ae -DPERL_DONT_CREATE_GVSV +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   +O2 +Onolimit
> #line 4 "HvKEYS expands to"
> ((((XPVHV*) (A0)->sv_any)->xhv_keys) - (((XPVMG*) (A0)->sv_any)->xmg_u . xmg_magic ? Perl_hv_placeholders_get( (const HV *)A0) : 0))
> 
> 


-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About