Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1742)

Issue 4641076: [trunk] RFA: translate built-in include paths for sysroot

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by cgd
Modified:
8 years, 7 months ago
Reviewers:
joseph
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M cppdefault.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cppdefault.c View 1 chunk +9 lines, -0 lines 0 comments Download
M incpath.c View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 3
cgd
The setup: Configuring a toolchain targeting x86-64 GNU Linux (Ubuntu Lucid), as a cross-compiler. Using ...
12 years, 10 months ago (2011-06-26 06:08:45 UTC) #1
joseph_codesourcery.com
On Sat, 25 Jun 2011, Chris Demetriou wrote: > For the C headers, add_standard_paths prepends ...
12 years, 10 months ago (2011-06-26 14:28:16 UTC) #2
cgd
12 years, 10 months ago (2011-06-26 17:38:24 UTC) #3
On Sun, Jun 26, 2011 at 07:28, Joseph S. Myers <joseph@codesourcery.com> wrote:
> It seems to me that what's really wanted here is to change the add_sysroot
> flag for the C++ path (all of the C++ paths?), rather than adding special
> code to detect paths starting with the sysroot and reinterpret them.

I considered doing that, I wasn't sure what (if any) implications that
would have on the way gcc normally builds + configures / how it works
when other people use flags like --with-gxx-include-dir.

I couldn't think of *harm*, but it seemed to me that my change was
least likely to cause harm to existing working paths.
(That doesn't mean that it's the right change, just the one that I
thought I could understand best.  8-)


> And
> so making configure detect when the --with-gxx-include-dir setting starts
> with the sysroot and adjusting the flag accordingly in that case would be
> a cleaner solution - that way it would be obvious that the semantics of
> the relocation are exactly the same as for other sysrooted paths, whereas
> it isn't when the relocation goes through different code paths in the
> compiler.

yeah, i can do that.


thanks for the quick look.



chris
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b