This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bootstrap: 3.1 1121 rs6000-ibm-aix4.2.0.0 output_operand: invalid %%xn codecompiling expr.c

[Get raw message]
Reading specs from stage1/specs
Configured with: ../gcc/configure
Thread model: single
gcc version 3.1 20011121 (experimental)
 stage1/cpp0 -lang-c -v -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include -iprefix
stage1/../lib/gcc-lib/rs6000-ibm-aix4.2.0.0/3.1/ -isystem include -isystem stage1/include -isystem /usr/local/rs6000-ibm-aix4.2.0.0/bin/include
-D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_LONG_LONG -D_IBMR2 -D_POWER -D_AIX -D_AIX32
-D_AIX41 -D_LONG_LONG -Asystem=unix -Asystem=aix -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -D_ARCH_COM -DIN_GCC -DHAVE_CONFIG_H ../../gcc/gcc/expr.c expr.i
ignoring nonexistent directory "stage1/include"
ignoring nonexistent directory "/usr/local/rs6000-ibm-aix4.2.0.0/bin/include"
GNU CPP version 3.1 20011121 (experimental) (cpplib)
ignoring nonexistent directory "lib/gcc-lib/rs6000-ibm-aix4.2.0.0/3.1/include"
ignoring nonexistent directory "lib/gcc-lib/rs6000-ibm-aix4.2.0.0/3.1/../../../../rs6000-ibm-aix4.2.0.0/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.0.0/3.1/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.0.0/3.1/../../../../rs6000-ibm-aix4.2.0.0/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../gcc/gcc"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../gcc/gcc
 ../../gcc/gcc/config
 ../../gcc/include
 include
 /usr/local/include
 /usr/include
End of search list.
 stage1/cc1 -fpreprocessed expr.i -quiet -dumpbase expr.c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-Wno-long-long -pedantic -version -o expr.s
GNU CPP version 3.1 20011121 (experimental) (cpplib)
GNU C version 3.1 20011121 (experimental) (rs6000-ibm-aix4.2.0.0)
     compiled by GNU C version 2.95.2 19991024 (release).
../../gcc/gcc/expr.c: In function `expand_expr':
../../gcc/gcc/expr.c:8988: output_operand: invalid %%xn code
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

$ ../../gdb-5.0.93.obj/gdb/gdb stage1/cc1
GNU gdb 5.0.93
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "rs6000-ibm-aix4.2.0.0"...
Breakpoint 1 at 0x10016134: file ../../gcc/gcc/diagnostic.c, line 1450.
Breakpoint 2 at 0x10011f14
Breakpoint 3 at 0x10017100
(gdb) r $(cat ../tmp.rdb.2)
Starting program: /devel/tmp/gcc-3.1-experimental/gcc/stage1/cc1 $(cat ../tmp.rdb.2)
Breakpoint 2 at 0x1a4
Breakpoint 3 at 0x1aee0
Breakpoint 2 at 0xd0000c5c
Breakpoint 3 at 0xd001b990
GNU CPP version 3.1 20011121 (experimental) (cpplib)
GNU C version 3.1 20011121 (experimental) (rs6000-ibm-aix4.2.0.0)
     compiled by GNU C version 2.95.2 19991024 (release).
../../gcc/gcc/expr.c: In function `expand_expr':
../../gcc/gcc/expr.c:8988: output_operand: invalid %%xn code
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Breakpoint 2, 0xd0000c5c in exit () from /usr/lib/libc.a(shr.o)
(gdb) bt
#0  0xd0000c5c in exit () from /usr/lib/libc.a(shr.o)
#1  0x10015854 in internal_error (msgid=0x104fdd08 "output_operand: %s")
    at ../../gcc/gcc/diagnostic.c:1243
#2  0x102ca45c in output_operand_lossage (msgid=0x104f2404 "invalid %%xn code")
    at ../../gcc/gcc/final.c:3265
#3  0x100d2698 in print_operand (file=0xf0090be8, x=0x0, code=36)
    at ../../gcc/gcc/config/rs6000/rs6000.c:5379
#4  0x102cb86c in output_operand (x=0x0, code=36) at ../../gcc/gcc/final.c:3631
#5  0x102cb56c in output_asm_insn (
    template=0x20028eb4 "{bne|bne-} 0,%$+8\n\tb %l0", operands=0x2007abb8)
    at ../../gcc/gcc/final.c:3568
#6  0x102c9c18 in final_scan_insn (insn=0x202f9080, file=0xf0090be8,
    optimize=2, prescan=0, nopeepholes=0) at ../../gcc/gcc/final.c:2938
#7  0x102c82e4 in final (first=0x209cac80, file=0xf0090be8, optimize=2,
    prescan=0) at ../../gcc/gcc/final.c:2044
#8  0x10004f08 in rest_of_compilation (decl=0x204c9380)
    at ../../gcc/gcc/toplev.c:3447
#9  0x1005f474 in c_expand_body (fndecl=0x204c9380, nested_p=0, can_defer_p=1)
    at ../../gcc/gcc/c-decl.c:6888
#10 0x1005ee84 in finish_function (nested=0) at ../../gcc/gcc/c-decl.c:6757
#11 0x103e2740 in yyparse_1 () at c-parse.y:136
#12 0x103f1714 in yyparse () at ../../gcc/gcc/c-lex.c:159
#13 0x100024d4 in compile_file () at ../../gcc/gcc/toplev.c:2128
#14 0x100099b8 in toplev_main (argc=19, argv=0x2ff220d8)
    at ../../gcc/gcc/toplev.c:5173
