Merge FreeBSD modifications into gcc 3.2.1-prerelease:
1.8 printf format error fixes Approved by: obrien
This commit is contained in:
parent
e4ec156dda
commit
ecbe618435
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104769
@ -6526,6 +6526,12 @@ cxx_init_decl_processing ()
|
||||
flag_inline_functions = 0;
|
||||
}
|
||||
|
||||
/* Force minimum function alignment if using the least significant
|
||||
bit of function pointers to store the virtual bit. */
|
||||
if (TARGET_PTRMEMFUNC_VBIT_LOCATION == ptrmemfunc_vbit_in_pfn
|
||||
&& force_align_functions_log < 1)
|
||||
force_align_functions_log = 1;
|
||||
|
||||
/* Initially, C. */
|
||||
current_lang_name = lang_name_c;
|
||||
|
||||
@ -7331,14 +7337,8 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
|
||||
switch (TREE_CODE (decl))
|
||||
{
|
||||
case TYPE_DECL:
|
||||
/* typedef foo = bar means give foo the same type as bar.
|
||||
We haven't parsed bar yet, so `cp_finish_decl' will fix that up.
|
||||
Any other case of an initialization in a TYPE_DECL is an error. */
|
||||
if (pedantic || list_length (declspecs) > 1)
|
||||
{
|
||||
error ("typedef `%D' is initialized", decl);
|
||||
initialized = 0;
|
||||
}
|
||||
error ("typedef `%D' is initialized", decl);
|
||||
initialized = 0;
|
||||
break;
|
||||
|
||||
case FUNCTION_DECL:
|
||||
@ -8250,12 +8250,6 @@ cp_finish_decl (decl, init, asmspec_tree, flags)
|
||||
/* Take care of TYPE_DECLs up front. */
|
||||
if (TREE_CODE (decl) == TYPE_DECL)
|
||||
{
|
||||
if (init && DECL_INITIAL (decl))
|
||||
{
|
||||
/* typedef foo = bar; store the type of bar as the type of foo. */
|
||||
TREE_TYPE (decl) = type = TREE_TYPE (init);
|
||||
DECL_INITIAL (decl) = init = NULL_TREE;
|
||||
}
|
||||
if (type != error_mark_node
|
||||
&& IS_AGGR_TYPE (type) && DECL_NAME (decl))
|
||||
{
|
||||
@ -11354,9 +11348,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
|
||||
bad_specifiers (decl, "type", virtualp, quals != NULL_TREE,
|
||||
inlinep, friendp, raises != NULL_TREE);
|
||||
|
||||
if (initialized)
|
||||
error ("typedef declaration includes an initializer");
|
||||
|
||||
return decl;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user