Bug 909298

Summary: gcc emits invalid assembler code during compilation of coreutils src/factor.c
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: gustavold, jakub, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 16:18:02 UTC Type: Bug
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
gcc -S output
none
gcc -E output none

Description Karsten Hopp 2013-02-08 15:00:24 UTC
Created attachment 695123 [details]
gcc -S output

Description of problem:
gcc-4.8.0-0.9.fc19 fails to build coreutils-8.20-7.fc19:
{standard input}: Assembler messages:
{standard input}:825: Error: junk at end of line, first unrecognized character is `{'
{standard input}:826: Error: junk at end of line, first unrecognized character is `{'
{standard input}:868: Error: junk at end of line, first unrecognized character is `{'
{standard input}:869: Error: junk at end of line, first unrecognized character is `{'
...
...
...
{standard input}:8406: Error: junk at end of line, first unrecognized character is `{'
make[2]: *** [src/factor.o] Error 1

Version-Release number of selected component (if applicable):
gcc-4.8.0-0.9.fc19

How reproducible:
always

Steps to Reproduce:
1. try to compile on PPC64 coreutils-8.20-7.fc19 with the latest rawhide gcc
2. 
3. 
  
Actual results:
http://ppc.koji.fedoraproject.org/kojifiles/work/tasks/5679/895679/build.log

Expected results:


Additional info:
output of 
gcc -E -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src    -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -D_GNU_SOURCE=1 -fno-strict-aliasing -fpic -c -o /tmp/factor.pre src/factor.c

and

gcc -S -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src    -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -D_GNU_SOURCE=1 -fno-strict-aliasing -fpic -c -o /tmp/factor.asm src/factor.c

attached

Comment 1 Karsten Hopp 2013-02-08 15:01:14 UTC
Created attachment 695124 [details]
gcc -E output

Comment 2 Marek Polacek 2013-02-08 16:04:15 UTC
Now tracked upstream:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56256