Opened 4 years ago

Last modified 8 months ago

#5378 new bug

unreg compiler: warning: conflicting types for built-in function ‘memcpy’

Reported by: igloo Owned by:
Priority: low Milestone: 7.12.1
Component: Compiler Version: 7.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

T3736 fails with an unreg compiler due to printing a warning about conflicting types for memcpy:

$ ghc -dno-debug-output  -v0 -O --make T3736 -rtsopts -keep-tmp-files
/tmp/ghc4352_0/ghc4352_0.hc: In function ‘s2E3_ret’:

/tmp/ghc4352_0/ghc4352_0.hc:1494:0:
     warning: conflicting types for built-in function ‘memcpy’

Line 1494 is

;EF_(memcpy);

in:

if ((W_)((W_)Hp > (W_)HpLim)) goto _c2MC;
_s2yO = (Sp[4]) + 0x10UL;
_s2Ed = Sp[2];
_s2yS = (*((P_)(R1.w+7))) * 0x4UL;
_s2Ee = (Sp[5]) + _s2yS;
;EF_(memcpy);
{void * (*ghcFunPtr)(void *, void *, W_);
ghcFunPtr = ((void * (*)(void *, void *, W_))(W_)&memcpy);
_s2Eg = (W_)ghcFunPtr((void *)_s2yO, (void *)_s2Ee, _s2Ed);;}
Hp[-12] = (W_)&base_GHCziSTRef_STRef_con_info;
Hp[-11] = Sp[1];
Hp[-10] = (W_)&base_GHCziForeignPtr_MallocPtr_con_info;
Hp[-9] = Sp[4];
Hp[-8] = (W_)Hp-95;

Change History (5)

comment:1 Changed 4 years ago by igloo

  • Milestone set to 7.4.1

comment:2 Changed 4 years ago by igloo

  • Milestone changed from 7.4.1 to 7.6.1
  • Priority changed from normal to low

comment:3 Changed 3 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:4 Changed 14 months ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:5 Changed 8 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

Note: See TracTickets for help on using tickets.