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]

[Bug middle-end/15666] [3.4 regression] [unit-at-a-time] Gcc abort on valid code


------- Additional Comments From hjl at lucon dot org  2004-05-31 17:12 -------
#0  builtin_function (name=0x830cff0 "__builtin_strchr", type=0x282,
    function_code=-1217995392, class=BUILT_IN_NORMAL,
    library_name=0x830cffa "strchr", attrs=0xb768b960)
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/c-decl.c:2306
#1  0x0806d4ef in builtin_function_2 (builtin_name=0x0,
    name=0x830cffa "strchr", builtin_type=0xb766dd80, type=0xb766dd80,
    function_code=297, class=BUILT_IN_NORMAL, library_name_p=1, nonansi_p=0,
    attrs=0xb768b960)
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/c-common.c:3535
#2  0x0807830e in c_common_nodes_and_builtins () at builtins.def:448
#3  0x08056b59 in c_init_decl_processing ()
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/c-decl.c:2220
#4  0x080861d9 in c_objc_common_init ()
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/c-objc-common.c:164
#5  0x0826e9c9 in toplev_main (argc=3076971904, argv=0x0)
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/toplev.c:4527
#6  0x0809821e in main (argc=-1217995392, argv=0xb766dd80)
    at /net/gnu/export/gnu/src/gcc-3.4/gcc/gcc/main.c:35

/* Return a definition for a builtin function named NAME and whose data type
   is TYPE.  TYPE should be a function type with argument types.
   FUNCTION_CODE tells later passes how to compile calls to this function.
   See tree.h for its possible values.

   If LIBRARY_NAME is nonzero, use that for DECL_ASSEMBLER_NAME,
   the name to be called if we can't opencode the function.  If
   ATTRS is nonzero, use that for the function's attribute list.  */

tree
builtin_function (const char *name, tree type, int function_code,
                  enum built_in_class class, const char *library_name,
                  tree attrs)
{
  tree decl = build_decl (FUNCTION_DECL, get_identifier (name), type);
  DECL_EXTERNAL (decl) = 1;
  TREE_PUBLIC (decl) = 1;
  if (library_name)
    SET_DECL_ASSEMBLER_NAME (decl, get_identifier (library_name));


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15666


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