This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bootstrap Failure on x86-Linux With "-pipe"
- From: Andrew Haley <aph at redhat dot com>
- To: "Ranjit Mathew" <rmathew at hotmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Oct 2003 12:59:49 +0100
- Subject: Bootstrap Failure on x86-Linux With "-pipe"
- References: <BAY1-F19gffHr1qmd6w0000838d@hotmail.com>
Ranjit Mathew writes:
> Hi,
>
> I regularly build 3.4 weekly snapshots on x86-Linux and have
> found the last two snapshots to consistently ICE at the same
> place on bootstrap. Mohan Embar, who has also been facing
> similar problems, discovered that this was being triggered by
> the "-pipe" option in the GCC build scripts that we happen
> to share.
>
> Indeed, removing "-pipe" does fix the ICE.
Related to recent toplev.c changes, I guess.
Andrew.
2003-10-22 Andrew Haley <aph@redhat.com>
* toplev.c (output_file_directive): Allow for null input_name.
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.835
diff -c -2 -p -r1.835 toplev.c
*** toplev.c 19 Oct 2003 21:37:30 -0000 1.835
--- toplev.c 22 Oct 2003 11:55:12 -0000
*************** void
*** 1445,1450 ****
output_file_directive (FILE *asm_file, const char *input_name)
{
! int len = strlen (input_name);
! const char *na = input_name + len;
/* NA gets INPUT_NAME sans directory names. */
--- 1445,1456 ----
output_file_directive (FILE *asm_file, const char *input_name)
{
! int len;
! const char *na;
!
! if (input_name == NULL)
! input_name = "<stdin>";
!
! len = strlen (input_name);
! na = input_name + len;
/* NA gets INPUT_NAME sans directory names. */