Bug 498773 - '-combine' causes "inlining failed in call to 'memcpy'" errors
Summary: '-combine' causes "inlining failed in call to 'memcpy'" errors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-03 09:24 UTC by Enrico Scholz
Modified: 2009-05-06 14:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-06 14:42:02 UTC
Type: ---
Embargoed:


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

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.


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