]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - contrib/gcc/ChangeLog.gcc43
MFC r258081, r258138, r258143, r258179, r258157, r258204, r258205,
[FreeBSD/stable/8.git] / contrib / gcc / ChangeLog.gcc43
1 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de> (r125346)
2
3         PR preprocessor/23479
4         * doc/extend.texi: Document the 0b-prefixed binary integer
5         constant extension.
6         
7 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124339)
8  
9         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3 
10         and athlon64-sse3 as improved versions of k8, opteron and athlon64 
11         with SSE3 instruction set support.
12         * doc/invoke.texi: Likewise.
13
14 2007-04-16  Lawrence Crowl  <crowl@google.com>
15
16         * doc/invoke.texi (Debugging Options): Add documentation for the
17         -femit-struct-debug options -femit-struct-debug-baseonly,
18         -femit-struct-debug-reduced, and
19         -femit-struct-debug-detailed[=...].
20
21         * c-opts.c (c_common_handle_option): Add
22         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
23         and OPT_femit_struct_debug_detailed_.
24         * c.opt: Add specifications for
25         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
26         and -femit-struct-debug-detailed[=...].
27         * opts.c (set_struct_debug_option): Parse the
28         -femit-struct-debug-... options.
29         * opts.c (matches_main_base, main_input_basename,
30         main_input_baselength, base_of_path, matches_main_base): Add
31         variables and functions to compare header base name to compilation
32         unit base name.
33         * opts.c (should_emit_struct_debug): Add to determine to emit a
34         structure based on the option.
35         (dump_struct_debug) Also disabled function to debug this
36         function.
37         * opts.c (handle_options): Save the base name of the
38         compilation unit.
39
40         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
41         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
42         This hook indicates if a type is generic.  Set it by default
43         to "never generic".
44         * langhooks.h (struct lang_hooks_for_types): Add a new hook
45         to determine if a struct type is generic or not.
46         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
47         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
48         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
49         with live C++ hook.
50
51         * flags.h (enum debug_info_usage): Add an enumeration to describe
52         a program's use of a structure type.
53         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
54         to indicate the program's usage of the type.  Filter structs based
55         on the -femit-struct-debug-... specification.
56         (gen_type_die): Split into two routines, gen_type_die and
57         gen_type_die_with_usage.  gen_type_die is now a wrapper
58         that assumes direct usage.
59         (gen_type_die_with_usage): Replace calls to gen_type_die
60         with gen_type_die_with_usage adding the program usage of
61         the referenced type.
62         (dwarf2out_imported_module_or_decl): Suppress struct debug
63         information using should_emit_struct_debug when appropriate.
64
65 2007-04-12  Richard Guenther  <rguenther@suse.de> (r123736)
66
67         PR tree-optimization/24689
68         PR tree-optimization/31307
69         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
70         indices by value.
71         * gimplify.c (canonicalize_addr_expr): To be consistent with
72         gimplify_compound_lval only set operands two and three of
73         ARRAY_REFs if they are not gimple_min_invariant.  This makes
74         it never at this place.
75         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
76
77 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com> (r123639)
78
79         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
80
81 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com> (r121726)
82
83         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
84         conditional to __SSE2__.
85         (Entries below should have been added to first ChangeLog
86         entry for amdfam10 dated 2007-02-05)
87         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
88         defined.
89         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
90         defined.
91         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
92         defined.
93
94 2007-02-07  Jakub Jelinek  <jakub@redhat.com> (r121687)
95
96         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
97
98 2007-01-17  Eric Christopher  <echristo@apple.com> (r120846)
99
100         * config.gcc: Support core2 processor.
101
102 2006-12-13  Ian Lance Taylor  <iant@google.com> (r119855)
103
104         PR c++/19564
105         PR c++/19756
106         * c-typeck.c (parser_build_binary_op): Move parentheses warnings
107         to warn_about_parentheses in c-common.c.
108         * c-common.c (warn_about_parentheses): New function.
109         * c-common.h (warn_about_parentheses): Declare.
110         * doc/invoke.texi (Warning Options): Update -Wparentheses
111         description.
112
113 2006-12-02  H.J. Lu  <hongjiu.lu@intel.com> (r119454 - partial)
114
115         PR target/30040
116         * config/i386/driver-i386.c (bit_SSSE3): New.
117
118 2006-11-18  Vladimir Makarov  <vmakarov@redhat.com> (r118973)
119
120         * doc/invoke.texi (core2): Add item.
121
122         * config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
123         macros.
124         (TARGET_CPU_CPP_BUILTINS): Add code for core2.
125         (TARGET_CPU_DEFAULT_generic): Change value.
126         (TARGET_CPU_DEFAULT_NAMES): Add core2.
127         (processor_type): Add new constant PROCESSOR_CORE2.
128
129         * config/i386/i386.md (cpu): Add core2.
130
131         * config/i386/i386.c (core2_cost): New initialized variable.
132         (m_CORE2): New macro.
133         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
134         x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
135         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
136         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
137         x86_partial_reg_dependency, x86_memory_mismatch_stall,
138         x86_accumulate_outgoing_args, x86_prologue_using_move,
139         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
140         x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
141         x86_use_incdec, x86_four_jump_limit, x86_schedule,
142         x86_pad_returns): Add m_CORE2.
143         (override_options): Add entries for Core2.
144         (ix86_issue_rate): Add case for Core2.
145         
146 2006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118356)
147
148         * c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
149         inline static functions in c99 mode.
150
151         PR 16622
152         * doc/extend.texi (Inline): Update.
153         * c-tree.h (struct language_function): Remove field 'extern_inline'.
154         * c-decl.c (current_extern_inline): Delete.
155         (pop_scope): Adjust test for an undefined nested function.
156         Add warning about undeclared inline function.
157         (diagnose_mismatched_decls): Update comments.  Disallow overriding
158         of inline functions in a translation unit in C99.  Allow inline
159         declarations in C99 at any time.
160         (merge_decls): Boolize variables.  Handle C99 'extern inline'
161         semantics.
162         (grokdeclarator): Set DECL_EXTERNAL here for functions.  Handle
163         C99 inline semantics.
164         (start_function): Don't clear current_extern_inline.  Don't set
165         DECL_EXTERNAL.
166         (c_push_function_context): Don't push current_extern_inline.
167         (c_pop_function_context): Don't restore current_extern_inline.
168
169         PR 11377
170         * c-typeck.c (build_external_ref): Warn about static variables
171         used in extern inline functions.
172         * c-decl.c (start_decl): Warn about static variables declared
173         in extern inline functions.
174
175 2006-10-27  Vladimir Makarov  <vmakarov@redhat.com> (r118090)
176
177         * config/i386/i386.h (TARGET_GEODE):
178         (TARGET_CPU_CPP_BUILTINS): Add code for geode.
179         (TARGET_CPU_DEFAULT_geode): New macro.
180         (TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
181         TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
182         TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
183         TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
184         TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
185         the macro values.
186         (TARGET_CPU_DEFAULT_NAMES): Add geode.
187         (processor_type): Add PROCESSOR_GEODE.
188
189         * config/i386/i386.md: Include geode.md.
190         (cpu): Add geode.
191
192         * config/i386/i386.c (geode_cost): New initialized global
193         variable.
194         (m_GEODE, m_K6_GEODE): New macros.
195         (x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
196         x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
197         x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
198         x86_schedule): Use m_K6_GEODE instead of m_K6.
199         (x86_movx, x86_cmove): Set up m_GEODE.
200         (x86_integer_DFmode_moves): Clear m_GEODE.
201         (processor_target_table): Add entry for geode.
202         (processor_alias_table): Ditto.
203
204         * config/i386/geode.md: New file.
205
206         * doc/invoke.texi: Add entry about geode processor.
207     
208 2006-10-24  Richard Guenther  <rguenther@suse.de> (r118001)
209
210         PR middle-end/28796
211         * builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
212         and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
213         for deciding optimizations in consistency with fold-const.c
214         (fold_builtin_unordered_cmp): Likewise.
215
216 2006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117958)
217
218         * config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
219         (x86_64-*-*): Likewise.
220
221         * config/i386/i386.c (pta_flags): Add PTA_SSSE3.
222         (override_options): Check SSSE3.
223         (ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
224         IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
225         IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
226         IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
227         IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
228         IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
229         IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
230         IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
231         IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
232         IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
233         IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
234         IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
235         IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
236         IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
237         IX86_BUILTIN_PABSD128.
238         (bdesc_2arg): Add SSSE3.
239         (bdesc_1arg): Likewise.
240         (ix86_init_mmx_sse_builtins): Support SSSE3.
241         (ix86_expand_builtin): Likewise.
242         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
243
244         * config/i386/i386.md (UNSPEC_PSHUFB): New.
245         (UNSPEC_PSIGN): Likewise.
246         (UNSPEC_PALIGNR): Likewise.
247         Include mmx.md before sse.md.
248
249         * config/i386/i386.opt: Add -mssse3.
250
251         * config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
252         (ssse3_phaddwv4hi3): Likewise.
253         (ssse3_phadddv4si3): Likewise.
254         (ssse3_phadddv2si3): Likewise.
255         (ssse3_phaddswv8hi3): Likewise.
256         (ssse3_phaddswv4hi3): Likewise.
257         (ssse3_phsubwv8hi3): Likewise.
258         (ssse3_phsubwv4hi3): Likewise.
259         (ssse3_phsubdv4si3): Likewise.
260         (ssse3_phsubdv2si3): Likewise.
261         (ssse3_phsubswv8hi3): Likewise.
262         (ssse3_phsubswv4hi3): Likewise.
263         (ssse3_pmaddubswv8hi3): Likewise.
264         (ssse3_pmaddubswv4hi3): Likewise.
265         (ssse3_pmulhrswv8hi3): Likewise.
266         (ssse3_pmulhrswv4hi3): Likewise.
267         (ssse3_pshufbv16qi3): Likewise.
268         (ssse3_pshufbv8qi3): Likewise.
269         (ssse3_psign<mode>3): Likewise.
270         (ssse3_psign<mode>3): Likewise.
271         (ssse3_palignrti): Likewise.
272         (ssse3_palignrdi): Likewise.
273         (abs<mode>2): Likewise.
274         (abs<mode>2): Likewise.
275
276         * config/i386/tmmintrin.h: New file.
277
278         * doc/extend.texi: Document SSSE3 built-in functions.
279
280         * doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
281
282 2006-10-22  H.J. Lu  <hongjiu.lu@intel.com>
283          
284         * config/i386/tmmintrin.h: Remove the duplicated content.
285
286 2006-10-21  Richard Guenther  <rguenther@suse.de> (r117932)
287
288         PR tree-optimization/3511
289         * tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
290         got new invariant arguments during PHI translation.
291
292 2006-10-21  Richard Guenther  <rguenther@suse.de> (r117929)
293
294         * builtins.c (fold_builtin_classify): Fix typo.
295