Bug 235467

Summary: cpp crash with -Wmissing-include-dirs
Product: [Fedora] Fedora Reporter: Behdad Esfahbod <behdad>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-14 17:53:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Behdad Esfahbod 2007-04-05 22:31:15 UTC
Description of problem:

I use a lot of warning flags and I've been seeing gcc crash building firefox and
freetype (but not many other projects I build).  Anyway, I have tracked it down
to -Wmissing-include-dirs and a minimal test case.  Should be something very silly.


Version-Release number of selected component (if applicable):

cpp-4.1.1-51.fc6


Steps to Reproduce:
1. Create a file named x.c containing one line:

        #include "x.h"

2. Run:

        cpp -Wmissing-include-dirs -Ixx x.c
  
Actual results:

cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.


Expected results:

# 1 "x.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.c"
x.c:1:22: error: x.h: No such file or directory

Comment 1 Jakub Jelinek 2007-04-06 08:16:41 UTC
Sorry, can't reproduce this, with either cpp-4.1.1-51.fc6 on ppc32
or cpp-4.1.1-52.el5.1 on x86_64.
All I get is:
cpp -Wmissing-include-dirs -Ixx x.c
cc1: warning: xx: No such file or directory
# 1 "x.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.c"
x.c:1:15: error: x.h: No such file or directory