1 msgPreserving GCOV coverage stats after program cr...
1 msgTo Generate the pattern for sign_extended addit...
2 msginline assembly functions - generated code
1 msg__sync commands with 16 byte
1 msgGet bigger size
1 msgwhat are these errors/how do I get around them:...
2 msggcc binary compatibility
3 msgProblem about mips .data section
1 msgProblems compiling gcc-4.2.2 in a IBM Power PC ...
3 msgGCC 4.x with Solaris before 2.9
2 msgbuilding with host=i686-pc-mingw32
1 msgStrange error with gcc:: Apologies
2 msgIs there another way to put functions to a spec...
1 msgProblem moving module files to other directories
1 msgProblem building gcc4.2.2 on Solaris 10 for x64
2 msgundefined builtin atomic operations in gcc4.2
3 msggcc for sh-linux: Link tests are not allowed af...
2 msgconditional based transfer pattern issue in md ...
7 msggcc binary comptibility

A question related to '-I' option of CPP (C pre...
\ jun yuan (30 Jan 2008)
. \ Tom St Denis (30 Jan 2008)

Subject:A question related to '-I' option of CPP (C preprocessor)
Group:Gcc-help
From:jun yuan
Date:30 Jan 2008


Hi, experts of CPP/ GCC,

I met with a problem related to -I option of CPP. Actually it is a
compatiblity issue between old version CPP and new version CPP.

Suppose, we run cpp with the following command:
cpp -E -I./inc/subinc -traditional a.sp
where a.sp is an empty file, and ./inc/subinc is a directory, but we
don't have the read permission of
the directory inc.

For the version 3.2.3 cpp, the run will succeed and the content of
a.sp will be dumped into
screen.
But, for the version 4.1.1, the run will fail, and the error
message is as following:
cc1: error: ./inc/subinc: Permission denied

Actually, cpp doesn't even use the path ./inc/subinc as a.sp is empty.
We can see that, v4.1.1 checks the permission of ./inc/subinc even it
doesn't use the dir. But, v3.2.3 runs
in a loose way.

Now, I wanna use v4.1.1, but I don't want v4.1.1 fail when running
in the above case. I want v4.1.1 to succeed
just as v3.2.3.

Can I achieve what I want? Is there an back compatible option or something?

BTW, I don't know if it is appropriate to ask the question in the
email list. But I didn't
find an email list related to CPP. So, if it is inappropriate, please
tell me the correct email
list.

Thanks,
Jun YUAN


© 2004-2008 readlist.com