#15 0x10000258 in main (argc=19, argv=0x2ff220d8) at ../../gcc/gcc/main.c:35
#16 0x100001c8 in __start ()
(gdb) up 3
#3  0x100d2698 in print_operand (file=0xf0090be8, x=0x0, code=36)
    at ../../gcc/gcc/config/rs6000/rs6000.c:5379
5379   output_operand_lossage ("invalid %%xn code");
(gdb) l
5374   else
5375      output_addr_const (file, x);
5376   return;
5377
5378 default:
5379   output_operand_lossage ("invalid %%xn code");
5380 }
5381 }
5382 ^L
5383 /* Print the address of an operand.  */
(gdb) p code
$1 = 36
(gdb) printf "%c\n", code
$
(gdb) up ...
#5  0x102cb56c in output_asm_insn (
    template=0x20028eb4 "{bne|bne-} 0,%$+8\n\tb %l0", operands=0x2007abb8)
    at ../../gcc/gcc/final.c:3568
3568      output_operand (NULL_RTX, *p++);
(gdb) p p
$4 = 0x20028ec3 "+8\n\tb %l0"
(gdb) up 1
#6  0x102c9c18 in final_scan_insn (insn=0x202f9080, file=0xf0090be8,
    optimize=2, prescan=0, nopeepholes=0) at ../../gcc/gcc/final.c:2938
2938      output_asm_insn (template, recog_data.operand);
(gdb) l
2933 #ifdef IA64_UNWIND_INFO
2934      IA64_UNWIND_EMIT (asm_out_file, insn);
2935 #endif
2936      /* Output assembler code from the template.  */
2937
2938      output_asm_insn (template, recog_data.operand);
2939
2940 #if defined (DWARF2_UNWIND_INFO)
2941 #if defined (HAVE_prologue)
2942      if (GET_CODE (insn) == INSN && dwarf2out_do_frame ())
(gdb) p template
$5 = 0x20028eb4 "{bne|bne-} 0,%$+8\n\tb %l0"
(gdb) call debug_rtx(insn)
(jump_insn 29 32270 30 (set (pc)
     (if_then_else (eq (reg:CC 68 cr0 [139])
          (const_int 0 [0x0]))
         (label_ref 35)
         (pc))) 475 {*rs6000.md:12572} (insn_list:REG_DEP_ANTI 32908 (insn_list:REG_DEP_ANTI 32909 (insn_list:REG_DEP_ANTI 3 (insn_list:REG_DEP_ANTI
11 (insn_list:REG_DEP_ANTI 27 (insn_list:REG_DEP_ANTI 13 (insn_list:REG_DEP_ANTI 14 (insn_list:REG_DEP_ANTI 4 (insn_list:REG_DEP_ANTI 5
(insn_list:REG_DEP_ANTI 6 (insn_list:REG_DEP_ANTI 19 (insn_list:REG_DEP_ANTI 32911 (insn_list:REG_DEP_ANTI 32913 (insn_list:REG_DEP_ANTI 32915
(insn_list:REG_DEP_ANTI 32917 (insn_list:REG_DEP_ANTI 32919 (insn_list:REG_DEP_ANTI 32921 (insn_list:REG_DEP_ANTI 32923 (insn_list:REG_DEP_ANTI 32925
(insn_list:REG_DEP_ANTI 32927 (insn_list:REG_DEP_ANTI 32929 (insn_list:REG_DEP_ANTI 32931 (insn_list:REG_DEP_ANTI 32933 (insn_list:REG_DEP_ANTI 32935
(insn_list:REG_DEP_ANTI 32937 (insn_list:REG_DEP_ANTI 32939 (insn_list:REG_DEP_ANTI 32941 (insn_list:REG_DEP_ANTI 32942 (insn_list:REG_DEP_ANTI 15
(insn_list 28 (nil)))))))))))))))))))))))))))))))
    (expr_list:REG_DEAD (reg:CC 68 cr0 [139])
     (expr_list:REG_BR_PROB (const_int 4500 [0x1194])
         (nil))))
(gdb) p recog_data
$6 = {operand = {0x202f9000, 0x209cc318, 0x209cc2d0, 0x0 <repeats 27 times>},
  operand_loc = {0x201428a8, 0x209c8d08, 0x209cc320, 0x0 <repeats 27 times>},
  constraints = {0x104f5234 "", 0x104f5234 "", 0x104f8644 "x,?y",
    0x104f8048 "i", 0x104f8470 "=l,l", 0x104f84d0 "y",
    0x0 <repeats 24 times>}, operand_mode = {VOIDmode, VOIDmode, CCmode,
    SImode, SImode, CCmode, VOIDmode <repeats 24 times>}, operand_type = {
    OP_IN, OP_IN, OP_IN, OP_IN, OP_OUT, OP_IN <repeats 25 times>}, dup_loc = {
    0x210ea200, 0x210ea208, 0x0, 0x0, 0x0, 0x0},
  dup_num = "\001\002\000\000\000", n_operands = 3 '\003', n_dups = 0 '\000',
  n_alternatives = 2 '\002', insn = 0x202f9080}
(gdb) p insn_code_number
$7 = 475


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]