Bug 498773

Summary: '-combine' causes "inlining failed in call to 'memcpy'" errors
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-06 14:42:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tar ball with sources and generated *.i files none

Description Enrico Scholz 2009-05-03 09:24:36 UTC
Created attachment 342207 [details]
tar ball with sources and generated *.i files

Description of problem:

When trying to compile code which contains

|	char			*str = strdupa(str_c);

I get

| $ cc -combine -D_GNU_SOURCE -DVERSION=\"\" -DLOCALSTATEDIR=\"\"   -O2 -g -save-temps -Wall -W -std=gnu99 -Wno-unused -fstack-protector -Wp,-D_FORTIFY_SOURCE=2 -Werror   dhcp.c dhcpd.c main.c  -MMD -MF ./.dep.dhcpd-simple -o dhcpd-simple
| /usr/include/bits/string3.h:51: sorry, unimplemented: inlining failed in call to 'memcpy': function not inlinable
| dhcpd.c:229: sorry, unimplemented: called from here

error message.


Removing the '-combine' (which is required for proper .dep* file
generation) or -D_FORTIFY_SOURCE=2 makes the program compile fine.


I will attach the three *.i files where the problem can be reproduced
by

| $ gcc -combine -O *.i
| dhcpd.c: In function 'dhcpd_param_parse':
| /usr/include/bits/string3.h:51: sorry, unimplemented: inlining failed in call to 'memcpy': function not inlinable
| dhcpd.c:229: sorry, unimplemented: called from here


Version-Release number of selected component (if applicable):

gcc-4.3.2-7.x86_64
glibc-devel-2.9-3.x86_64

Comment 1 Jakub Jelinek 2009-05-06 14:42:02 UTC
-combine has many issues, isn't really supported and will be replaced by LTO/LIPO.