Issue Details (XML | Word | Printable)

Key: PCC-474
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: rl
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

build with --disable-gcc-compat fails

Created: 18/Aug/14 12:34 PM   Updated: 24/Aug/14 03:53 PM
Component/s: amd64 target
Affects Version/s: None
Fix Version/s: None

Environment: x86_64 Linux 3.x, static uclibc 0.9.29, pcc as of 2014-05-14, with gcc-compatibility


 Description  « Hide
arch/amd64/code.c contains a reference to GCC_ATYP_PACKED
which makes the build with --disable-gcc-compat fail:

pcc -g -O2 -Wall -Wmissing-prototypes -Wshadow -Wsign-compare -Wtruncate -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o code.o ../../arch/amd64/code.c
../../arch/amd64/code.c:175: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:255: warning: conversion from 'int' to 'short' may alter its value
../../arch/amd64/code.c:266: warning: conversion from 'int' to 'short' may alter its value
../../arch/amd64/code.c:278: warning: conversion from 'int' to 'short' may alter its value
../../arch/amd64/code.c:285: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:569: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:676: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c, line 681: GCC_ATYP_PACKED undefined
../../arch/amd64/code.c:745: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:794: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:887: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:954: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/code.c:978: warning: conversion from 'long' to 'int' may alter its value
[XXXXXXXX]/top/libexec/ccom terminated with status 1


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 18/Aug/14 05:20 PM
Added ifdefs.

rl added a comment - 24/Aug/14 03:53 PM
unfortunately there are more things lurking in the dark for --disable-gcc-compat:

pcc -g -O2 -Wall -Wmissing-prototypes -Wshadow -Wsign-compare -Wtruncate -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o local.o ../../arch/amd64/local.c
../../arch/amd64/local.c, line 105: GCC_ATYP_VISIBILITY undefined
../../arch/amd64/local.c:109: warning: no previous prototype for `picsymtab'
../../arch/amd64/local.c, line 109: warning: illegal combination of pointer and integer
../../arch/amd64/local.c:110: warning: conversion from 'int' to 'short' may alter its value
../../arch/amd64/local.c:142: warning: conversion from 'unsigned long' to 'int' may alter its value
../../arch/amd64/local.c:146: warning: no previous prototype for `strlcpy'
../../arch/amd64/local.c:147: warning: no previous prototype for `strlcat'
../../arch/amd64/local.c:148: warning: no previous prototype for `strlcat'
../../arch/amd64/local.c:750: warning: conversion from 'long' to 'int' may alter its value
../../arch/amd64/local.c:784: warning: conversion from 'unsigned long' to 'int' may alter its value
../../arch/amd64/local.c:845: warning: conversion from 'int' to 'short' may alter its value
error: ....../libexec/ccom terminated with status 1