Bug 498773 - '-combine' causes "inlining failed in call to 'memcpy'" errors
'-combine' causes "inlining failed in call to 'memcpy'" errors
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-03 05:24 EDT by Enrico Scholz
Modified: 2009-05-06 10:42 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-06 10:42:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
tar ball with sources and generated *.i files (24.18 KB, application/x-bzip2)
2009-05-03 05:24 EDT, Enrico Scholz
no flags Details

  None (edit)
Description Enrico Scholz 2009-05-03 05:24:36 EDT
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 10:42:02 EDT
-combine has many issues, isn't really supported and will be replaced by LTO/LIPO.

Note You need to log in before you can comment on or make changes to this bug.